public class DeregisterInstancesFromLoadBalancerRequest extends AmazonWebServiceRequest implements Serializable
DeregisterInstancesFromLoadBalancer operation
.
Deregisters instances from the load balancer. Once the instance is deregistered, it will stop receiving traffic from the load balancer.
In order to successfully call this API, the same account credentials as those used to create the load balancer must be provided.
For more information, see De-register and Register Amazon EC2 Instances in the Elastic Load Balancing Developer Guide .
You can use DescribeLoadBalancers to verify if the instance is deregistered from the load balancer.
Constructor and Description |
---|
DeregisterInstancesFromLoadBalancerRequest()
Default constructor for a new 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()
A list of EC2 instance IDs consisting of all instances to be
deregistered.
|
String |
getLoadBalancerName()
The name associated with the load balancer.
|
int |
hashCode() |
void |
setInstances(Collection<Instance> instances)
A list of EC2 instance IDs consisting of all instances to be
deregistered.
|
void |
setLoadBalancerName(String loadBalancerName)
The name associated with the load balancer.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeregisterInstancesFromLoadBalancerRequest |
withInstances(Collection<Instance> instances)
A list of EC2 instance IDs consisting of all instances to be
deregistered.
|
DeregisterInstancesFromLoadBalancerRequest |
withInstances(Instance... instances)
A list of EC2 instance IDs consisting of all instances to be
deregistered.
|
DeregisterInstancesFromLoadBalancerRequest |
withLoadBalancerName(String loadBalancerName)
The name associated with the load balancer.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public DeregisterInstancesFromLoadBalancerRequest()
public DeregisterInstancesFromLoadBalancerRequest(String loadBalancerName, List<Instance> instances)
loadBalancerName
- The name associated with the load balancer.instances
- A list of EC2 instance IDs consisting of all
instances to be deregistered.public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName
- The name associated with the load balancer.public DeregisterInstancesFromLoadBalancerRequest withLoadBalancerName(String loadBalancerName)
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The name associated with the load balancer.public List<Instance> getInstances()
public void setInstances(Collection<Instance> instances)
instances
- A list of EC2 instance IDs consisting of all instances to be
deregistered.public DeregisterInstancesFromLoadBalancerRequest withInstances(Instance... instances)
Returns a reference to this object so that method calls can be chained together.
instances
- A list of EC2 instance IDs consisting of all instances to be
deregistered.public DeregisterInstancesFromLoadBalancerRequest withInstances(Collection<Instance> instances)
Returns a reference to this object so that method calls can be chained together.
instances
- A list of EC2 instance IDs consisting of all instances to be
deregistered.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.