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

com.pulumi.aws.alb.outputs.LoadBalancerSubnetMapping 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.alb.outputs;

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

@CustomType
public final class LoadBalancerSubnetMapping {
    /**
     * @return Allocation ID of the Elastic IP address for an internet-facing load balancer.
     * 
     */
    private @Nullable String allocationId;
    /**
     * @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.
     * 
     */
    private @Nullable String ipv6Address;
    private @Nullable String outpostId;
    /**
     * @return Private IPv4 address for an internal load balancer.
     * 
     */
    private @Nullable String privateIpv4Address;
    /**
     * @return ID of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone.
     * 
     */
    private String subnetId;

    private LoadBalancerSubnetMapping() {}
    /**
     * @return Allocation ID of the Elastic IP address for an internet-facing load balancer.
     * 
     */
    public Optional allocationId() {
        return Optional.ofNullable(this.allocationId);
    }
    /**
     * @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);
    }
    public Optional outpostId() {
        return Optional.ofNullable(this.outpostId);
    }
    /**
     * @return Private IPv4 address for an internal load balancer.
     * 
     */
    public Optional privateIpv4Address() {
        return Optional.ofNullable(this.privateIpv4Address);
    }
    /**
     * @return ID of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone.
     * 
     */
    public String subnetId() {
        return this.subnetId;
    }

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

    public static Builder builder(LoadBalancerSubnetMapping defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String allocationId;
        private @Nullable String ipv6Address;
        private @Nullable String outpostId;
        private @Nullable String privateIpv4Address;
        private String subnetId;
        public Builder() {}
        public Builder(LoadBalancerSubnetMapping defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allocationId = defaults.allocationId;
    	      this.ipv6Address = defaults.ipv6Address;
    	      this.outpostId = defaults.outpostId;
    	      this.privateIpv4Address = defaults.privateIpv4Address;
    	      this.subnetId = defaults.subnetId;
        }

        @CustomType.Setter
        public Builder allocationId(@Nullable String allocationId) {

            this.allocationId = allocationId;
            return this;
        }
        @CustomType.Setter
        public Builder ipv6Address(@Nullable String ipv6Address) {

            this.ipv6Address = ipv6Address;
            return this;
        }
        @CustomType.Setter
        public Builder outpostId(@Nullable String outpostId) {

            this.outpostId = outpostId;
            return this;
        }
        @CustomType.Setter
        public Builder privateIpv4Address(@Nullable String privateIpv4Address) {

            this.privateIpv4Address = privateIpv4Address;
            return this;
        }
        @CustomType.Setter
        public Builder subnetId(String subnetId) {
            if (subnetId == null) {
              throw new MissingRequiredPropertyException("LoadBalancerSubnetMapping", "subnetId");
            }
            this.subnetId = subnetId;
            return this;
        }
        public LoadBalancerSubnetMapping build() {
            final var _resultValue = new LoadBalancerSubnetMapping();
            _resultValue.allocationId = allocationId;
            _resultValue.ipv6Address = ipv6Address;
            _resultValue.outpostId = outpostId;
            _resultValue.privateIpv4Address = privateIpv4Address;
            _resultValue.subnetId = subnetId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy