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

com.pulumi.aws.ec2.inputs.DefaultNetworkAclIngressArgs 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.66.3
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 DefaultNetworkAclIngressArgs extends com.pulumi.resources.ResourceArgs {

    public static final DefaultNetworkAclIngressArgs Empty = new DefaultNetworkAclIngressArgs();

    @Import(name="action", required=true)
    private Output action;

    public Output action() {
        return this.action;
    }

    @Import(name="cidrBlock")
    private @Nullable Output cidrBlock;

    public Optional> cidrBlock() {
        return Optional.ofNullable(this.cidrBlock);
    }

    @Import(name="fromPort", required=true)
    private Output fromPort;

    public Output fromPort() {
        return this.fromPort;
    }

    @Import(name="icmpCode")
    private @Nullable Output icmpCode;

    public Optional> icmpCode() {
        return Optional.ofNullable(this.icmpCode);
    }

    @Import(name="icmpType")
    private @Nullable Output icmpType;

    public Optional> icmpType() {
        return Optional.ofNullable(this.icmpType);
    }

    @Import(name="ipv6CidrBlock")
    private @Nullable Output ipv6CidrBlock;

    public Optional> ipv6CidrBlock() {
        return Optional.ofNullable(this.ipv6CidrBlock);
    }

    @Import(name="protocol", required=true)
    private Output protocol;

    public Output protocol() {
        return this.protocol;
    }

    @Import(name="ruleNo", required=true)
    private Output ruleNo;

    public Output ruleNo() {
        return this.ruleNo;
    }

    @Import(name="toPort", required=true)
    private Output toPort;

    public Output toPort() {
        return this.toPort;
    }

    private DefaultNetworkAclIngressArgs() {}

    private DefaultNetworkAclIngressArgs(DefaultNetworkAclIngressArgs $) {
        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(DefaultNetworkAclIngressArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private DefaultNetworkAclIngressArgs $;

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

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

        public Builder action(Output action) {
            $.action = action;
            return this;
        }

        public Builder action(String action) {
            return action(Output.of(action));
        }

        public Builder cidrBlock(@Nullable Output cidrBlock) {
            $.cidrBlock = cidrBlock;
            return this;
        }

        public Builder cidrBlock(String cidrBlock) {
            return cidrBlock(Output.of(cidrBlock));
        }

        public Builder fromPort(Output fromPort) {
            $.fromPort = fromPort;
            return this;
        }

        public Builder fromPort(Integer fromPort) {
            return fromPort(Output.of(fromPort));
        }

        public Builder icmpCode(@Nullable Output icmpCode) {
            $.icmpCode = icmpCode;
            return this;
        }

        public Builder icmpCode(Integer icmpCode) {
            return icmpCode(Output.of(icmpCode));
        }

        public Builder icmpType(@Nullable Output icmpType) {
            $.icmpType = icmpType;
            return this;
        }

        public Builder icmpType(Integer icmpType) {
            return icmpType(Output.of(icmpType));
        }

        public Builder ipv6CidrBlock(@Nullable Output ipv6CidrBlock) {
            $.ipv6CidrBlock = ipv6CidrBlock;
            return this;
        }

        public Builder ipv6CidrBlock(String ipv6CidrBlock) {
            return ipv6CidrBlock(Output.of(ipv6CidrBlock));
        }

        public Builder protocol(Output protocol) {
            $.protocol = protocol;
            return this;
        }

        public Builder protocol(String protocol) {
            return protocol(Output.of(protocol));
        }

        public Builder ruleNo(Output ruleNo) {
            $.ruleNo = ruleNo;
            return this;
        }

        public Builder ruleNo(Integer ruleNo) {
            return ruleNo(Output.of(ruleNo));
        }

        public Builder toPort(Output toPort) {
            $.toPort = toPort;
            return this;
        }

        public Builder toPort(Integer toPort) {
            return toPort(Output.of(toPort));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy