com.amazonaws.services.elasticloadbalancing.model
Class EnableAvailabilityZonesForLoadBalancerRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticloadbalancing.model.EnableAvailabilityZonesForLoadBalancerRequest

public class EnableAvailabilityZonesForLoadBalancerRequest
extends AmazonWebServiceRequest

Container for the parameters to the EnableAvailabilityZonesForLoadBalancer operation.

Adds one or more EC2 Availability Zones to the LoadBalancer.

The LoadBalancer evenly distributes requests across all its registered Availability Zones that contain instances. As a result, the client must ensure that its LoadBalancer is appropriately scaled for each registered Availability Zone.

NOTE: The new EC2 Availability Zones to be added must be in the same EC2 Region as the Availability Zones for which the LoadBalancer was created.

See Also:
AmazonElasticLoadBalancing.enableAvailabilityZonesForLoadBalancer(EnableAvailabilityZonesForLoadBalancerRequest)

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

Constructor Detail

EnableAvailabilityZonesForLoadBalancerRequest

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


EnableAvailabilityZonesForLoadBalancerRequest

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

Parameters:
loadBalancerName - The name associated with the LoadBalancer. The name must be unique within the client AWS account.
availabilityZones - A list of new Availability Zones for the LoadBalancer. Each Availability Zone must be in the same Region as the LoadBalancer.
Method Detail

getLoadBalancerName

public String getLoadBalancerName()
The name associated with the LoadBalancer. The name must be unique within the client AWS account.

Returns:
The name associated with the LoadBalancer. The name must be unique within the client AWS account.

setLoadBalancerName

public void setLoadBalancerName(String loadBalancerName)
The name associated with the LoadBalancer. The name must be unique within the client AWS account.

Parameters:
loadBalancerName - The name associated with the LoadBalancer. The name must be unique within the client AWS account.

withLoadBalancerName

public EnableAvailabilityZonesForLoadBalancerRequest withLoadBalancerName(String loadBalancerName)
The name associated with the LoadBalancer. The name must be unique within the client AWS account.

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

Parameters:
loadBalancerName - The name associated with the LoadBalancer. The name must be unique within the client AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZones

public List<String> getAvailabilityZones()
A list of new Availability Zones for the LoadBalancer. Each Availability Zone must be in the same Region as the LoadBalancer.

Returns:
A list of new Availability Zones for the LoadBalancer. Each Availability Zone must be in the same Region as the LoadBalancer.

setAvailabilityZones

public void setAvailabilityZones(Collection<String> availabilityZones)
A list of new Availability Zones for the LoadBalancer. Each Availability Zone must be in the same Region as the LoadBalancer.

Parameters:
availabilityZones - A list of new Availability Zones for the LoadBalancer. Each Availability Zone must be in the same Region as the LoadBalancer.

withAvailabilityZones

public EnableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(String... availabilityZones)
A list of new Availability Zones for the LoadBalancer. Each Availability Zone must be in the same Region as the LoadBalancer.

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

Parameters:
availabilityZones - A list of new Availability Zones for the LoadBalancer. Each Availability Zone must be in the same Region as the LoadBalancer.
Returns:
A reference to this updated object so that method calls can be chained together.

withAvailabilityZones

public EnableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(Collection<String> availabilityZones)
A list of new Availability Zones for the LoadBalancer. Each Availability Zone must be in the same Region as the LoadBalancer.

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

Parameters:
availabilityZones - A list of new Availability Zones for the LoadBalancer. Each Availability Zone must be in the same Region as the LoadBalancer.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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