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

com.pulumi.azurenative.awsconnector.outputs.AwsElasticLoadBalancingV2LoadBalancerPropertiesResponse 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.azurenative.awsconnector.outputs;

import com.pulumi.azurenative.awsconnector.outputs.LoadBalancerAttributeResponse;
import com.pulumi.azurenative.awsconnector.outputs.SubnetMappingResponse;
import com.pulumi.azurenative.awsconnector.outputs.TagResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AwsElasticLoadBalancingV2LoadBalancerPropertiesResponse {
    /**
     * @return Property canonicalHostedZoneID
     * 
     */
    private @Nullable String canonicalHostedZoneID;
    /**
     * @return Property dnsName
     * 
     */
    private @Nullable String dnsName;
    /**
     * @return Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through privatelink.
     * 
     */
    private @Nullable String enforceSecurityGroupInboundRulesOnPrivateLinkTraffic;
    /**
     * @return The IP address type. The possible values are ``ipv4`` (for IPv4 addresses) and ``dualstack`` (for IPv4 and IPv6 addresses). You can’t specify ``dualstack`` for a load balancer with a UDP or TCP_UDP listener.
     * 
     */
    private @Nullable String ipAddressType;
    /**
     * @return Property loadBalancerArn
     * 
     */
    private @Nullable String loadBalancerArn;
    /**
     * @return The load balancer attributes.
     * 
     */
    private @Nullable List loadBalancerAttributes;
    /**
     * @return Property loadBalancerFullName
     * 
     */
    private @Nullable String loadBalancerFullName;
    /**
     * @return Property loadBalancerName
     * 
     */
    private @Nullable String loadBalancerName;
    /**
     * @return The name of the load balancer. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, must not begin or end with a hyphen, and must not begin with 'internal-'. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the load balancer. If you specify a name, you cannot perform updates that require replacement of this resource, but you can perform other updates. To replace the resource, specify a new name.
     * 
     */
    private @Nullable String name;
    /**
     * @return The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet. The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer. The default is an Internet-facing load balancer. You cannot specify a scheme for a Gateway Load Balancer.
     * 
     */
    private @Nullable String scheme;
    /**
     * @return [Application Load Balancers and Network Load Balancers] The IDs of the security groups for the load balancer.
     * 
     */
    private @Nullable List securityGroups;
    /**
     * @return The IDs of the subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both. [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets. [Application Load Balancers on Outposts] You must specify one Outpost subnet. [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet. [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. You cannot specify Elastic IP addresses for your subnets.
     * 
     */
    private @Nullable List subnetMappings;
    /**
     * @return The IDs of the subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both. To specify an Elastic IP address, specify subnet mappings instead of subnets. [Application Load Balancers] You must specify subnets from at least two Availability Zones. [Application Load Balancers on Outposts] You must specify one Outpost subnet. [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. [Network Load Balancers] You can specify subnets from one or more Availability Zones. [Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
     * 
     */
    private @Nullable List subnets;
    /**
     * @return The tags to assign to the load balancer.
     * 
     */
    private @Nullable List tags;
    /**
     * @return The type of load balancer. The default is ``application``.
     * 
     */
    private @Nullable String type;

    private AwsElasticLoadBalancingV2LoadBalancerPropertiesResponse() {}
    /**
     * @return Property canonicalHostedZoneID
     * 
     */
    public Optional canonicalHostedZoneID() {
        return Optional.ofNullable(this.canonicalHostedZoneID);
    }
    /**
     * @return Property dnsName
     * 
     */
    public Optional dnsName() {
        return Optional.ofNullable(this.dnsName);
    }
    /**
     * @return Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through privatelink.
     * 
     */
    public Optional enforceSecurityGroupInboundRulesOnPrivateLinkTraffic() {
        return Optional.ofNullable(this.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic);
    }
    /**
     * @return The IP address type. The possible values are ``ipv4`` (for IPv4 addresses) and ``dualstack`` (for IPv4 and IPv6 addresses). You can’t specify ``dualstack`` for a load balancer with a UDP or TCP_UDP listener.
     * 
     */
    public Optional ipAddressType() {
        return Optional.ofNullable(this.ipAddressType);
    }
    /**
     * @return Property loadBalancerArn
     * 
     */
    public Optional loadBalancerArn() {
        return Optional.ofNullable(this.loadBalancerArn);
    }
    /**
     * @return The load balancer attributes.
     * 
     */
    public List loadBalancerAttributes() {
        return this.loadBalancerAttributes == null ? List.of() : this.loadBalancerAttributes;
    }
    /**
     * @return Property loadBalancerFullName
     * 
     */
    public Optional loadBalancerFullName() {
        return Optional.ofNullable(this.loadBalancerFullName);
    }
    /**
     * @return Property loadBalancerName
     * 
     */
    public Optional loadBalancerName() {
        return Optional.ofNullable(this.loadBalancerName);
    }
    /**
     * @return The name of the load balancer. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, must not begin or end with a hyphen, and must not begin with 'internal-'. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the load balancer. If you specify a name, you cannot perform updates that require replacement of this resource, but you can perform other updates. To replace the resource, specify a new name.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet. The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer. The default is an Internet-facing load balancer. You cannot specify a scheme for a Gateway Load Balancer.
     * 
     */
    public Optional scheme() {
        return Optional.ofNullable(this.scheme);
    }
    /**
     * @return [Application Load Balancers and Network Load Balancers] The IDs of the security groups for the load balancer.
     * 
     */
    public List securityGroups() {
        return this.securityGroups == null ? List.of() : this.securityGroups;
    }
    /**
     * @return The IDs of the subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both. [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets. [Application Load Balancers on Outposts] You must specify one Outpost subnet. [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet. [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. You cannot specify Elastic IP addresses for your subnets.
     * 
     */
    public List subnetMappings() {
        return this.subnetMappings == null ? List.of() : this.subnetMappings;
    }
    /**
     * @return The IDs of the subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both. To specify an Elastic IP address, specify subnet mappings instead of subnets. [Application Load Balancers] You must specify subnets from at least two Availability Zones. [Application Load Balancers on Outposts] You must specify one Outpost subnet. [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. [Network Load Balancers] You can specify subnets from one or more Availability Zones. [Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
     * 
     */
    public List subnets() {
        return this.subnets == null ? List.of() : this.subnets;
    }
    /**
     * @return The tags to assign to the load balancer.
     * 
     */
    public List tags() {
        return this.tags == null ? List.of() : this.tags;
    }
    /**
     * @return The type of load balancer. The default is ``application``.
     * 
     */
    public Optional type() {
        return Optional.ofNullable(this.type);
    }

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

    public static Builder builder(AwsElasticLoadBalancingV2LoadBalancerPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String canonicalHostedZoneID;
        private @Nullable String dnsName;
        private @Nullable String enforceSecurityGroupInboundRulesOnPrivateLinkTraffic;
        private @Nullable String ipAddressType;
        private @Nullable String loadBalancerArn;
        private @Nullable List loadBalancerAttributes;
        private @Nullable String loadBalancerFullName;
        private @Nullable String loadBalancerName;
        private @Nullable String name;
        private @Nullable String scheme;
        private @Nullable List securityGroups;
        private @Nullable List subnetMappings;
        private @Nullable List subnets;
        private @Nullable List tags;
        private @Nullable String type;
        public Builder() {}
        public Builder(AwsElasticLoadBalancingV2LoadBalancerPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.canonicalHostedZoneID = defaults.canonicalHostedZoneID;
    	      this.dnsName = defaults.dnsName;
    	      this.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic = defaults.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic;
    	      this.ipAddressType = defaults.ipAddressType;
    	      this.loadBalancerArn = defaults.loadBalancerArn;
    	      this.loadBalancerAttributes = defaults.loadBalancerAttributes;
    	      this.loadBalancerFullName = defaults.loadBalancerFullName;
    	      this.loadBalancerName = defaults.loadBalancerName;
    	      this.name = defaults.name;
    	      this.scheme = defaults.scheme;
    	      this.securityGroups = defaults.securityGroups;
    	      this.subnetMappings = defaults.subnetMappings;
    	      this.subnets = defaults.subnets;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

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

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

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

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

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

            this.loadBalancerArn = loadBalancerArn;
            return this;
        }
        @CustomType.Setter
        public Builder loadBalancerAttributes(@Nullable List loadBalancerAttributes) {

            this.loadBalancerAttributes = loadBalancerAttributes;
            return this;
        }
        public Builder loadBalancerAttributes(LoadBalancerAttributeResponse... loadBalancerAttributes) {
            return loadBalancerAttributes(List.of(loadBalancerAttributes));
        }
        @CustomType.Setter
        public Builder loadBalancerFullName(@Nullable String loadBalancerFullName) {

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

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

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

            this.scheme = scheme;
            return this;
        }
        @CustomType.Setter
        public Builder securityGroups(@Nullable List securityGroups) {

            this.securityGroups = securityGroups;
            return this;
        }
        public Builder securityGroups(String... securityGroups) {
            return securityGroups(List.of(securityGroups));
        }
        @CustomType.Setter
        public Builder subnetMappings(@Nullable List subnetMappings) {

            this.subnetMappings = subnetMappings;
            return this;
        }
        public Builder subnetMappings(SubnetMappingResponse... subnetMappings) {
            return subnetMappings(List.of(subnetMappings));
        }
        @CustomType.Setter
        public Builder subnets(@Nullable List subnets) {

            this.subnets = subnets;
            return this;
        }
        public Builder subnets(String... subnets) {
            return subnets(List.of(subnets));
        }
        @CustomType.Setter
        public Builder tags(@Nullable List tags) {

            this.tags = tags;
            return this;
        }
        public Builder tags(TagResponse... tags) {
            return tags(List.of(tags));
        }
        @CustomType.Setter
        public Builder type(@Nullable String type) {

            this.type = type;
            return this;
        }
        public AwsElasticLoadBalancingV2LoadBalancerPropertiesResponse build() {
            final var _resultValue = new AwsElasticLoadBalancingV2LoadBalancerPropertiesResponse();
            _resultValue.canonicalHostedZoneID = canonicalHostedZoneID;
            _resultValue.dnsName = dnsName;
            _resultValue.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic = enforceSecurityGroupInboundRulesOnPrivateLinkTraffic;
            _resultValue.ipAddressType = ipAddressType;
            _resultValue.loadBalancerArn = loadBalancerArn;
            _resultValue.loadBalancerAttributes = loadBalancerAttributes;
            _resultValue.loadBalancerFullName = loadBalancerFullName;
            _resultValue.loadBalancerName = loadBalancerName;
            _resultValue.name = name;
            _resultValue.scheme = scheme;
            _resultValue.securityGroups = securityGroups;
            _resultValue.subnetMappings = subnetMappings;
            _resultValue.subnets = subnets;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy