public class EnableAvailabilityZonesForLoadBalancerRequest extends AmazonWebServiceRequest implements java.io.Serializable
Adds the specified Availability Zones to the set of Availability Zones for the specified load balancer.
The load balancer evenly distributes requests across all its registered Availability Zones that contain instances.
For more information, see Add Availability Zone in the Elastic Load Balancing Developer Guide.
Constructor and Description |
---|
EnableAvailabilityZonesForLoadBalancerRequest()
Default constructor for EnableAvailabilityZonesForLoadBalancerRequest
object.
|
EnableAvailabilityZonesForLoadBalancerRequest(java.lang.String loadBalancerName,
java.util.List<java.lang.String> availabilityZones)
Constructs a new EnableAvailabilityZonesForLoadBalancerRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getAvailabilityZones()
The Availability Zones.
|
java.lang.String |
getLoadBalancerName()
The name of the load balancer.
|
int |
hashCode() |
void |
setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
The Availability Zones.
|
void |
setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EnableAvailabilityZonesForLoadBalancerRequest |
withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
The Availability Zones.
|
EnableAvailabilityZonesForLoadBalancerRequest |
withAvailabilityZones(java.lang.String... availabilityZones)
The Availability Zones.
|
EnableAvailabilityZonesForLoadBalancerRequest |
withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public EnableAvailabilityZonesForLoadBalancerRequest()
public EnableAvailabilityZonesForLoadBalancerRequest(java.lang.String loadBalancerName, java.util.List<java.lang.String> availabilityZones)
loadBalancerName
- The name of the load balancer.
availabilityZones
- The Availability Zones. These must be in the same region as the load balancer.
public java.lang.String getLoadBalancerName()
The name of the load balancer.
The name of the load balancer.
public void setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.
public EnableAvailabilityZonesForLoadBalancerRequest withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The name of the load balancer.
public java.util.List<java.lang.String> getAvailabilityZones()
The Availability Zones. These must be in the same region as the load balancer.
The Availability Zones. These must be in the same region as the load balancer.
public void setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
The Availability Zones. These must be in the same region as the load balancer.
availabilityZones
- The Availability Zones. These must be in the same region as the load balancer.
public EnableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(java.lang.String... availabilityZones)
The Availability Zones. These must be in the same region as the load balancer.
Returns a reference to this object so that method calls can be chained together.
availabilityZones
- The Availability Zones. These must be in the same region as the load balancer.
public EnableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
The Availability Zones. These must be in the same region as the load balancer.
Returns a reference to this object so that method calls can be chained together.
availabilityZones
- The Availability Zones. These must be in the same region as the load balancer.
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.