public class DetachLoadBalancerFromSubnetsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DetachLoadBalancerFromSubnets operation
.
Removes the specified subnets from the set of configured subnets for the load balancer.
After a subnet is removed, all EC2 instances registered with the load
balancer in the removed subnet go into the OutOfService
state. Then, the load balancer balances the traffic among the
remaining routable subnets.
NOOP
Constructor and Description |
---|
DetachLoadBalancerFromSubnetsRequest() |
Modifier and Type | Method and Description |
---|---|
DetachLoadBalancerFromSubnetsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getLoadBalancerName()
The name of the load balancer.
|
List<String> |
getSubnets()
The IDs of the subnets.
|
int |
hashCode() |
void |
setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
void |
setSubnets(Collection<String> subnets)
The IDs of the subnets.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetachLoadBalancerFromSubnetsRequest |
withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
DetachLoadBalancerFromSubnetsRequest |
withSubnets(Collection<String> subnets)
The IDs of the subnets.
|
DetachLoadBalancerFromSubnetsRequest |
withSubnets(String... subnets)
The IDs of the subnets.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public DetachLoadBalancerFromSubnetsRequest()
public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName
- The name of the load balancer.public DetachLoadBalancerFromSubnetsRequest 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 void setSubnets(Collection<String> subnets)
subnets
- The IDs of the subnets.public DetachLoadBalancerFromSubnetsRequest 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.public DetachLoadBalancerFromSubnetsRequest withSubnets(Collection<String> subnets)
Returns a reference to this object so that method calls can be chained together.
subnets
- The IDs of the subnets.public String toString()
toString
in class Object
Object.toString()
public DetachLoadBalancerFromSubnetsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.