public class AttachLoadBalancerToSubnetsRequest extends AmazonWebServiceRequest implements 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 Classic Load Balancers Guide.
Constructor and Description |
---|
AttachLoadBalancerToSubnetsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLoadBalancerName()
The name of the load balancer.
|
List<String> |
getSubnets()
The IDs of the subnets to add.
|
int |
hashCode() |
void |
setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
void |
setSubnets(Collection<String> subnets)
The IDs of the subnets to add.
|
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.
|
AttachLoadBalancerToSubnetsRequest |
withSubnets(String... subnets)
The IDs of the subnets to add.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getLoadBalancerName()
The name of the load balancer.
The name of the load balancer.
public void setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.
public AttachLoadBalancerToSubnetsRequest withLoadBalancerName(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 List<String> getSubnets()
The IDs of the subnets to add. You can add only one subnet per Availability Zone.
The IDs of the subnets to add. You can add only one subnet per Availability Zone.
public void setSubnets(Collection<String> subnets)
The IDs of the subnets to add. You can add only one subnet per Availability Zone.
subnets
- The IDs of the subnets to add. You can add only one subnet per Availability Zone.
public AttachLoadBalancerToSubnetsRequest withSubnets(String... subnets)
The IDs of the subnets to add. 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. You can add only one subnet per Availability Zone.
public AttachLoadBalancerToSubnetsRequest withSubnets(Collection<String> subnets)
The IDs of the subnets to add. 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. You can add only one subnet per Availability Zone.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.