public class DisableAvailabilityZonesForLoadBalancerRequest extends AmazonWebServiceRequest implements Serializable
DisableAvailabilityZonesForLoadBalancer operation
.
Removes the specified EC2 Availability Zones from the set of configured Availability Zones for the load balancer.
There must be at least one Availability Zone registered with a load balancer at all times. Once an Availability Zone is removed, all the instances registered with the load balancer that are in the removed Availability Zone go into the OutOfService state. Upon Availability Zone removal, the load balancer attempts to equally balance the traffic among its remaining usable Availability Zones. Trying to remove an Availability Zone that was not associated with the load balancer does nothing.
For more information, see Disable an Availability Zone from a Load-Balanced Application in the Elastic Load Balancing Developer Guide .
NOOP
Constructor and Description |
---|
DisableAvailabilityZonesForLoadBalancerRequest()
Default constructor for a new DisableAvailabilityZonesForLoadBalancerRequest object.
|
DisableAvailabilityZonesForLoadBalancerRequest(String loadBalancerName,
List<String> availabilityZones)
Constructs a new DisableAvailabilityZonesForLoadBalancerRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<String> |
getAvailabilityZones()
A list of Availability Zones to be removed from the load balancer.
|
String |
getLoadBalancerName()
The name associated with the load balancer.
|
int |
hashCode() |
void |
setAvailabilityZones(Collection<String> availabilityZones)
A list of Availability Zones to be removed from 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.
|
DisableAvailabilityZonesForLoadBalancerRequest |
withAvailabilityZones(Collection<String> availabilityZones)
A list of Availability Zones to be removed from the load balancer.
|
DisableAvailabilityZonesForLoadBalancerRequest |
withAvailabilityZones(String... availabilityZones)
A list of Availability Zones to be removed from the load balancer.
|
DisableAvailabilityZonesForLoadBalancerRequest |
withLoadBalancerName(String loadBalancerName)
The name associated with the load balancer.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DisableAvailabilityZonesForLoadBalancerRequest()
public DisableAvailabilityZonesForLoadBalancerRequest(String loadBalancerName, List<String> availabilityZones)
loadBalancerName
- The name associated with the load balancer.availabilityZones
- A list of Availability Zones to be removed
from the load balancer. public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName
- The name associated with the load balancer.public DisableAvailabilityZonesForLoadBalancerRequest 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 Availability Zones to be removed from the load balancer.
public DisableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(String... availabilityZones)
Returns a reference to this object so that method calls can be chained together.
availabilityZones
- A list of Availability Zones to be removed from the load balancer.
public DisableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(Collection<String> availabilityZones)
Returns a reference to this object so that method calls can be chained together.
availabilityZones
- A list of Availability Zones to be removed from the load balancer.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.