public class AttachLoadBalancerToSubnetsRequest extends AmazonWebServiceRequest implements java.io.Serializable
Adds one or more subnets to the set of configured subnets for the specified load balancer.
The load balancer evenly distributes requests across all registered subnets. For more information, see Add or Remove Subnets for Your Load Balancer in a VPC in the Elastic Load Balancing Developer Guide.
Constructor and Description |
---|
AttachLoadBalancerToSubnetsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLoadBalancerName()
The name of the load balancer.
|
java.util.List<java.lang.String> |
getSubnets()
The IDs of the subnets to add for the load balancer.
|
int |
hashCode() |
void |
setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
void |
setSubnets(java.util.Collection<java.lang.String> subnets)
The IDs of the subnets 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 of the load balancer.
|
AttachLoadBalancerToSubnetsRequest |
withSubnets(java.util.Collection<java.lang.String> subnets)
The IDs of the subnets to add for the load balancer.
|
AttachLoadBalancerToSubnetsRequest |
withSubnets(java.lang.String... subnets)
The IDs of the subnets to add for the load balancer.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getLoadBalancerName()
The name of the load balancer.
The name of the load balancer.
public void setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.
public AttachLoadBalancerToSubnetsRequest withLoadBalancerName(java.lang.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 java.util.List<java.lang.String> getSubnets()
The IDs of the subnets to add for the load balancer. You can add only one subnet per Availability Zone.
The IDs of the subnets to add for the load balancer. You can add only one subnet per Availability Zone.
public void setSubnets(java.util.Collection<java.lang.String> subnets)
The IDs of the subnets to add for the load balancer. You can add only one subnet per Availability Zone.
subnets
- The IDs of the subnets to add for the load balancer. You can add only one subnet per Availability Zone.
public AttachLoadBalancerToSubnetsRequest withSubnets(java.lang.String... subnets)
The IDs of the subnets 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.
subnets
- The IDs of the subnets to add for the load balancer. You can add only one subnet per Availability Zone.
public AttachLoadBalancerToSubnetsRequest withSubnets(java.util.Collection<java.lang.String> subnets)
The IDs of the subnets 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.
subnets
- The IDs of the subnets to add for the load balancer. You can add only one subnet per Availability Zone.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.