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

com.pulumi.aws.ec2.inputs.DefaultNetworkAclEgressArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.ec2.inputs;

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


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

    public static final DefaultNetworkAclEgressArgs Empty = new DefaultNetworkAclEgressArgs();

    /**
     * The action to take.
     * 
     */
    @Import(name="action", required=true)
    private Output action;

    /**
     * @return The action to take.
     * 
     */
    public Output action() {
        return this.action;
    }

    /**
     * The CIDR block to match. This must be a valid network mask.
     * 
     */
    @Import(name="cidrBlock")
    private @Nullable Output cidrBlock;

    /**
     * @return The CIDR block to match. This must be a valid network mask.
     * 
     */
    public Optional> cidrBlock() {
        return Optional.ofNullable(this.cidrBlock);
    }

    /**
     * The from port to match.
     * 
     */
    @Import(name="fromPort", required=true)
    private Output fromPort;

    /**
     * @return The from port to match.
     * 
     */
    public Output fromPort() {
        return this.fromPort;
    }

    /**
     * The ICMP type code to be used. Default 0.
     * 
     */
    @Import(name="icmpCode")
    private @Nullable Output icmpCode;

    /**
     * @return The ICMP type code to be used. Default 0.
     * 
     */
    public Optional> icmpCode() {
        return Optional.ofNullable(this.icmpCode);
    }

    /**
     * The ICMP type to be used. Default 0.
     * 
     */
    @Import(name="icmpType")
    private @Nullable Output icmpType;

    /**
     * @return The ICMP type to be used. Default 0.
     * 
     */
    public Optional> icmpType() {
        return Optional.ofNullable(this.icmpType);
    }

    /**
     * The IPv6 CIDR block.
     * 
     * > For more information on ICMP types and codes, see [Internet Control Message Protocol (ICMP) Parameters](https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml).
     * 
     */
    @Import(name="ipv6CidrBlock")
    private @Nullable Output ipv6CidrBlock;

    /**
     * @return The IPv6 CIDR block.
     * 
     * > For more information on ICMP types and codes, see [Internet Control Message Protocol (ICMP) Parameters](https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml).
     * 
     */
    public Optional> ipv6CidrBlock() {
        return Optional.ofNullable(this.ipv6CidrBlock);
    }

    /**
     * The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.
     * 
     */
    @Import(name="protocol", required=true)
    private Output protocol;

    /**
     * @return The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.
     * 
     */
    public Output protocol() {
        return this.protocol;
    }

    /**
     * The rule number. Used for ordering.
     * 
     */
    @Import(name="ruleNo", required=true)
    private Output ruleNo;

    /**
     * @return The rule number. Used for ordering.
     * 
     */
    public Output ruleNo() {
        return this.ruleNo;
    }

    /**
     * The to port to match.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="toPort", required=true)
    private Output toPort;

    /**
     * @return The to port to match.
     * 
     * The following arguments are optional:
     * 
     */
    public Output toPort() {
        return this.toPort;
    }

    private DefaultNetworkAclEgressArgs() {}

    private DefaultNetworkAclEgressArgs(DefaultNetworkAclEgressArgs $) {
        this.action = $.action;
        this.cidrBlock = $.cidrBlock;
        this.fromPort = $.fromPort;
        this.icmpCode = $.icmpCode;
        this.icmpType = $.icmpType;
        this.ipv6CidrBlock = $.ipv6CidrBlock;
        this.protocol = $.protocol;
        this.ruleNo = $.ruleNo;
        this.toPort = $.toPort;
    }

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

    public static final class Builder {
        private DefaultNetworkAclEgressArgs $;

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

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

        /**
         * @param action The action to take.
         * 
         * @return builder
         * 
         */
        public Builder action(Output action) {
            $.action = action;
            return this;
        }

        /**
         * @param action The action to take.
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Output.of(action));
        }

        /**
         * @param cidrBlock The CIDR block to match. This must be a valid network mask.
         * 
         * @return builder
         * 
         */
        public Builder cidrBlock(@Nullable Output cidrBlock) {
            $.cidrBlock = cidrBlock;
            return this;
        }

        /**
         * @param cidrBlock The CIDR block to match. This must be a valid network mask.
         * 
         * @return builder
         * 
         */
        public Builder cidrBlock(String cidrBlock) {
            return cidrBlock(Output.of(cidrBlock));
        }

        /**
         * @param fromPort The from port to match.
         * 
         * @return builder
         * 
         */
        public Builder fromPort(Output fromPort) {
            $.fromPort = fromPort;
            return this;
        }

        /**
         * @param fromPort The from port to match.
         * 
         * @return builder
         * 
         */
        public Builder fromPort(Integer fromPort) {
            return fromPort(Output.of(fromPort));
        }

        /**
         * @param icmpCode The ICMP type code to be used. Default 0.
         * 
         * @return builder
         * 
         */
        public Builder icmpCode(@Nullable Output icmpCode) {
            $.icmpCode = icmpCode;
            return this;
        }

        /**
         * @param icmpCode The ICMP type code to be used. Default 0.
         * 
         * @return builder
         * 
         */
        public Builder icmpCode(Integer icmpCode) {
            return icmpCode(Output.of(icmpCode));
        }

        /**
         * @param icmpType The ICMP type to be used. Default 0.
         * 
         * @return builder
         * 
         */
        public Builder icmpType(@Nullable Output icmpType) {
            $.icmpType = icmpType;
            return this;
        }

        /**
         * @param icmpType The ICMP type to be used. Default 0.
         * 
         * @return builder
         * 
         */
        public Builder icmpType(Integer icmpType) {
            return icmpType(Output.of(icmpType));
        }

        /**
         * @param ipv6CidrBlock The IPv6 CIDR block.
         * 
         * > For more information on ICMP types and codes, see [Internet Control Message Protocol (ICMP) Parameters](https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml).
         * 
         * @return builder
         * 
         */
        public Builder ipv6CidrBlock(@Nullable Output ipv6CidrBlock) {
            $.ipv6CidrBlock = ipv6CidrBlock;
            return this;
        }

        /**
         * @param ipv6CidrBlock The IPv6 CIDR block.
         * 
         * > For more information on ICMP types and codes, see [Internet Control Message Protocol (ICMP) Parameters](https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml).
         * 
         * @return builder
         * 
         */
        public Builder ipv6CidrBlock(String ipv6CidrBlock) {
            return ipv6CidrBlock(Output.of(ipv6CidrBlock));
        }

        /**
         * @param protocol The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.
         * 
         * @return builder
         * 
         */
        public Builder protocol(Output protocol) {
            $.protocol = protocol;
            return this;
        }

        /**
         * @param protocol The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.
         * 
         * @return builder
         * 
         */
        public Builder protocol(String protocol) {
            return protocol(Output.of(protocol));
        }

        /**
         * @param ruleNo The rule number. Used for ordering.
         * 
         * @return builder
         * 
         */
        public Builder ruleNo(Output ruleNo) {
            $.ruleNo = ruleNo;
            return this;
        }

        /**
         * @param ruleNo The rule number. Used for ordering.
         * 
         * @return builder
         * 
         */
        public Builder ruleNo(Integer ruleNo) {
            return ruleNo(Output.of(ruleNo));
        }

        /**
         * @param toPort The to port to match.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder toPort(Output toPort) {
            $.toPort = toPort;
            return this;
        }

        /**
         * @param toPort The to port to match.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder toPort(Integer toPort) {
            return toPort(Output.of(toPort));
        }

        public DefaultNetworkAclEgressArgs build() {
            if ($.action == null) {
                throw new MissingRequiredPropertyException("DefaultNetworkAclEgressArgs", "action");
            }
            if ($.fromPort == null) {
                throw new MissingRequiredPropertyException("DefaultNetworkAclEgressArgs", "fromPort");
            }
            if ($.protocol == null) {
                throw new MissingRequiredPropertyException("DefaultNetworkAclEgressArgs", "protocol");
            }
            if ($.ruleNo == null) {
                throw new MissingRequiredPropertyException("DefaultNetworkAclEgressArgs", "ruleNo");
            }
            if ($.toPort == null) {
                throw new MissingRequiredPropertyException("DefaultNetworkAclEgressArgs", "toPort");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy