com.amazonaws.services.elasticloadbalancing.model
Class EnableAvailabilityZonesForLoadBalancerRequest

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

public class EnableAvailabilityZonesForLoadBalancerRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the EnableAvailabilityZonesForLoadBalancer operation.

Adds one or more EC2 Availability Zones to the load balancer.

The load balancer evenly distributes requests across all its registered Availability Zones that contain instances.

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

For more information, see Expand a Load Balanced Application to an Additional Availability Zone in the Elastic Load Balancing Developer Guide .

See Also:
AmazonElasticLoadBalancing.enableAvailabilityZonesForLoadBalancer(EnableAvailabilityZonesForLoadBalancerRequest), Serialized Form

Constructor Summary
EnableAvailabilityZonesForLoadBalancerRequest()
          Default constructor for a new EnableAvailabilityZonesForLoadBalancerRequest object.
EnableAvailabilityZonesForLoadBalancerRequest(java.lang.String loadBalancerName, java.util.List<java.lang.String> availabilityZones)
          Constructs a new EnableAvailabilityZonesForLoadBalancerRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<java.lang.String> getAvailabilityZones()
          A list of new Availability Zones for 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 new Availability Zones for 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.
 EnableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
          A list of new Availability Zones for the load balancer.
 EnableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(java.lang.String... availabilityZones)
          A list of new Availability Zones for the load balancer.
 EnableAvailabilityZonesForLoadBalancerRequest 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

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(java.lang.String loadBalancerName,
                                                     java.util.List<java.lang.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 load balancer.
availabilityZones - A list of new Availability Zones for the load balancer. Each Availability Zone must be in the same region as the load balancer.
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 EnableAvailabilityZonesForLoadBalancerRequest 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 new Availability Zones for the load balancer. Each Availability Zone must be in the same region as the load balancer.

Returns:
A list of new Availability Zones for the load balancer. Each Availability Zone must be in the same region as the load balancer.

setAvailabilityZones

public void setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
A list of new Availability Zones for the load balancer. Each Availability Zone must be in the same region as the load balancer.

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

withAvailabilityZones

public EnableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(java.lang.String... availabilityZones)
A list of new Availability Zones for the load balancer. Each Availability Zone must be in the same region as the load balancer.

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

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

withAvailabilityZones

public EnableAvailabilityZonesForLoadBalancerRequest withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
A list of new Availability Zones for the load balancer. Each Availability Zone must be in the same region as the load balancer.

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

Parameters:
availabilityZones - A list of new Availability Zones for the load balancer. Each Availability Zone must be in the same region as the load balancer.
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.