|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.elasticloadbalancing.model.DeregisterInstancesFromLoadBalancerRequest
public class DeregisterInstancesFromLoadBalancerRequest
Container for the parameters to the 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.
AmazonElasticLoadBalancing.deregisterInstancesFromLoadBalancer(DeregisterInstancesFromLoadBalancerRequest)
,
Serialized FormConstructor Summary | |
---|---|
DeregisterInstancesFromLoadBalancerRequest()
Default constructor for a new DeregisterInstancesFromLoadBalancerRequest object. |
|
DeregisterInstancesFromLoadBalancerRequest(java.lang.String loadBalancerName,
java.util.List<Instance> instances)
Constructs a new DeregisterInstancesFromLoadBalancerRequest object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.List<Instance> |
getInstances()
A list of EC2 instance IDs consisting of all instances to be deregistered. |
java.lang.String |
getLoadBalancerName()
The name associated with the load balancer. |
int |
hashCode()
|
void |
setInstances(java.util.Collection<Instance> instances)
A list of EC2 instance IDs consisting of all instances to be deregistered. |
void |
setLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the load balancer. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
DeregisterInstancesFromLoadBalancerRequest |
withInstances(java.util.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(java.lang.String loadBalancerName)
The name associated with the load balancer. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeregisterInstancesFromLoadBalancerRequest()
public DeregisterInstancesFromLoadBalancerRequest(java.lang.String loadBalancerName, java.util.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.Method Detail |
---|
public java.lang.String getLoadBalancerName()
public void setLoadBalancerName(java.lang.String loadBalancerName)
loadBalancerName
- The name associated with the load balancer.public DeregisterInstancesFromLoadBalancerRequest withLoadBalancerName(java.lang.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 java.util.List<Instance> getInstances()
public void setInstances(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |