public class DeregisterInstancesFromLoadBalancerRequest extends AmazonWebServiceRequest implements Serializable
Deregisters the specified instances from the specified load balancer. After the instance is deregistered, it no longer receives traffic from the load balancer.
You can use DescribeLoadBalancers to verify that the instance is deregistered from the load balancer.
For more information, see Register or De-Register EC2 Instances in the Classic Load Balancers Guide.
| Constructor and Description |
|---|
DeregisterInstancesFromLoadBalancerRequest()
Default constructor for DeregisterInstancesFromLoadBalancerRequest
object.
|
DeregisterInstancesFromLoadBalancerRequest(String loadBalancerName,
List<Instance> instances)
Constructs a new DeregisterInstancesFromLoadBalancerRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<Instance> |
getInstances()
The IDs of the instances.
|
String |
getLoadBalancerName()
The name of the load balancer.
|
int |
hashCode() |
void |
setInstances(Collection<Instance> instances)
The IDs of the instances.
|
void |
setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeregisterInstancesFromLoadBalancerRequest |
withInstances(Collection<Instance> instances)
The IDs of the instances.
|
DeregisterInstancesFromLoadBalancerRequest |
withInstances(Instance... instances)
The IDs of the instances.
|
DeregisterInstancesFromLoadBalancerRequest |
withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic DeregisterInstancesFromLoadBalancerRequest()
public DeregisterInstancesFromLoadBalancerRequest(String loadBalancerName, List<Instance> instances)
loadBalancerName - The name of the load balancer.
instances - The IDs of the instances.
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 DeregisterInstancesFromLoadBalancerRequest 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<Instance> getInstances()
The IDs of the instances.
The IDs of the instances.
public void setInstances(Collection<Instance> instances)
The IDs of the instances.
instances - The IDs of the instances.
public DeregisterInstancesFromLoadBalancerRequest withInstances(Instance... instances)
The IDs of the instances.
Returns a reference to this object so that method calls can be chained together.
instances - The IDs of the instances.
public DeregisterInstancesFromLoadBalancerRequest withInstances(Collection<Instance> instances)
The IDs of the instances.
Returns a reference to this object so that method calls can be chained together.
instances - The IDs of the instances.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.