public class EnableAvailabilityZonesForLoadBalancerRequest extends AmazonWebServiceRequest implements Serializable
Adds the specified Availability Zones to 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 AttachLoadBalancerToSubnets.
The load balancer evenly distributes requests across all its registered Availability Zones that contain instances. For more information, see Add or Remove Availability Zones in the Classic Load Balancers Guide.
| Constructor and Description |
|---|
EnableAvailabilityZonesForLoadBalancerRequest()
Default constructor for 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()
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.
|
EnableAvailabilityZonesForLoadBalancerRequest |
withAvailabilityZones(Collection<String> availabilityZones)
The Availability Zones.
|
EnableAvailabilityZonesForLoadBalancerRequest |
withAvailabilityZones(String... availabilityZones)
The Availability Zones.
|
EnableAvailabilityZonesForLoadBalancerRequest |
withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic EnableAvailabilityZonesForLoadBalancerRequest()
public EnableAvailabilityZonesForLoadBalancerRequest(String loadBalancerName, List<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 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 EnableAvailabilityZonesForLoadBalancerRequest 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. 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(Collection<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(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(Collection<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 String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.