public class CreateLoadBalancerRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a load balancer.
If the call completes successfully, a new load balancer is created with a unique Domain Name Service (DNS) name. The load balancer receives incoming traffic and routes it to the registered instances. For more information, see How Elastic Load Balancing Works in the Elastic Load Balancing Developer Guide.
You can create up to 20 load balancers per region per account. You can request an increase for the number of load balancers for your account. For more information, see Elastic Load Balancing Limits in the Elastic Load Balancing Developer Guide.
Constructor and Description |
---|
CreateLoadBalancerRequest()
Default constructor for CreateLoadBalancerRequest object.
|
CreateLoadBalancerRequest(java.lang.String loadBalancerName)
Constructs a new CreateLoadBalancerRequest object.
|
CreateLoadBalancerRequest(java.lang.String loadBalancerName,
java.util.List<Listener> listeners,
java.util.List<java.lang.String> availabilityZones)
Constructs a new CreateLoadBalancerRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getAvailabilityZones()
One or more Availability Zones from the same region as the load balancer.
|
java.util.List<Listener> |
getListeners()
The listeners.
|
java.lang.String |
getLoadBalancerName()
The name of the load balancer.
|
java.lang.String |
getScheme()
The type of a load balancer.
|
java.util.List<java.lang.String> |
getSecurityGroups()
The IDs of the security groups to assign to the load balancer.
|
java.util.List<java.lang.String> |
getSubnets()
The IDs of the subnets in your VPC to attach to the load balancer.
|
java.util.List<Tag> |
getTags()
A list of tags to assign to the load balancer.
|
int |
hashCode() |
void |
setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
One or more Availability Zones from the same region as the load balancer.
|
void |
setListeners(java.util.Collection<Listener> listeners)
The listeners.
|
void |
setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
void |
setScheme(java.lang.String scheme)
The type of a load balancer.
|
void |
setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The IDs of the security groups to assign to the load balancer.
|
void |
setSubnets(java.util.Collection<java.lang.String> subnets)
The IDs of the subnets in your VPC to attach to the load balancer.
|
void |
setTags(java.util.Collection<Tag> tags)
A list of tags to assign to the load balancer.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateLoadBalancerRequest |
withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
One or more Availability Zones from the same region as the load balancer.
|
CreateLoadBalancerRequest |
withAvailabilityZones(java.lang.String... availabilityZones)
One or more Availability Zones from the same region as the load balancer.
|
CreateLoadBalancerRequest |
withListeners(java.util.Collection<Listener> listeners)
The listeners.
|
CreateLoadBalancerRequest |
withListeners(Listener... listeners)
The listeners.
|
CreateLoadBalancerRequest |
withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
CreateLoadBalancerRequest |
withScheme(java.lang.String scheme)
The type of a load balancer.
|
CreateLoadBalancerRequest |
withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The IDs of the security groups to assign to the load balancer.
|
CreateLoadBalancerRequest |
withSecurityGroups(java.lang.String... securityGroups)
The IDs of the security groups to assign to the load balancer.
|
CreateLoadBalancerRequest |
withSubnets(java.util.Collection<java.lang.String> subnets)
The IDs of the subnets in your VPC to attach to the load balancer.
|
CreateLoadBalancerRequest |
withSubnets(java.lang.String... subnets)
The IDs of the subnets in your VPC to attach to the load balancer.
|
CreateLoadBalancerRequest |
withTags(java.util.Collection<Tag> tags)
A list of tags to assign to the load balancer.
|
CreateLoadBalancerRequest |
withTags(Tag... tags)
A list of tags to assign to the load balancer.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateLoadBalancerRequest()
public CreateLoadBalancerRequest(java.lang.String loadBalancerName)
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.
public CreateLoadBalancerRequest(java.lang.String loadBalancerName, java.util.List<Listener> listeners, java.util.List<java.lang.String> availabilityZones)
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.
public java.lang.String 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.
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.
public void setLoadBalancerName(java.lang.String 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.
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.
public CreateLoadBalancerRequest withLoadBalancerName(java.lang.String 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 a reference to this object so that method calls can be chained together.
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.
public java.util.List<Listener> getListeners()
The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
public void setListeners(java.util.Collection<Listener> listeners)
The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
listeners
- The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
public CreateLoadBalancerRequest withListeners(Listener... listeners)
The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
Returns a reference to this object so that method calls can be chained together.
listeners
- The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
public CreateLoadBalancerRequest withListeners(java.util.Collection<Listener> listeners)
The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
Returns a reference to this object so that method calls can be chained together.
listeners
- The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
public java.util.List<java.lang.String> 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.
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.
public void setAvailabilityZones(java.util.Collection<java.lang.String> 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.
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.
public CreateLoadBalancerRequest withAvailabilityZones(java.lang.String... 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 a reference to this object so that method calls can be chained together.
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.
public CreateLoadBalancerRequest withAvailabilityZones(java.util.Collection<java.lang.String> 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 a reference to this object so that method calls can be chained together.
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.
public java.util.List<java.lang.String> getSubnets()
The IDs of the subnets in your VPC to attach to the load balancer.
Specify one subnet per Availability Zone specified in
AvailabilityZones
.
The IDs of the subnets in your VPC to attach to the load
balancer. Specify one subnet per Availability Zone specified in
AvailabilityZones
.
public void setSubnets(java.util.Collection<java.lang.String> subnets)
The IDs of the subnets in your VPC to attach to the load balancer.
Specify one subnet per Availability Zone specified in
AvailabilityZones
.
subnets
-
The IDs of the subnets in your VPC to attach to the load
balancer. Specify one subnet per Availability Zone specified
in AvailabilityZones
.
public CreateLoadBalancerRequest withSubnets(java.lang.String... subnets)
The IDs of the subnets in your VPC to attach to the load balancer.
Specify one subnet per Availability Zone specified in
AvailabilityZones
.
Returns a reference to this object so that method calls can be chained together.
subnets
-
The IDs of the subnets in your VPC to attach to the load
balancer. Specify one subnet per Availability Zone specified
in AvailabilityZones
.
public CreateLoadBalancerRequest withSubnets(java.util.Collection<java.lang.String> subnets)
The IDs of the subnets in your VPC to attach to the load balancer.
Specify one subnet per Availability Zone specified in
AvailabilityZones
.
Returns a reference to this object so that method calls can be chained together.
subnets
-
The IDs of the subnets in your VPC to attach to the load
balancer. Specify one subnet per Availability Zone specified
in AvailabilityZones
.
public java.util.List<java.lang.String> getSecurityGroups()
The IDs of the security groups to assign to the load balancer.
The IDs of the security groups to assign to the load balancer.
public void setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The IDs of the security groups to assign to the load balancer.
securityGroups
- The IDs of the security groups to assign to the load balancer.
public CreateLoadBalancerRequest withSecurityGroups(java.lang.String... securityGroups)
The IDs of the security groups to assign to the load balancer.
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The IDs of the security groups to assign to the load balancer.
public CreateLoadBalancerRequest withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The IDs of the security groups to assign to the load balancer.
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The IDs of the security groups to assign to the load balancer.
public java.lang.String 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.
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.
public void setScheme(java.lang.String 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.
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.
public CreateLoadBalancerRequest withScheme(java.lang.String 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 a reference to this object so that method calls can be chained together.
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.
public java.util.List<Tag> 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.
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.
public void setTags(java.util.Collection<Tag> 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.
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.
public CreateLoadBalancerRequest withTags(Tag... 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 a reference to this object so that method calls can be chained together.
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.
public CreateLoadBalancerRequest withTags(java.util.Collection<Tag> 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 a reference to this object so that method calls can be chained together.
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.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.