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

com.pulumi.aws.alb.inputs.LoadBalancerSubnetMappingArgs 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.alb.inputs;

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


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

    public static final LoadBalancerSubnetMappingArgs Empty = new LoadBalancerSubnetMappingArgs();

    /**
     * Allocation ID of the Elastic IP address for an internet-facing load balancer.
     * 
     */
    @Import(name="allocationId")
    private @Nullable Output allocationId;

    /**
     * @return Allocation ID of the Elastic IP address for an internet-facing load balancer.
     * 
     */
    public Optional> allocationId() {
        return Optional.ofNullable(this.allocationId);
    }

    /**
     * IPv6 address. You associate IPv6 CIDR blocks with your VPC and choose the subnets where you launch both internet-facing and internal Application Load Balancers or Network Load Balancers.
     * 
     */
    @Import(name="ipv6Address")
    private @Nullable Output ipv6Address;

    /**
     * @return IPv6 address. You associate IPv6 CIDR blocks with your VPC and choose the subnets where you launch both internet-facing and internal Application Load Balancers or Network Load Balancers.
     * 
     */
    public Optional> ipv6Address() {
        return Optional.ofNullable(this.ipv6Address);
    }

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

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

    /**
     * Private IPv4 address for an internal load balancer.
     * 
     */
    @Import(name="privateIpv4Address")
    private @Nullable Output privateIpv4Address;

    /**
     * @return Private IPv4 address for an internal load balancer.
     * 
     */
    public Optional> privateIpv4Address() {
        return Optional.ofNullable(this.privateIpv4Address);
    }

    /**
     * ID of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone.
     * 
     */
    @Import(name="subnetId", required=true)
    private Output subnetId;

    /**
     * @return ID of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone.
     * 
     */
    public Output subnetId() {
        return this.subnetId;
    }

    private LoadBalancerSubnetMappingArgs() {}

    private LoadBalancerSubnetMappingArgs(LoadBalancerSubnetMappingArgs $) {
        this.allocationId = $.allocationId;
        this.ipv6Address = $.ipv6Address;
        this.outpostId = $.outpostId;
        this.privateIpv4Address = $.privateIpv4Address;
        this.subnetId = $.subnetId;
    }

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

    public static final class Builder {
        private LoadBalancerSubnetMappingArgs $;

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

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

        /**
         * @param allocationId Allocation ID of the Elastic IP address for an internet-facing load balancer.
         * 
         * @return builder
         * 
         */
        public Builder allocationId(@Nullable Output allocationId) {
            $.allocationId = allocationId;
            return this;
        }

        /**
         * @param allocationId Allocation ID of the Elastic IP address for an internet-facing load balancer.
         * 
         * @return builder
         * 
         */
        public Builder allocationId(String allocationId) {
            return allocationId(Output.of(allocationId));
        }

        /**
         * @param ipv6Address IPv6 address. You associate IPv6 CIDR blocks with your VPC and choose the subnets where you launch both internet-facing and internal Application Load Balancers or Network Load Balancers.
         * 
         * @return builder
         * 
         */
        public Builder ipv6Address(@Nullable Output ipv6Address) {
            $.ipv6Address = ipv6Address;
            return this;
        }

        /**
         * @param ipv6Address IPv6 address. You associate IPv6 CIDR blocks with your VPC and choose the subnets where you launch both internet-facing and internal Application Load Balancers or Network Load Balancers.
         * 
         * @return builder
         * 
         */
        public Builder ipv6Address(String ipv6Address) {
            return ipv6Address(Output.of(ipv6Address));
        }

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

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

        /**
         * @param privateIpv4Address Private IPv4 address for an internal load balancer.
         * 
         * @return builder
         * 
         */
        public Builder privateIpv4Address(@Nullable Output privateIpv4Address) {
            $.privateIpv4Address = privateIpv4Address;
            return this;
        }

        /**
         * @param privateIpv4Address Private IPv4 address for an internal load balancer.
         * 
         * @return builder
         * 
         */
        public Builder privateIpv4Address(String privateIpv4Address) {
            return privateIpv4Address(Output.of(privateIpv4Address));
        }

        /**
         * @param subnetId ID of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(Output subnetId) {
            $.subnetId = subnetId;
            return this;
        }

        /**
         * @param subnetId ID of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(String subnetId) {
            return subnetId(Output.of(subnetId));
        }

        public LoadBalancerSubnetMappingArgs build() {
            if ($.subnetId == null) {
                throw new MissingRequiredPropertyException("LoadBalancerSubnetMappingArgs", "subnetId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy