All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.meraki.networks.inputs.GroupPoliciesFirewallAndTrafficShapingTrafficShapingRuleDefinitionArgs Maven / Gradle / Ivy

There is a newer version: 0.4.0-alpha.1731736975
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.meraki.networks.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GroupPoliciesFirewallAndTrafficShapingTrafficShapingRuleDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final GroupPoliciesFirewallAndTrafficShapingTrafficShapingRuleDefinitionArgs Empty = new GroupPoliciesFirewallAndTrafficShapingTrafficShapingRuleDefinitionArgs();

    /**
     * The type of definition. Can be one of 'application', 'applicationCategory', 'host', 'port', 'ipRange' or 'localNet'.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return The type of definition. Can be one of 'application', 'applicationCategory', 'host', 'port', 'ipRange' or 'localNet'.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * If "type" is 'host', 'port', 'ipRange' or 'localNet', then "value" must be a string, matching either
     * a hostname (e.g. "somesite.com"), a port (e.g. 8080), or an IP range ("192.1.0.0",
     * "192.1.0.0/16", or "10.1.0.0/16:80"). 'localNet' also supports CIDR notation, excluding
     * custom ports.
     *  If "type" is 'application' or 'applicationCategory', then "value" must be an object
     * with the structure { "id": "meraki:layer7/..." }, where "id" is the application category or
     * application ID (for a list of IDs for your network, use the trafficShaping/applicationCategories
     * endpoint).
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return If "type" is 'host', 'port', 'ipRange' or 'localNet', then "value" must be a string, matching either
     * a hostname (e.g. "somesite.com"), a port (e.g. 8080), or an IP range ("192.1.0.0",
     * "192.1.0.0/16", or "10.1.0.0/16:80"). 'localNet' also supports CIDR notation, excluding
     * custom ports.
     *  If "type" is 'application' or 'applicationCategory', then "value" must be an object
     * with the structure { "id": "meraki:layer7/..." }, where "id" is the application category or
     * application ID (for a list of IDs for your network, use the trafficShaping/applicationCategories
     * endpoint).
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private GroupPoliciesFirewallAndTrafficShapingTrafficShapingRuleDefinitionArgs() {}

    private GroupPoliciesFirewallAndTrafficShapingTrafficShapingRuleDefinitionArgs(GroupPoliciesFirewallAndTrafficShapingTrafficShapingRuleDefinitionArgs $) {
        this.type = $.type;
        this.value = $.value;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(GroupPoliciesFirewallAndTrafficShapingTrafficShapingRuleDefinitionArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private GroupPoliciesFirewallAndTrafficShapingTrafficShapingRuleDefinitionArgs $;

        public Builder() {
            $ = new GroupPoliciesFirewallAndTrafficShapingTrafficShapingRuleDefinitionArgs();
        }

        public Builder(GroupPoliciesFirewallAndTrafficShapingTrafficShapingRuleDefinitionArgs defaults) {
            $ = new GroupPoliciesFirewallAndTrafficShapingTrafficShapingRuleDefinitionArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param type The type of definition. Can be one of 'application', 'applicationCategory', 'host', 'port', 'ipRange' or 'localNet'.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of definition. Can be one of 'application', 'applicationCategory', 'host', 'port', 'ipRange' or 'localNet'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param value If "type" is 'host', 'port', 'ipRange' or 'localNet', then "value" must be a string, matching either
         * a hostname (e.g. "somesite.com"), a port (e.g. 8080), or an IP range ("192.1.0.0",
         * "192.1.0.0/16", or "10.1.0.0/16:80"). 'localNet' also supports CIDR notation, excluding
         * custom ports.
         *  If "type" is 'application' or 'applicationCategory', then "value" must be an object
         * with the structure { "id": "meraki:layer7/..." }, where "id" is the application category or
         * application ID (for a list of IDs for your network, use the trafficShaping/applicationCategories
         * endpoint).
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value If "type" is 'host', 'port', 'ipRange' or 'localNet', then "value" must be a string, matching either
         * a hostname (e.g. "somesite.com"), a port (e.g. 8080), or an IP range ("192.1.0.0",
         * "192.1.0.0/16", or "10.1.0.0/16:80"). 'localNet' also supports CIDR notation, excluding
         * custom ports.
         *  If "type" is 'application' or 'applicationCategory', then "value" must be an object
         * with the structure { "id": "meraki:layer7/..." }, where "id" is the application category or
         * application ID (for a list of IDs for your network, use the trafficShaping/applicationCategories
         * endpoint).
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public GroupPoliciesFirewallAndTrafficShapingTrafficShapingRuleDefinitionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy