@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateLoadBalancerRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateLoadBalancerRequest() |
Modifier and Type | Method and Description |
---|---|
CreateLoadBalancerRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCustomerOwnedIpv4Pool()
[Application Load Balancers on Outposts] The ID of the customer-owned address pool (CoIP pool).
|
String |
getIpAddressType()
Note: Internal load balancers must use the
ipv4 IP address type. |
String |
getName()
The name of the load balancer.
|
String |
getScheme()
The nodes of an Internet-facing load balancer have public IP addresses.
|
List<String> |
getSecurityGroups()
[Application Load Balancers and Network Load Balancers] The IDs of the security groups for the load balancer.
|
List<SubnetMapping> |
getSubnetMappings()
The IDs of the subnets.
|
List<String> |
getSubnets()
The IDs of the subnets.
|
List<Tag> |
getTags()
The tags to assign to the load balancer.
|
String |
getType()
The type of load balancer.
|
int |
hashCode() |
void |
setCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
[Application Load Balancers on Outposts] The ID of the customer-owned address pool (CoIP pool).
|
void |
setIpAddressType(IpAddressType ipAddressType)
Note: Internal load balancers must use the
ipv4 IP address type. |
void |
setIpAddressType(String ipAddressType)
Note: Internal load balancers must use the
ipv4 IP address type. |
void |
setName(String name)
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)
[Application Load Balancers and Network Load Balancers] The IDs of the security groups for the load balancer.
|
void |
setSubnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the subnets.
|
void |
setSubnets(Collection<String> subnets)
The IDs of the subnets.
|
void |
setTags(Collection<Tag> tags)
The tags to assign to the load balancer.
|
void |
setType(LoadBalancerTypeEnum type)
The type of load balancer.
|
void |
setType(String type)
The type of load balancer.
|
String |
toString()
Returns a string representation of this object.
|
CreateLoadBalancerRequest |
withCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
[Application Load Balancers on Outposts] The ID of the customer-owned address pool (CoIP pool).
|
CreateLoadBalancerRequest |
withIpAddressType(IpAddressType ipAddressType)
Note: Internal load balancers must use the
ipv4 IP address type. |
CreateLoadBalancerRequest |
withIpAddressType(String ipAddressType)
Note: Internal load balancers must use the
ipv4 IP address type. |
CreateLoadBalancerRequest |
withName(String name)
The name of the load balancer.
|
CreateLoadBalancerRequest |
withScheme(LoadBalancerSchemeEnum scheme)
The nodes of an Internet-facing load balancer have public IP addresses.
|
CreateLoadBalancerRequest |
withScheme(String scheme)
The nodes of an Internet-facing load balancer have public IP addresses.
|
CreateLoadBalancerRequest |
withSecurityGroups(Collection<String> securityGroups)
[Application Load Balancers and Network Load Balancers] The IDs of the security groups for the load balancer.
|
CreateLoadBalancerRequest |
withSecurityGroups(String... securityGroups)
[Application Load Balancers and Network Load Balancers] The IDs of the security groups for the load balancer.
|
CreateLoadBalancerRequest |
withSubnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the subnets.
|
CreateLoadBalancerRequest |
withSubnetMappings(SubnetMapping... subnetMappings)
The IDs of the subnets.
|
CreateLoadBalancerRequest |
withSubnets(Collection<String> subnets)
The IDs of the subnets.
|
CreateLoadBalancerRequest |
withSubnets(String... subnets)
The IDs of the subnets.
|
CreateLoadBalancerRequest |
withTags(Collection<Tag> tags)
The tags to assign to the load balancer.
|
CreateLoadBalancerRequest |
withTags(Tag... tags)
The tags to assign to the load balancer.
|
CreateLoadBalancerRequest |
withType(LoadBalancerTypeEnum type)
The type of load balancer.
|
CreateLoadBalancerRequest |
withType(String type)
The type of load balancer.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
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-".
name
- 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-".
public String getName()
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-".
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-".
public CreateLoadBalancerRequest withName(String name)
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-".
name
- 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-".
public List<String> getSubnets()
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.
[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 void setSubnets(Collection<String> subnets)
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.
subnets
- 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 CreateLoadBalancerRequest withSubnets(String... subnets)
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.
NOTE: This method appends the values to the existing list (if any). Use
setSubnets(java.util.Collection)
or withSubnets(java.util.Collection)
if you want to override
the existing values.
subnets
- 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 CreateLoadBalancerRequest withSubnets(Collection<String> subnets)
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.
subnets
- 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<SubnetMapping> getSubnetMappings()
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.
[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 void setSubnetMappings(Collection<SubnetMapping> subnetMappings)
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.
subnetMappings
- 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 CreateLoadBalancerRequest withSubnetMappings(SubnetMapping... subnetMappings)
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.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetMappings(java.util.Collection)
or withSubnetMappings(java.util.Collection)
if you want
to override the existing values.
subnetMappings
- 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 CreateLoadBalancerRequest withSubnetMappings(Collection<SubnetMapping> subnetMappings)
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.
subnetMappings
- 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<String> getSecurityGroups()
[Application Load Balancers and Network Load Balancers] The IDs of the security groups for the load balancer.
public void setSecurityGroups(Collection<String> securityGroups)
[Application Load Balancers and Network Load Balancers] The IDs of the security groups for the load balancer.
securityGroups
- [Application Load Balancers and Network Load Balancers] The IDs of the security groups for the load
balancer.public CreateLoadBalancerRequest withSecurityGroups(String... securityGroups)
[Application Load Balancers and Network Load Balancers] 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
- [Application Load Balancers and Network Load Balancers] The IDs of the security groups for the load
balancer.public CreateLoadBalancerRequest withSecurityGroups(Collection<String> securityGroups)
[Application Load Balancers and Network Load Balancers] The IDs of the security groups for the load balancer.
securityGroups
- [Application Load Balancers and Network Load Balancers] The IDs of the security groups for 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.
The default is an Internet-facing load balancer.
You cannot specify a scheme for a Gateway 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.
The default is an Internet-facing load balancer.
You cannot specify a scheme for a Gateway 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 default is an Internet-facing load balancer.
You cannot specify a scheme for a Gateway 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.
The default is an Internet-facing load balancer.
You cannot specify a scheme for a Gateway Load Balancer.
LoadBalancerSchemeEnum
public CreateLoadBalancerRequest 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.
The default is an Internet-facing load balancer.
You cannot specify a scheme for a Gateway 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.
The default is an Internet-facing load balancer.
You cannot specify a scheme for a Gateway 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.
The default is an Internet-facing load balancer.
You cannot specify a scheme for a Gateway 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.
The default is an Internet-facing load balancer.
You cannot specify a scheme for a Gateway Load Balancer.
LoadBalancerSchemeEnum
public CreateLoadBalancerRequest 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.
The default is an Internet-facing load balancer.
You cannot specify a scheme for a Gateway 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.
The default is an Internet-facing load balancer.
You cannot specify a scheme for a Gateway Load Balancer.
LoadBalancerSchemeEnum
public List<Tag> getTags()
The tags to assign to the load balancer.
public void setTags(Collection<Tag> tags)
The tags to assign to the load balancer.
tags
- The tags to assign to the load balancer.public CreateLoadBalancerRequest withTags(Tag... tags)
The tags to assign to the load balancer.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags to assign to the load balancer.public CreateLoadBalancerRequest withTags(Collection<Tag> tags)
The tags to assign to the load balancer.
tags
- The tags to assign to the load balancer.public void setType(String type)
The type of load balancer. The default is application
.
type
- The type of load balancer. The default is application
.LoadBalancerTypeEnum
public String getType()
The type of load balancer. The default is application
.
application
.LoadBalancerTypeEnum
public CreateLoadBalancerRequest withType(String type)
The type of load balancer. The default is application
.
type
- The type of load balancer. The default is application
.LoadBalancerTypeEnum
public void setType(LoadBalancerTypeEnum type)
The type of load balancer. The default is application
.
type
- The type of load balancer. The default is application
.LoadBalancerTypeEnum
public CreateLoadBalancerRequest withType(LoadBalancerTypeEnum type)
The type of load balancer. The default is application
.
type
- The type of load balancer. The default is application
.LoadBalancerTypeEnum
public void setIpAddressType(String ipAddressType)
Note: Internal load balancers must use the ipv4
IP address type.
[Application Load Balancers] The IP address type. 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] The IP address type. The possible values are ipv4
(for only 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.
[Gateway Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4 addresses)
and dualstack
(for IPv4 and IPv6 addresses).
ipAddressType
- Note: Internal load balancers must use the ipv4
IP address type.
[Application Load Balancers] The IP address type. 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] The IP address type. The possible values are ipv4
(for only 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.
[Gateway Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4
addresses) and dualstack
(for IPv4 and IPv6 addresses).
IpAddressType
public String getIpAddressType()
Note: Internal load balancers must use the ipv4
IP address type.
[Application Load Balancers] The IP address type. 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] The IP address type. The possible values are ipv4
(for only 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.
[Gateway Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4 addresses)
and dualstack
(for IPv4 and IPv6 addresses).
ipv4
IP address type.
[Application Load Balancers] The IP address type. 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] The IP address type. The possible values are ipv4
(for only 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.
[Gateway Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4
addresses) and dualstack
(for IPv4 and IPv6 addresses).
IpAddressType
public CreateLoadBalancerRequest withIpAddressType(String ipAddressType)
Note: Internal load balancers must use the ipv4
IP address type.
[Application Load Balancers] The IP address type. 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] The IP address type. The possible values are ipv4
(for only 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.
[Gateway Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4 addresses)
and dualstack
(for IPv4 and IPv6 addresses).
ipAddressType
- Note: Internal load balancers must use the ipv4
IP address type.
[Application Load Balancers] The IP address type. 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] The IP address type. The possible values are ipv4
(for only 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.
[Gateway Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4
addresses) and dualstack
(for IPv4 and IPv6 addresses).
IpAddressType
public void setIpAddressType(IpAddressType ipAddressType)
Note: Internal load balancers must use the ipv4
IP address type.
[Application Load Balancers] The IP address type. 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] The IP address type. The possible values are ipv4
(for only 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.
[Gateway Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4 addresses)
and dualstack
(for IPv4 and IPv6 addresses).
ipAddressType
- Note: Internal load balancers must use the ipv4
IP address type.
[Application Load Balancers] The IP address type. 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] The IP address type. The possible values are ipv4
(for only 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.
[Gateway Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4
addresses) and dualstack
(for IPv4 and IPv6 addresses).
IpAddressType
public CreateLoadBalancerRequest withIpAddressType(IpAddressType ipAddressType)
Note: Internal load balancers must use the ipv4
IP address type.
[Application Load Balancers] The IP address type. 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] The IP address type. The possible values are ipv4
(for only 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.
[Gateway Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4 addresses)
and dualstack
(for IPv4 and IPv6 addresses).
ipAddressType
- Note: Internal load balancers must use the ipv4
IP address type.
[Application Load Balancers] The IP address type. 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] The IP address type. The possible values are ipv4
(for only 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.
[Gateway Load Balancers] The IP address type. 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 (CoIP pool).
customerOwnedIpv4Pool
- [Application Load Balancers on Outposts] The ID of the customer-owned address pool (CoIP pool).public String getCustomerOwnedIpv4Pool()
[Application Load Balancers on Outposts] The ID of the customer-owned address pool (CoIP pool).
public CreateLoadBalancerRequest withCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
[Application Load Balancers on Outposts] The ID of the customer-owned address pool (CoIP pool).
customerOwnedIpv4Pool
- [Application Load Balancers on Outposts] The ID of the customer-owned address pool (CoIP pool).public String toString()
toString
in class Object
Object.toString()
public CreateLoadBalancerRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()