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

com.pulumi.aws.networkfirewall.inputs.RuleGroupRuleGroupRuleVariablesPortSetArgs Maven / Gradle / Ivy

// *** 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.aws.networkfirewall.inputs;

import com.pulumi.aws.networkfirewall.inputs.RuleGroupRuleGroupRuleVariablesPortSetPortSetArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final RuleGroupRuleGroupRuleVariablesPortSetArgs Empty = new RuleGroupRuleGroupRuleVariablesPortSetArgs();

    /**
     * An unique alphanumeric string to identify the `port_set`.
     * 
     */
    @Import(name="key", required=true)
    private Output key;

    /**
     * @return An unique alphanumeric string to identify the `port_set`.
     * 
     */
    public Output key() {
        return this.key;
    }

    /**
     * A configuration block that defines a set of port ranges. See Port Set below for details.
     * 
     */
    @Import(name="portSet", required=true)
    private Output portSet;

    /**
     * @return A configuration block that defines a set of port ranges. See Port Set below for details.
     * 
     */
    public Output portSet() {
        return this.portSet;
    }

    private RuleGroupRuleGroupRuleVariablesPortSetArgs() {}

    private RuleGroupRuleGroupRuleVariablesPortSetArgs(RuleGroupRuleGroupRuleVariablesPortSetArgs $) {
        this.key = $.key;
        this.portSet = $.portSet;
    }

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

    public static final class Builder {
        private RuleGroupRuleGroupRuleVariablesPortSetArgs $;

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

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

        /**
         * @param key An unique alphanumeric string to identify the `port_set`.
         * 
         * @return builder
         * 
         */
        public Builder key(Output key) {
            $.key = key;
            return this;
        }

        /**
         * @param key An unique alphanumeric string to identify the `port_set`.
         * 
         * @return builder
         * 
         */
        public Builder key(String key) {
            return key(Output.of(key));
        }

        /**
         * @param portSet A configuration block that defines a set of port ranges. See Port Set below for details.
         * 
         * @return builder
         * 
         */
        public Builder portSet(Output portSet) {
            $.portSet = portSet;
            return this;
        }

        /**
         * @param portSet A configuration block that defines a set of port ranges. See Port Set below for details.
         * 
         * @return builder
         * 
         */
        public Builder portSet(RuleGroupRuleGroupRuleVariablesPortSetPortSetArgs portSet) {
            return portSet(Output.of(portSet));
        }

        public RuleGroupRuleGroupRuleVariablesPortSetArgs build() {
            if ($.key == null) {
                throw new MissingRequiredPropertyException("RuleGroupRuleGroupRuleVariablesPortSetArgs", "key");
            }
            if ($.portSet == null) {
                throw new MissingRequiredPropertyException("RuleGroupRuleGroupRuleVariablesPortSetArgs", "portSet");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy