public class EnableAvailabilityZonesForLoadBalancerRequest extends AmazonWebServiceRequest implements Serializable
EnableAvailabilityZonesForLoadBalancer operation
.
Adds one or more EC2 Availability Zones to the load balancer.
The load balancer evenly distributes requests across all its registered Availability Zones that contain instances.
NOTE: The new EC2 Availability Zones to be added must be in the same EC2 Region as the Availability Zones for which the load balancer was created.
For more information, see Expand a Load Balanced Application to an Additional Availability Zone in the Elastic Load Balancing Developer Guide .
Constructor and Description |
---|
EnableAvailabilityZonesForLoadBalancerRequest()
Default constructor for a new EnableAvailabilityZonesForLoadBalancerRequest object.
|
EnableAvailabilityZonesForLoadBalancerRequest(String loadBalancerName,
List<String> availabilityZones)
Constructs a new EnableAvailabilityZonesForLoadBalancerRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<String> |
getAvailabilityZones()
A list of new Availability Zones for the load balancer.
|
String |
getLoadBalancerName()
The name associated with the load balancer.
|
int |
hashCode() |
void |
setAvailabilityZones(Collection<String> availabilityZones)
A list of new Availability Zones for the load balancer.
|
void |
setLoadBalancerName(String loadBalancerName)
The name associated with the load balancer.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EnableAvailabilityZonesForLoadBalancerRequest |
withAvailabilityZones(Collection<String> availabilityZones)
A list of new Availability Zones for the load balancer.
|
EnableAvailabilityZonesForLoadBalancerRequest |
withAvailabilityZones(String... availabilityZones)
A list of new Availability Zones for the load balancer.
|
EnableAvailabilityZonesForLoadBalancerRequest |
withLoadBalancerName(String loadBalancerName)
The name associated with the load balancer.
|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public EnableAvailabilityZonesForLoadBalancerRequest()
public EnableAvailabilityZonesForLoadBalancerRequest(String loadBalancerName, List<String> availabilityZones)
loadBalancerName
- The name associated with the load balancer.availabilityZones
- A list of new Availability Zones for the load
balancer. Each Availability Zone must be in the same region as the
load balancer.public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName
- The name associated with the load balancer.public EnableAvailabilityZonesForLoadBalancerRequest withLoadBalancerName(String loadBalancerName)
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The name associated with the load balancer.public List<String> getAvailabilityZones()
public void setAvailabilityZones(Collection<String> availabilityZones)
availabilityZones
- A list of new Availability Zones for the load balancer. Each
Availability Zone must be in the same region as the load balancer.public EnableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(String... availabilityZones)
Returns a reference to this object so that method calls can be chained together.
availabilityZones
- A list of new Availability Zones for the load balancer. Each
Availability Zone must be in the same region as the load balancer.public EnableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(Collection<String> availabilityZones)
Returns a reference to this object so that method calls can be chained together.
availabilityZones
- A list of new Availability Zones for the load balancer. Each
Availability Zone must be in the same region as the load balancer.public String toString()
toString
in class Object
Object.toString()
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.