Class CreateLoadBalancerRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for CreateLoadBalancerRequest object.CreateLoadBalancerRequest
(String loadBalancerName) Constructs a new CreateLoadBalancerRequest object.CreateLoadBalancerRequest
(String loadBalancerName, List<Listener> listeners, List<String> availabilityZones) Constructs a new CreateLoadBalancerRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
One or more Availability Zones from the same region as the load balancer.The listeners.The name of the load balancer.The type of a load balancer.The IDs of the security groups to assign to the load balancer.The IDs of the subnets in your VPC to attach to the load balancer.getTags()
A list of tags to assign to the load balancer.int
hashCode()
void
setAvailabilityZones
(Collection<String> availabilityZones) One or more Availability Zones from the same region as the load balancer.void
setListeners
(Collection<Listener> listeners) The listeners.void
setLoadBalancerName
(String loadBalancerName) The name of the load balancer.void
The type of a load balancer.void
setSecurityGroups
(Collection<String> securityGroups) The IDs of the security groups to assign to the load balancer.void
setSubnets
(Collection<String> subnets) The IDs of the subnets in your VPC to attach to the load balancer.void
setTags
(Collection<Tag> tags) A list of tags to assign to the load balancer.toString()
Returns a string representation of this object; useful for testing and debugging.withAvailabilityZones
(String... availabilityZones) One or more Availability Zones from the same region as the load balancer.withAvailabilityZones
(Collection<String> availabilityZones) One or more Availability Zones from the same region as the load balancer.withListeners
(Listener... listeners) The listeners.withListeners
(Collection<Listener> listeners) The listeners.withLoadBalancerName
(String loadBalancerName) The name of the load balancer.withScheme
(String scheme) The type of a load balancer.withSecurityGroups
(String... securityGroups) The IDs of the security groups to assign to the load balancer.withSecurityGroups
(Collection<String> securityGroups) The IDs of the security groups to assign to the load balancer.withSubnets
(String... subnets) The IDs of the subnets in your VPC to attach to the load balancer.withSubnets
(Collection<String> subnets) The IDs of the subnets in your VPC to attach to the load balancer.A list of tags to assign to the load balancer.withTags
(Collection<Tag> tags) A list of tags to assign to the load balancer.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
CreateLoadBalancerRequest
public CreateLoadBalancerRequest()Default constructor for CreateLoadBalancerRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
CreateLoadBalancerRequest
Constructs a new CreateLoadBalancerRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
loadBalancerName
- The name of the load balancer.This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
-
CreateLoadBalancerRequest
public CreateLoadBalancerRequest(String loadBalancerName, List<Listener> listeners, List<String> availabilityZones) Constructs a new CreateLoadBalancerRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
loadBalancerName
- The name of the load balancer.This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
listeners
- The listeners.For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
availabilityZones
- One or more Availability Zones from the same region as the load balancer. Traffic is equally distributed across all specified Availability Zones.You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
-
-
Method Details
-
setLoadBalancerName
The name of the load balancer.
This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
- Parameters:
loadBalancerName
- The name of the load balancer.This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
-
getLoadBalancerName
The name of the load balancer.
This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
- Returns:
- The name of the load balancer.
This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
-
withLoadBalancerName
The name of the load balancer.
This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
- Parameters:
loadBalancerName
- The name of the load balancer.This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getListeners
The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
- Returns:
- The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
-
setListeners
The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
- Parameters:
listeners
- The listeners.For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
-
withListeners
The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
NOTE: This method appends the values to the existing list (if any). Use
setListeners(java.util.Collection)
orwithListeners(java.util.Collection)
if you want to override the existing values.- Parameters:
listeners
- The listeners.For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withListeners
The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
- Parameters:
listeners
- The listeners.For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAvailabilityZones
One or more Availability Zones from the same region as the load balancer. Traffic is equally distributed across all specified Availability Zones.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
- Returns:
- One or more Availability Zones from the same region as the load
balancer. Traffic is equally distributed across all specified
Availability Zones.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
-
setAvailabilityZones
One or more Availability Zones from the same region as the load balancer. Traffic is equally distributed across all specified Availability Zones.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
- Parameters:
availabilityZones
- One or more Availability Zones from the same region as the load balancer. Traffic is equally distributed across all specified Availability Zones.You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
-
withAvailabilityZones
One or more Availability Zones from the same region as the load balancer. Traffic is equally distributed across all specified Availability Zones.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
NOTE: This method appends the values to the existing list (if any). Use
setAvailabilityZones(java.util.Collection)
orwithAvailabilityZones(java.util.Collection)
if you want to override the existing values.- Parameters:
availabilityZones
- One or more Availability Zones from the same region as the load balancer. Traffic is equally distributed across all specified Availability Zones.You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAvailabilityZones
One or more Availability Zones from the same region as the load balancer. Traffic is equally distributed across all specified Availability Zones.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
- Parameters:
availabilityZones
- One or more Availability Zones from the same region as the load balancer. Traffic is equally distributed across all specified Availability Zones.You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSubnets
The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in
AvailabilityZones
.- Returns:
- The IDs of the subnets in your VPC to attach to the load
balancer. Specify one subnet per Availability Zone specified in
AvailabilityZones
.
-
setSubnets
The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in
AvailabilityZones
.- Parameters:
subnets
- The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified inAvailabilityZones
.
-
withSubnets
The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in
AvailabilityZones
.NOTE: This method appends the values to the existing list (if any). Use
setSubnets(java.util.Collection)
orwithSubnets(java.util.Collection)
if you want to override the existing values.- Parameters:
subnets
- The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified inAvailabilityZones
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSubnets
The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in
AvailabilityZones
.- Parameters:
subnets
- The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified inAvailabilityZones
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSecurityGroups
The IDs of the security groups to assign to the load balancer.
- Returns:
- The IDs of the security groups to assign to the load balancer.
-
setSecurityGroups
The IDs of the security groups to assign to the load balancer.
- Parameters:
securityGroups
- The IDs of the security groups to assign to the load balancer.
-
withSecurityGroups
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)
orwithSecurityGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
securityGroups
- The IDs of the security groups to assign to the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSecurityGroups
The IDs of the security groups to assign to the load balancer.
- Parameters:
securityGroups
- The IDs of the security groups to assign to the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setScheme
The type of a load balancer. Valid only for load balancers in a VPC.
By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS name, which resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers in the Elastic Load Balancing Developer Guide.
Specify
internal
to create an internal load balancer with a DNS name that resolves to private IP addresses.- Parameters:
scheme
- The type of a load balancer. Valid only for load balancers in a VPC.By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS name, which resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers in the Elastic Load Balancing Developer Guide.
Specify
internal
to create an internal load balancer with a DNS name that resolves to private IP addresses.
-
getScheme
The type of a load balancer. Valid only for load balancers in a VPC.
By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS name, which resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers in the Elastic Load Balancing Developer Guide.
Specify
internal
to create an internal load balancer with a DNS name that resolves to private IP addresses.- Returns:
- The type of a load balancer. Valid only for load balancers in a
VPC.
By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS name, which resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers in the Elastic Load Balancing Developer Guide.
Specify
internal
to create an internal load balancer with a DNS name that resolves to private IP addresses.
-
withScheme
The type of a load balancer. Valid only for load balancers in a VPC.
By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS name, which resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers in the Elastic Load Balancing Developer Guide.
Specify
internal
to create an internal load balancer with a DNS name that resolves to private IP addresses.- Parameters:
scheme
- The type of a load balancer. Valid only for load balancers in a VPC.By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS name, which resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers in the Elastic Load Balancing Developer Guide.
Specify
internal
to create an internal load balancer with a DNS name that resolves to private IP addresses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
A list of tags to assign to the load balancer.
For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer Guide.
- Returns:
- A list of tags to assign to the load balancer.
For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer Guide.
-
setTags
A list of tags to assign to the load balancer.
For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer Guide.
- Parameters:
tags
- A list of tags to assign to the load balancer.For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer Guide.
-
withTags
A list of tags to assign to the load balancer.
For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer Guide.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- A list of tags to assign to the load balancer.For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
A list of tags to assign to the load balancer.
For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer Guide.
- Parameters:
tags
- A list of tags to assign to the load balancer.For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-