public class DisableAvailabilityZonesForLoadBalancerRequest extends AmazonWebServiceRequest implements Serializable
Removes the specified Availability Zones from the set of Availability Zones for the specified load balancer in EC2-Classic or a default VPC.
For load balancers in a non-default VPC, use DetachLoadBalancerFromSubnets.
There must be at least one Availability Zone registered with a load balancer
at all times. After an Availability Zone is removed, all instances registered
with the load balancer that are in the removed Availability Zone go into the
OutOfService
state. Then, the load balancer attempts to equally
balance the traffic among its remaining Availability Zones.
For more information, see Add or Remove Availability Zones in the Classic Load Balancers Guide.
Constructor and Description |
---|
DisableAvailabilityZonesForLoadBalancerRequest()
Default constructor for 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()
The Availability Zones.
|
String |
getLoadBalancerName()
The name of the load balancer.
|
int |
hashCode() |
void |
setAvailabilityZones(Collection<String> availabilityZones)
The Availability Zones.
|
void |
setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DisableAvailabilityZonesForLoadBalancerRequest |
withAvailabilityZones(Collection<String> availabilityZones)
The Availability Zones.
|
DisableAvailabilityZonesForLoadBalancerRequest |
withAvailabilityZones(String... availabilityZones)
The Availability Zones.
|
DisableAvailabilityZonesForLoadBalancerRequest |
withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DisableAvailabilityZonesForLoadBalancerRequest()
public DisableAvailabilityZonesForLoadBalancerRequest(String loadBalancerName, List<String> availabilityZones)
loadBalancerName
- The name of the load balancer.
availabilityZones
- The Availability Zones.
public String getLoadBalancerName()
The name of the load balancer.
The name of the load balancer.
public void setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.
public DisableAvailabilityZonesForLoadBalancerRequest withLoadBalancerName(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 List<String> getAvailabilityZones()
The Availability Zones.
The Availability Zones.
public void setAvailabilityZones(Collection<String> availabilityZones)
The Availability Zones.
availabilityZones
- The Availability Zones.
public DisableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(String... availabilityZones)
The Availability Zones.
Returns a reference to this object so that method calls can be chained together.
availabilityZones
- The Availability Zones.
public DisableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(Collection<String> availabilityZones)
The Availability Zones.
Returns a reference to this object so that method calls can be chained together.
availabilityZones
- The Availability Zones.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.