Class LoadBalancer
- All Implemented Interfaces:
- Serializable,- SdkPojo,- ToCopyableBuilder<LoadBalancer.Builder,- LoadBalancer> 
Information about a load balancer.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionfinal List<AvailabilityZone> The subnets for the load balancer.static LoadBalancer.Builderbuilder()final StringThe ID of the Amazon Route 53 hosted zone associated with the load balancer.final InstantThe date and time the load balancer was created.final String[Application Load Balancers on Outposts] The ID of the customer-owned address pool.final StringdnsName()The public DNS name of the load balancer.[Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for source NAT.final String[Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for source NAT.final StringIndicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the AvailabilityZones property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the SecurityGroups property.final IpAddressTypeThe type of IP addresses used for public or private connections by the subnets attached to your load balancer.final StringThe type of IP addresses used for public or private connections by the subnets attached to your load balancer.final IpamPools[Application Load Balancers] The IPAM pool in use by the load balancer, if configured.final StringThe Amazon Resource Name (ARN) of the load balancer.final StringThe name of the load balancer.final LoadBalancerSchemeEnumscheme()The nodes of an Internet-facing load balancer have public IP addresses.final StringThe nodes of an Internet-facing load balancer have public IP addresses.The IDs of the security groups for the load balancer.static Class<? extends LoadBalancer.Builder> final LoadBalancerStatestate()The state of the load balancer.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final LoadBalancerTypeEnumtype()The type of load balancer.final StringThe type of load balancer.final StringvpcId()The ID of the VPC for the load balancer.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
loadBalancerArnThe Amazon Resource Name (ARN) of the load balancer. - Returns:
- The Amazon Resource Name (ARN) of the load balancer.
 
- 
dnsNameThe public DNS name of the load balancer. - Returns:
- The public DNS name of the load balancer.
 
- 
canonicalHostedZoneIdThe ID of the Amazon Route 53 hosted zone associated with the load balancer. - Returns:
- The ID of the Amazon Route 53 hosted zone associated with the load balancer.
 
- 
createdTimeThe date and time the load balancer was created. - Returns:
- The date and time the load balancer was created.
 
- 
loadBalancerNameThe name of the load balancer. - Returns:
- The name of the load balancer.
 
- 
schemeThe 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. If the service returns an enum value that is not available in the current SDK version, schemewill returnLoadBalancerSchemeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromschemeAsString().- Returns:
- 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. 
- See Also:
 
- 
schemeAsStringThe 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. If the service returns an enum value that is not available in the current SDK version, schemewill returnLoadBalancerSchemeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromschemeAsString().- Returns:
- 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. 
- See Also:
 
- 
vpcIdThe ID of the VPC for the load balancer. - Returns:
- The ID of the VPC for the load balancer.
 
- 
stateThe state of the load balancer. - Returns:
- The state of the load balancer.
 
- 
typeThe type of load balancer. If the service returns an enum value that is not available in the current SDK version, typewill returnLoadBalancerTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of load balancer.
- See Also:
 
- 
typeAsStringThe type of load balancer. If the service returns an enum value that is not available in the current SDK version, typewill returnLoadBalancerTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of load balancer.
- See Also:
 
- 
hasAvailabilityZonespublic final boolean hasAvailabilityZones()For responses, this returns true if the service returned a value for the AvailabilityZones property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
availabilityZonesThe subnets for the load balancer. Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasAvailabilityZones()method.- Returns:
- The subnets for the load balancer.
 
- 
hasSecurityGroupspublic final boolean hasSecurityGroups()For responses, this returns true if the service returned a value for the SecurityGroups property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
securityGroupsThe IDs of the security groups for the load balancer. Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasSecurityGroups()method.- Returns:
- The IDs of the security groups for the load balancer.
 
- 
ipAddressTypeThe type of IP addresses used for public or private connections by the subnets attached to your load balancer. [Application Load Balancers] The possible values are ipv4(IPv4 addresses),dualstack(IPv4 and IPv6 addresses), anddualstack-without-public-ipv4(public IPv6 addresses and private IPv4 and IPv6 addresses).[Network Load Balancers and Gateway Load Balancers] The possible values are ipv4(IPv4 addresses) anddualstack(IPv4 and IPv6 addresses).If the service returns an enum value that is not available in the current SDK version, ipAddressTypewill returnIpAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromipAddressTypeAsString().- Returns:
- The type of IP addresses used for public or private connections by the subnets attached to your load
         balancer.
         [Application Load Balancers] The possible values are ipv4(IPv4 addresses),dualstack(IPv4 and IPv6 addresses), anddualstack-without-public-ipv4(public IPv6 addresses and private IPv4 and IPv6 addresses).[Network Load Balancers and Gateway Load Balancers] The possible values are ipv4(IPv4 addresses) anddualstack(IPv4 and IPv6 addresses).
- See Also:
 
- 
ipAddressTypeAsStringThe type of IP addresses used for public or private connections by the subnets attached to your load balancer. [Application Load Balancers] The possible values are ipv4(IPv4 addresses),dualstack(IPv4 and IPv6 addresses), anddualstack-without-public-ipv4(public IPv6 addresses and private IPv4 and IPv6 addresses).[Network Load Balancers and Gateway Load Balancers] The possible values are ipv4(IPv4 addresses) anddualstack(IPv4 and IPv6 addresses).If the service returns an enum value that is not available in the current SDK version, ipAddressTypewill returnIpAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromipAddressTypeAsString().- Returns:
- The type of IP addresses used for public or private connections by the subnets attached to your load
         balancer.
         [Application Load Balancers] The possible values are ipv4(IPv4 addresses),dualstack(IPv4 and IPv6 addresses), anddualstack-without-public-ipv4(public IPv6 addresses and private IPv4 and IPv6 addresses).[Network Load Balancers and Gateway Load Balancers] The possible values are ipv4(IPv4 addresses) anddualstack(IPv4 and IPv6 addresses).
- See Also:
 
- 
customerOwnedIpv4Pool[Application Load Balancers on Outposts] The ID of the customer-owned address pool. - Returns:
- [Application Load Balancers on Outposts] The ID of the customer-owned address pool.
 
- 
enforceSecurityGroupInboundRulesOnPrivateLinkTrafficIndicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink. - Returns:
- Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.
 
- 
enablePrefixForIpv6SourceNat[Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for source NAT. The IP address type must be dualstack. The default value isoff.If the service returns an enum value that is not available in the current SDK version, enablePrefixForIpv6SourceNatwill returnEnablePrefixForIpv6SourceNatEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromenablePrefixForIpv6SourceNatAsString().- Returns:
- [Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for
         source NAT. The IP address type must be dualstack. The default value isoff.
- See Also:
 
- 
enablePrefixForIpv6SourceNatAsString[Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for source NAT. The IP address type must be dualstack. The default value isoff.If the service returns an enum value that is not available in the current SDK version, enablePrefixForIpv6SourceNatwill returnEnablePrefixForIpv6SourceNatEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromenablePrefixForIpv6SourceNatAsString().- Returns:
- [Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for
         source NAT. The IP address type must be dualstack. The default value isoff.
- See Also:
 
- 
ipamPools[Application Load Balancers] The IPAM pool in use by the load balancer, if configured. - Returns:
- [Application Load Balancers] The IPAM pool in use by the load balancer, if configured.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<LoadBalancer.Builder,- LoadBalancer> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-