com.amazonaws.services.elasticloadbalancing.model
Class DisableAvailabilityZonesForLoadBalancerRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticloadbalancing.model.DisableAvailabilityZonesForLoadBalancerRequest
All Implemented Interfaces:
java.io.Serializable

public class DisableAvailabilityZonesForLoadBalancerRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the 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 .

See Also:
AmazonElasticLoadBalancing.disableAvailabilityZonesForLoadBalancer(DisableAvailabilityZonesForLoadBalancerRequest), Serialized Form

Constructor Summary
DisableAvailabilityZonesForLoadBalancerRequest()
          Default constructor for a new DisableAvailabilityZonesForLoadBalancerRequest object.
DisableAvailabilityZonesForLoadBalancerRequest(java.lang.String loadBalancerName, java.util.List<java.lang.String> availabilityZones)
          Constructs a new DisableAvailabilityZonesForLoadBalancerRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<java.lang.String> getAvailabilityZones()
          A list of Availability Zones to be removed from the load balancer.
 java.lang.String getLoadBalancerName()
          The name associated with the load balancer.
 int hashCode()
           
 void setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
          A list of Availability Zones to be removed from the load balancer.
 void setLoadBalancerName(java.lang.String loadBalancerName)
          The name associated with the load balancer.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DisableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
          A list of Availability Zones to be removed from the load balancer.
 DisableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(java.lang.String... availabilityZones)
          A list of Availability Zones to be removed from the load balancer.
 DisableAvailabilityZonesForLoadBalancerRequest withLoadBalancerName(java.lang.String loadBalancerName)
          The name associated with the load balancer.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DisableAvailabilityZonesForLoadBalancerRequest

public DisableAvailabilityZonesForLoadBalancerRequest()
Default constructor for a new DisableAvailabilityZonesForLoadBalancerRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DisableAvailabilityZonesForLoadBalancerRequest

public DisableAvailabilityZonesForLoadBalancerRequest(java.lang.String loadBalancerName,
                                                      java.util.List<java.lang.String> availabilityZones)
Constructs a new DisableAvailabilityZonesForLoadBalancerRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
loadBalancerName - The name associated with the load balancer.
availabilityZones - A list of Availability Zones to be removed from the load balancer. There must be at least one Availability Zone registered with a load balancer at all times. Specified Availability Zones must be in the same region.
Method Detail

getLoadBalancerName

public java.lang.String getLoadBalancerName()
The name associated with the load balancer.

Returns:
The name associated with the load balancer.

setLoadBalancerName

public void setLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the load balancer.

Parameters:
loadBalancerName - The name associated with the load balancer.

withLoadBalancerName

public DisableAvailabilityZonesForLoadBalancerRequest withLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the load balancer.

Returns a reference to this object so that method calls can be chained together.

Parameters:
loadBalancerName - The name associated with the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZones

public java.util.List<java.lang.String> getAvailabilityZones()
A list of Availability Zones to be removed from the load balancer. There must be at least one Availability Zone registered with a load balancer at all times. Specified Availability Zones must be in the same region.

Returns:
A list of Availability Zones to be removed from the load balancer. There must be at least one Availability Zone registered with a load balancer at all times. Specified Availability Zones must be in the same region.

setAvailabilityZones

public void setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
A list of Availability Zones to be removed from the load balancer. There must be at least one Availability Zone registered with a load balancer at all times. Specified Availability Zones must be in the same region.

Parameters:
availabilityZones - A list of Availability Zones to be removed from the load balancer. There must be at least one Availability Zone registered with a load balancer at all times. Specified Availability Zones must be in the same region.

withAvailabilityZones

public DisableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(java.lang.String... availabilityZones)
A list of Availability Zones to be removed from the load balancer. There must be at least one Availability Zone registered with a load balancer at all times. Specified Availability Zones must be in the same region.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZones - A list of Availability Zones to be removed from the load balancer. There must be at least one Availability Zone registered with a load balancer at all times. Specified Availability Zones must be in the same region.
Returns:
A reference to this updated object so that method calls can be chained together.

withAvailabilityZones

public DisableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
A list of Availability Zones to be removed from the load balancer. There must be at least one Availability Zone registered with a load balancer at all times. Specified Availability Zones must be in the same region.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZones - A list of Availability Zones to be removed from the load balancer. There must be at least one Availability Zone registered with a load balancer at all times. Specified Availability Zones must be in the same region.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.