com.amazonaws.services.elasticloadbalancing.model
Class AttachLoadBalancerToSubnetsRequest

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

public class AttachLoadBalancerToSubnetsRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the AttachLoadBalancerToSubnets operation.

Adds one or more subnets to the set of configured subnets in the Amazon Virtual Private Cloud (Amazon VPC) for the load balancer.

The load balancers evenly distribute requests across all of the registered subnets. For more information, see Deploy Elastic Load Balancing in Amazon VPC in the Elastic Load Balancing Developer Guide .

See Also:
AmazonElasticLoadBalancing.attachLoadBalancerToSubnets(AttachLoadBalancerToSubnetsRequest), Serialized Form

Constructor Summary
AttachLoadBalancerToSubnetsRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getLoadBalancerName()
          The name associated with the load balancer.
 java.util.List<java.lang.String> getSubnets()
          A list of subnet IDs to add for the load balancer.
 int hashCode()
           
 void setLoadBalancerName(java.lang.String loadBalancerName)
          The name associated with the load balancer.
 void setSubnets(java.util.Collection<java.lang.String> subnets)
          A list of subnet IDs to add for the load balancer.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AttachLoadBalancerToSubnetsRequest withLoadBalancerName(java.lang.String loadBalancerName)
          The name associated with the load balancer.
 AttachLoadBalancerToSubnetsRequest withSubnets(java.util.Collection<java.lang.String> subnets)
          A list of subnet IDs to add for the load balancer.
 AttachLoadBalancerToSubnetsRequest withSubnets(java.lang.String... subnets)
          A list of subnet IDs to add for 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

AttachLoadBalancerToSubnetsRequest

public AttachLoadBalancerToSubnetsRequest()
Method Detail

getLoadBalancerName

public java.lang.String getLoadBalancerName()
The name associated with the load balancer. The name must be unique within the set of load balancers associated with your AWS account.

Returns:
The name associated with the load balancer. The name must be unique within the set of load balancers associated with your AWS account.

setLoadBalancerName

public void setLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the load balancer. The name must be unique within the set of load balancers associated with your AWS account.

Parameters:
loadBalancerName - The name associated with the load balancer. The name must be unique within the set of load balancers associated with your AWS account.

withLoadBalancerName

public AttachLoadBalancerToSubnetsRequest withLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the load balancer. The name must be unique within the set of load balancers associated with your AWS account.

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

Parameters:
loadBalancerName - The name associated with the load balancer. The name must be unique within the set of load balancers associated with your AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.

getSubnets

public java.util.List<java.lang.String> getSubnets()
A list of subnet IDs to add for the load balancer. You can add only one subnet per Availability Zone.

Returns:
A list of subnet IDs to add for the load balancer. You can add only one subnet per Availability Zone.

setSubnets

public void setSubnets(java.util.Collection<java.lang.String> subnets)
A list of subnet IDs to add for the load balancer. You can add only one subnet per Availability Zone.

Parameters:
subnets - A list of subnet IDs to add for the load balancer. You can add only one subnet per Availability Zone.

withSubnets

public AttachLoadBalancerToSubnetsRequest withSubnets(java.lang.String... subnets)
A list of subnet IDs to add for the load balancer. You can add only one subnet per Availability Zone.

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

Parameters:
subnets - A list of subnet IDs to add for the load balancer. You can add only one subnet per Availability Zone.
Returns:
A reference to this updated object so that method calls can be chained together.

withSubnets

public AttachLoadBalancerToSubnetsRequest withSubnets(java.util.Collection<java.lang.String> subnets)
A list of subnet IDs to add for the load balancer. You can add only one subnet per Availability Zone.

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

Parameters:
subnets - A list of subnet IDs to add for the load balancer. You can add only one subnet per Availability Zone.
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.