@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 |
getIpAddressType()
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer.
|
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] The IDs of the security groups to assign to the load balancer.
|
List<SubnetMapping> |
getSubnetMappings()
The IDs of the subnets to attach to the load balancer.
|
List<String> |
getSubnets()
The IDs of the subnets to attach to the load balancer.
|
List<Tag> |
getTags()
One or more tags to assign to the load balancer.
|
String |
getType()
The type of load balancer to create.
|
int |
hashCode() |
void |
setIpAddressType(IpAddressType ipAddressType)
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer.
|
void |
setIpAddressType(String ipAddressType)
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer.
|
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] The IDs of the security groups to assign to the load balancer.
|
void |
setSubnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the subnets to attach to the load balancer.
|
void |
setSubnets(Collection<String> subnets)
The IDs of the subnets to attach to the load balancer.
|
void |
setTags(Collection<Tag> tags)
One or more tags to assign to the load balancer.
|
void |
setType(LoadBalancerTypeEnum type)
The type of load balancer to create.
|
void |
setType(String type)
The type of load balancer to create.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateLoadBalancerRequest |
withIpAddressType(IpAddressType ipAddressType)
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer.
|
CreateLoadBalancerRequest |
withIpAddressType(String ipAddressType)
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer.
|
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] The IDs of the security groups to assign to the load balancer.
|
CreateLoadBalancerRequest |
withSecurityGroups(String... securityGroups)
[Application Load Balancers] The IDs of the security groups to assign to the load balancer.
|
CreateLoadBalancerRequest |
withSubnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the subnets to attach to the load balancer.
|
CreateLoadBalancerRequest |
withSubnetMappings(SubnetMapping... subnetMappings)
The IDs of the subnets to attach to the load balancer.
|
CreateLoadBalancerRequest |
withSubnets(Collection<String> subnets)
The IDs of the subnets to attach to the load balancer.
|
CreateLoadBalancerRequest |
withSubnets(String... subnets)
The IDs of the subnets to attach to the load balancer.
|
CreateLoadBalancerRequest |
withTags(Collection<Tag> tags)
One or more tags to assign to the load balancer.
|
CreateLoadBalancerRequest |
withTags(Tag... tags)
One or more tags to assign to the load balancer.
|
CreateLoadBalancerRequest |
withType(LoadBalancerTypeEnum type)
The type of load balancer to create.
|
CreateLoadBalancerRequest |
withType(String type)
The type of load balancer to create.
|
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, and must not begin or end with a hyphen.
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, and must not begin or end with a hyphen.
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, and must not begin or end with a hyphen.
This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
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, and must not begin or end with a hyphen.
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, and must not begin or end with a hyphen.
public List<String> getSubnets()
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Network 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.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
public void setSubnets(Collection<String> subnets)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
subnets
- The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability
Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
public CreateLoadBalancerRequest withSubnets(String... subnets)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Network 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 to attach to the load balancer. You can specify only one subnet per Availability
Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
public CreateLoadBalancerRequest withSubnets(Collection<String> subnets)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
subnets
- The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability
Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
public List<SubnetMapping> getSubnetMappings()
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet.
public void setSubnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet.
subnetMappings
- The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability
Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet.
public CreateLoadBalancerRequest withSubnetMappings(SubnetMapping... subnetMappings)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet.
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 to attach to the load balancer. You can specify only one subnet per Availability
Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet.
public CreateLoadBalancerRequest withSubnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet.
subnetMappings
- The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability
Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet.
public List<String> getSecurityGroups()
[Application Load Balancers] The IDs of the security groups to assign to the load balancer.
public void setSecurityGroups(Collection<String> securityGroups)
[Application Load Balancers] The IDs of the security groups to assign to the load balancer.
securityGroups
- [Application Load Balancers] The IDs of the security groups to assign to the load balancer.public CreateLoadBalancerRequest withSecurityGroups(String... securityGroups)
[Application Load Balancers] The IDs of the security groups to assign to 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] The IDs of the security groups to assign to the load balancer.public CreateLoadBalancerRequest withSecurityGroups(Collection<String> securityGroups)
[Application Load Balancers] The IDs of the security groups to assign to the load balancer.
securityGroups
- [Application Load Balancers] The IDs of the security groups to assign to 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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing 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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing 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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing 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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing 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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing 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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing 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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing 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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing 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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing 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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
LoadBalancerSchemeEnum
public List<Tag> getTags()
One or more tags to assign to the load balancer.
public void setTags(Collection<Tag> tags)
One or more tags to assign to the load balancer.
tags
- One or more tags to assign to the load balancer.public CreateLoadBalancerRequest withTags(Tag... tags)
One or more 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
- One or more tags to assign to the load balancer.public CreateLoadBalancerRequest withTags(Collection<Tag> tags)
One or more tags to assign to the load balancer.
tags
- One or more tags to assign to the load balancer.public void setType(String type)
The type of load balancer to create. The default is application
.
type
- The type of load balancer to create. The default is application
.LoadBalancerTypeEnum
public String getType()
The type of load balancer to create. The default is application
.
application
.LoadBalancerTypeEnum
public CreateLoadBalancerRequest withType(String type)
The type of load balancer to create. The default is application
.
type
- The type of load balancer to create. The default is application
.LoadBalancerTypeEnum
public void setType(LoadBalancerTypeEnum type)
The type of load balancer to create. The default is application
.
type
- The type of load balancer to create. The default is application
.LoadBalancerTypeEnum
public CreateLoadBalancerRequest withType(LoadBalancerTypeEnum type)
The type of load balancer to create. The default is application
.
type
- The type of load balancer to create. The default is application
.LoadBalancerTypeEnum
public void setIpAddressType(String ipAddressType)
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible
values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
Internal load balancers must use ipv4
.
ipAddressType
- [Application Load Balancers] The type of IP addresses used by the subnets for your load balancer. The
possible values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses). Internal load balancers must use ipv4
.IpAddressType
public String getIpAddressType()
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible
values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
Internal load balancers must use ipv4
.
ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses). Internal load balancers must use ipv4
.IpAddressType
public CreateLoadBalancerRequest withIpAddressType(String ipAddressType)
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible
values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
Internal load balancers must use ipv4
.
ipAddressType
- [Application Load Balancers] The type of IP addresses used by the subnets for your load balancer. The
possible values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses). Internal load balancers must use ipv4
.IpAddressType
public void setIpAddressType(IpAddressType ipAddressType)
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible
values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
Internal load balancers must use ipv4
.
ipAddressType
- [Application Load Balancers] The type of IP addresses used by the subnets for your load balancer. The
possible values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses). Internal load balancers must use ipv4
.IpAddressType
public CreateLoadBalancerRequest withIpAddressType(IpAddressType ipAddressType)
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible
values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
Internal load balancers must use ipv4
.
ipAddressType
- [Application Load Balancers] The type of IP addresses used by the subnets for your load balancer. The
possible values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses). Internal load balancers must use ipv4
.IpAddressType
public String toString()
toString
in class Object
Object.toString()
public CreateLoadBalancerRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.