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

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

    public static final VpcEndpointSubnetConfigurationArgs Empty = new VpcEndpointSubnetConfigurationArgs();

    /**
     * The IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
     * 
     */
    @Import(name="ipv4")
    private @Nullable Output ipv4;

    /**
     * @return The IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
     * 
     */
    public Optional> ipv4() {
        return Optional.ofNullable(this.ipv4);
    }

    /**
     * The IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
     * 
     */
    @Import(name="ipv6")
    private @Nullable Output ipv6;

    /**
     * @return The IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
     * 
     */
    public Optional> ipv6() {
        return Optional.ofNullable(this.ipv6);
    }

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

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

    private VpcEndpointSubnetConfigurationArgs() {}

    private VpcEndpointSubnetConfigurationArgs(VpcEndpointSubnetConfigurationArgs $) {
        this.ipv4 = $.ipv4;
        this.ipv6 = $.ipv6;
        this.subnetId = $.subnetId;
    }

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

    public static final class Builder {
        private VpcEndpointSubnetConfigurationArgs $;

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

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

        /**
         * @param ipv4 The IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
         * 
         * @return builder
         * 
         */
        public Builder ipv4(@Nullable Output ipv4) {
            $.ipv4 = ipv4;
            return this;
        }

        /**
         * @param ipv4 The IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
         * 
         * @return builder
         * 
         */
        public Builder ipv4(String ipv4) {
            return ipv4(Output.of(ipv4));
        }

        /**
         * @param ipv6 The IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
         * 
         * @return builder
         * 
         */
        public Builder ipv6(@Nullable Output ipv6) {
            $.ipv6 = ipv6;
            return this;
        }

        /**
         * @param ipv6 The IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
         * 
         * @return builder
         * 
         */
        public Builder ipv6(String ipv6) {
            return ipv6(Output.of(ipv6));
        }

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

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

        public VpcEndpointSubnetConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy