@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LoadBalancer extends Object implements Serializable, Cloneable
Information about a load balancer.
Constructor and Description |
---|
LoadBalancer() |
Modifier and Type | Method and Description |
---|---|
LoadBalancer |
clone() |
boolean |
equals(Object obj) |
List<AvailabilityZone> |
getAvailabilityZones()
The subnets for the load balancer.
|
String |
getCanonicalHostedZoneId()
The ID of the Amazon Route 53 hosted zone associated with the load balancer.
|
Date |
getCreatedTime()
The date and time the load balancer was created.
|
String |
getCustomerOwnedIpv4Pool()
[Application Load Balancers on Outposts] The ID of the customer-owned address pool.
|
String |
getDNSName()
The public DNS name of the load balancer.
|
String |
getEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic()
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through
Amazon Web Services PrivateLink.
|
String |
getIpAddressType()
[Application Load Balancers] The type of IP addresses used for public or private connections by the subnets
attached to your load balancer.
|
String |
getLoadBalancerArn()
The Amazon Resource Name (ARN) of the load balancer.
|
String |
getLoadBalancerName()
The name of the load balancer.
|
String |
getScheme()
The nodes of an Internet-facing load balancer have public IP addresses.
|
List<String> |
getSecurityGroups()
The IDs of the security groups for the load balancer.
|
LoadBalancerState |
getState()
The state of the load balancer.
|
String |
getType()
The type of load balancer.
|
String |
getVpcId()
The ID of the VPC for the load balancer.
|
int |
hashCode() |
void |
setAvailabilityZones(Collection<AvailabilityZone> availabilityZones)
The subnets for the load balancer.
|
void |
setCanonicalHostedZoneId(String canonicalHostedZoneId)
The ID of the Amazon Route 53 hosted zone associated with the load balancer.
|
void |
setCreatedTime(Date createdTime)
The date and time the load balancer was created.
|
void |
setCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
[Application Load Balancers on Outposts] The ID of the customer-owned address pool.
|
void |
setDNSName(String dNSName)
The public DNS name of the load balancer.
|
void |
setEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic(String enforceSecurityGroupInboundRulesOnPrivateLinkTraffic)
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through
Amazon Web Services PrivateLink.
|
void |
setIpAddressType(IpAddressType ipAddressType)
[Application Load Balancers] The type of IP addresses used for public or private connections by the subnets
attached to your load balancer.
|
void |
setIpAddressType(String ipAddressType)
[Application Load Balancers] The type of IP addresses used for public or private connections by the subnets
attached to your load balancer.
|
void |
setLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
|
void |
setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
void |
setScheme(LoadBalancerSchemeEnum scheme)
The nodes of an Internet-facing load balancer have public IP addresses.
|
void |
setScheme(String scheme)
The nodes of an Internet-facing load balancer have public IP addresses.
|
void |
setSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups for the load balancer.
|
void |
setState(LoadBalancerState state)
The state of the load balancer.
|
void |
setType(LoadBalancerTypeEnum type)
The type of load balancer.
|
void |
setType(String type)
The type of load balancer.
|
void |
setVpcId(String vpcId)
The ID of the VPC for the load balancer.
|
String |
toString()
Returns a string representation of this object.
|
LoadBalancer |
withAvailabilityZones(AvailabilityZone... availabilityZones)
The subnets for the load balancer.
|
LoadBalancer |
withAvailabilityZones(Collection<AvailabilityZone> availabilityZones)
The subnets for the load balancer.
|
LoadBalancer |
withCanonicalHostedZoneId(String canonicalHostedZoneId)
The ID of the Amazon Route 53 hosted zone associated with the load balancer.
|
LoadBalancer |
withCreatedTime(Date createdTime)
The date and time the load balancer was created.
|
LoadBalancer |
withCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
[Application Load Balancers on Outposts] The ID of the customer-owned address pool.
|
LoadBalancer |
withDNSName(String dNSName)
The public DNS name of the load balancer.
|
LoadBalancer |
withEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic(String enforceSecurityGroupInboundRulesOnPrivateLinkTraffic)
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through
Amazon Web Services PrivateLink.
|
LoadBalancer |
withIpAddressType(IpAddressType ipAddressType)
[Application Load Balancers] The type of IP addresses used for public or private connections by the subnets
attached to your load balancer.
|
LoadBalancer |
withIpAddressType(String ipAddressType)
[Application Load Balancers] The type of IP addresses used for public or private connections by the subnets
attached to your load balancer.
|
LoadBalancer |
withLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
|
LoadBalancer |
withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
LoadBalancer |
withScheme(LoadBalancerSchemeEnum scheme)
The nodes of an Internet-facing load balancer have public IP addresses.
|
LoadBalancer |
withScheme(String scheme)
The nodes of an Internet-facing load balancer have public IP addresses.
|
LoadBalancer |
withSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups for the load balancer.
|
LoadBalancer |
withSecurityGroups(String... securityGroups)
The IDs of the security groups for the load balancer.
|
LoadBalancer |
withState(LoadBalancerState state)
The state of the load balancer.
|
LoadBalancer |
withType(LoadBalancerTypeEnum type)
The type of load balancer.
|
LoadBalancer |
withType(String type)
The type of load balancer.
|
LoadBalancer |
withVpcId(String vpcId)
The ID of the VPC for the load balancer.
|
public void setLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
loadBalancerArn
- The Amazon Resource Name (ARN) of the load balancer.public String getLoadBalancerArn()
The Amazon Resource Name (ARN) of the load balancer.
public LoadBalancer withLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
loadBalancerArn
- The Amazon Resource Name (ARN) of the load balancer.public void setDNSName(String dNSName)
The public DNS name of the load balancer.
dNSName
- The public DNS name of the load balancer.public String getDNSName()
The public DNS name of the load balancer.
public LoadBalancer withDNSName(String dNSName)
The public DNS name of the load balancer.
dNSName
- The public DNS name of the load balancer.public void setCanonicalHostedZoneId(String canonicalHostedZoneId)
The ID of the Amazon Route 53 hosted zone associated with the load balancer.
canonicalHostedZoneId
- The ID of the Amazon Route 53 hosted zone associated with the load balancer.public String getCanonicalHostedZoneId()
The ID of the Amazon Route 53 hosted zone associated with the load balancer.
public LoadBalancer withCanonicalHostedZoneId(String canonicalHostedZoneId)
The ID of the Amazon Route 53 hosted zone associated with the load balancer.
canonicalHostedZoneId
- The ID of the Amazon Route 53 hosted zone associated with the load balancer.public void setCreatedTime(Date createdTime)
The date and time the load balancer was created.
createdTime
- The date and time the load balancer was created.public Date getCreatedTime()
The date and time the load balancer was created.
public LoadBalancer withCreatedTime(Date createdTime)
The date and time the load balancer was created.
createdTime
- The date and time the load balancer was created.public void setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.public String getLoadBalancerName()
The name of the load balancer.
public LoadBalancer withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.public void setScheme(String scheme)
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.
scheme
- 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.
LoadBalancerSchemeEnum
public String getScheme()
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 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.
LoadBalancerSchemeEnum
public LoadBalancer withScheme(String scheme)
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.
scheme
- 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.
LoadBalancerSchemeEnum
public void setScheme(LoadBalancerSchemeEnum scheme)
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.
scheme
- 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.
LoadBalancerSchemeEnum
public LoadBalancer withScheme(LoadBalancerSchemeEnum scheme)
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.
scheme
- 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.
LoadBalancerSchemeEnum
public void setVpcId(String vpcId)
The ID of the VPC for the load balancer.
vpcId
- The ID of the VPC for the load balancer.public String getVpcId()
The ID of the VPC for the load balancer.
public LoadBalancer withVpcId(String vpcId)
The ID of the VPC for the load balancer.
vpcId
- The ID of the VPC for the load balancer.public void setState(LoadBalancerState state)
The state of the load balancer.
state
- The state of the load balancer.public LoadBalancerState getState()
The state of the load balancer.
public LoadBalancer withState(LoadBalancerState state)
The state of the load balancer.
state
- The state of the load balancer.public void setType(String type)
The type of load balancer.
type
- The type of load balancer.LoadBalancerTypeEnum
public String getType()
The type of load balancer.
LoadBalancerTypeEnum
public LoadBalancer withType(String type)
The type of load balancer.
type
- The type of load balancer.LoadBalancerTypeEnum
public void setType(LoadBalancerTypeEnum type)
The type of load balancer.
type
- The type of load balancer.LoadBalancerTypeEnum
public LoadBalancer withType(LoadBalancerTypeEnum type)
The type of load balancer.
type
- The type of load balancer.LoadBalancerTypeEnum
public List<AvailabilityZone> getAvailabilityZones()
The subnets for the load balancer.
public void setAvailabilityZones(Collection<AvailabilityZone> availabilityZones)
The subnets for the load balancer.
availabilityZones
- The subnets for the load balancer.public LoadBalancer withAvailabilityZones(AvailabilityZone... availabilityZones)
The subnets for the load balancer.
NOTE: This method appends the values to the existing list (if any). Use
setAvailabilityZones(java.util.Collection)
or withAvailabilityZones(java.util.Collection)
if
you want to override the existing values.
availabilityZones
- The subnets for the load balancer.public LoadBalancer withAvailabilityZones(Collection<AvailabilityZone> availabilityZones)
The subnets for the load balancer.
availabilityZones
- The subnets for the load balancer.public List<String> getSecurityGroups()
The IDs of the security groups for the load balancer.
public void setSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups for the load balancer.
securityGroups
- The IDs of the security groups for the load balancer.public LoadBalancer withSecurityGroups(String... securityGroups)
The IDs of the security groups for the load balancer.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- The IDs of the security groups for the load balancer.public LoadBalancer withSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups for the load balancer.
securityGroups
- The IDs of the security groups for the load balancer.public void setIpAddressType(String ipAddressType)
[Application Load Balancers] The type of IP addresses used for public or private connections by the subnets
attached to your load balancer. The possible values are ipv4
(for only IPv4 addresses),
dualstack
(for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4
(for IPv6
only public addresses, with private IPv4 and IPv6 addresses).
[Network Load Balancers and Gateway Load Balancers] The type of IP addresses used for public or private
connections by the subnets attached to your load balancer. The possible values are ipv4
(for only
IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
ipAddressType
- [Application Load Balancers] The type of IP addresses used for public or private connections by the
subnets attached to your load balancer. The possible values are ipv4
(for only IPv4
addresses), dualstack
(for IPv4 and IPv6 addresses), and
dualstack-without-public-ipv4
(for IPv6 only public addresses, with private IPv4 and IPv6
addresses).
[Network Load Balancers and Gateway Load Balancers] The type of IP addresses used for public or private
connections by the subnets attached to your load balancer. The possible values are ipv4
(for
only IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
IpAddressType
public String getIpAddressType()
[Application Load Balancers] The type of IP addresses used for public or private connections by the subnets
attached to your load balancer. The possible values are ipv4
(for only IPv4 addresses),
dualstack
(for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4
(for IPv6
only public addresses, with private IPv4 and IPv6 addresses).
[Network Load Balancers and Gateway Load Balancers] The type of IP addresses used for public or private
connections by the subnets attached to your load balancer. The possible values are ipv4
(for only
IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
ipv4
(for only IPv4
addresses), dualstack
(for IPv4 and IPv6 addresses), and
dualstack-without-public-ipv4
(for IPv6 only public addresses, with private IPv4 and IPv6
addresses).
[Network Load Balancers and Gateway Load Balancers] The type of IP addresses used for public or private
connections by the subnets attached to your load balancer. The possible values are ipv4
(for
only IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
IpAddressType
public LoadBalancer withIpAddressType(String ipAddressType)
[Application Load Balancers] The type of IP addresses used for public or private connections by the subnets
attached to your load balancer. The possible values are ipv4
(for only IPv4 addresses),
dualstack
(for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4
(for IPv6
only public addresses, with private IPv4 and IPv6 addresses).
[Network Load Balancers and Gateway Load Balancers] The type of IP addresses used for public or private
connections by the subnets attached to your load balancer. The possible values are ipv4
(for only
IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
ipAddressType
- [Application Load Balancers] The type of IP addresses used for public or private connections by the
subnets attached to your load balancer. The possible values are ipv4
(for only IPv4
addresses), dualstack
(for IPv4 and IPv6 addresses), and
dualstack-without-public-ipv4
(for IPv6 only public addresses, with private IPv4 and IPv6
addresses).
[Network Load Balancers and Gateway Load Balancers] The type of IP addresses used for public or private
connections by the subnets attached to your load balancer. The possible values are ipv4
(for
only IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
IpAddressType
public void setIpAddressType(IpAddressType ipAddressType)
[Application Load Balancers] The type of IP addresses used for public or private connections by the subnets
attached to your load balancer. The possible values are ipv4
(for only IPv4 addresses),
dualstack
(for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4
(for IPv6
only public addresses, with private IPv4 and IPv6 addresses).
[Network Load Balancers and Gateway Load Balancers] The type of IP addresses used for public or private
connections by the subnets attached to your load balancer. The possible values are ipv4
(for only
IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
ipAddressType
- [Application Load Balancers] The type of IP addresses used for public or private connections by the
subnets attached to your load balancer. The possible values are ipv4
(for only IPv4
addresses), dualstack
(for IPv4 and IPv6 addresses), and
dualstack-without-public-ipv4
(for IPv6 only public addresses, with private IPv4 and IPv6
addresses).
[Network Load Balancers and Gateway Load Balancers] The type of IP addresses used for public or private
connections by the subnets attached to your load balancer. The possible values are ipv4
(for
only IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
IpAddressType
public LoadBalancer withIpAddressType(IpAddressType ipAddressType)
[Application Load Balancers] The type of IP addresses used for public or private connections by the subnets
attached to your load balancer. The possible values are ipv4
(for only IPv4 addresses),
dualstack
(for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4
(for IPv6
only public addresses, with private IPv4 and IPv6 addresses).
[Network Load Balancers and Gateway Load Balancers] The type of IP addresses used for public or private
connections by the subnets attached to your load balancer. The possible values are ipv4
(for only
IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
ipAddressType
- [Application Load Balancers] The type of IP addresses used for public or private connections by the
subnets attached to your load balancer. The possible values are ipv4
(for only IPv4
addresses), dualstack
(for IPv4 and IPv6 addresses), and
dualstack-without-public-ipv4
(for IPv6 only public addresses, with private IPv4 and IPv6
addresses).
[Network Load Balancers and Gateway Load Balancers] The type of IP addresses used for public or private
connections by the subnets attached to your load balancer. The possible values are ipv4
(for
only IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
IpAddressType
public void setCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
[Application Load Balancers on Outposts] The ID of the customer-owned address pool.
customerOwnedIpv4Pool
- [Application Load Balancers on Outposts] The ID of the customer-owned address pool.public String getCustomerOwnedIpv4Pool()
[Application Load Balancers on Outposts] The ID of the customer-owned address pool.
public LoadBalancer withCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
[Application Load Balancers on Outposts] The ID of the customer-owned address pool.
customerOwnedIpv4Pool
- [Application Load Balancers on Outposts] The ID of the customer-owned address pool.public void setEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic(String enforceSecurityGroupInboundRulesOnPrivateLinkTraffic)
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.
enforceSecurityGroupInboundRulesOnPrivateLinkTraffic
- Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer
through Amazon Web Services PrivateLink.public String getEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic()
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.
public LoadBalancer withEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic(String enforceSecurityGroupInboundRulesOnPrivateLinkTraffic)
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.
enforceSecurityGroupInboundRulesOnPrivateLinkTraffic
- Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer
through Amazon Web Services PrivateLink.public String toString()
toString
in class Object
Object.toString()
public LoadBalancer clone()