public class AttachLoadBalancerToSubnetsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
AttachLoadBalancerToSubnets operation
.
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 Elastic Load Balancing in Amazon VPC in the Elastic Load Balancing Developer Guide .
NOOP
Constructor and Description |
---|
AttachLoadBalancerToSubnetsRequest() |
Modifier and Type | Method and Description |
---|---|
AttachLoadBalancerToSubnetsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getLoadBalancerName()
The name of the load balancer.
|
List<String> |
getSubnets()
The IDs of the subnets to add for the load balancer.
|
int |
hashCode() |
void |
setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
void |
setSubnets(Collection<String> subnets)
The IDs of the subnets to add for the load balancer.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachLoadBalancerToSubnetsRequest |
withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
AttachLoadBalancerToSubnetsRequest |
withSubnets(Collection<String> subnets)
The IDs of the subnets to add for the load balancer.
|
AttachLoadBalancerToSubnetsRequest |
withSubnets(String... subnets)
The IDs of the subnets to add for the load balancer.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName
- The name of the load balancer.public AttachLoadBalancerToSubnetsRequest withLoadBalancerName(String loadBalancerName)
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The name of the load balancer.public List<String> getSubnets()
public void setSubnets(Collection<String> subnets)
subnets
- The IDs of the subnets to add for the load balancer. You can add only
one subnet per Availability Zone.public AttachLoadBalancerToSubnetsRequest withSubnets(String... subnets)
NOTE: This method appends the values to the existing list (if
any). Use setSubnets(java.util.Collection)
or withSubnets(java.util.Collection)
if you want to override the
existing values.
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(Collection<String> subnets)
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 String toString()
toString
in class Object
Object.toString()
public AttachLoadBalancerToSubnetsRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.