com.amazonaws.services.elasticloadbalancing.model
Class DeregisterInstancesFromLoadBalancerRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticloadbalancing.model.DeregisterInstancesFromLoadBalancerRequest
All Implemented Interfaces:
java.io.Serializable

public class DeregisterInstancesFromLoadBalancerRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

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.

See Also:
AmazonElasticLoadBalancing.deregisterInstancesFromLoadBalancer(DeregisterInstancesFromLoadBalancerRequest), Serialized Form

Constructor 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

DeregisterInstancesFromLoadBalancerRequest

public DeregisterInstancesFromLoadBalancerRequest()
Default constructor for a new DeregisterInstancesFromLoadBalancerRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DeregisterInstancesFromLoadBalancerRequest

public DeregisterInstancesFromLoadBalancerRequest(java.lang.String loadBalancerName,
                                                  java.util.List<Instance> instances)
Constructs a new DeregisterInstancesFromLoadBalancerRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
loadBalancerName - The name associated with the load balancer.
instances - A list of EC2 instance IDs consisting of all instances to be deregistered.
Method Detail

getLoadBalancerName

public java.lang.String getLoadBalancerName()
The name associated with the load balancer.

Returns:
The name associated with the load balancer.

setLoadBalancerName

public void setLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the load balancer.

Parameters:
loadBalancerName - The name associated with the load balancer.

withLoadBalancerName

public DeregisterInstancesFromLoadBalancerRequest withLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the load balancer.

Returns a reference to this object so that method calls can be chained together.

Parameters:
loadBalancerName - The name associated with the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstances

public java.util.List<Instance> getInstances()
A list of EC2 instance IDs consisting of all instances to be deregistered.

Returns:
A list of EC2 instance IDs consisting of all instances to be deregistered.

setInstances

public void setInstances(java.util.Collection<Instance> instances)
A list of EC2 instance IDs consisting of all instances to be deregistered.

Parameters:
instances - A list of EC2 instance IDs consisting of all instances to be deregistered.

withInstances

public DeregisterInstancesFromLoadBalancerRequest withInstances(Instance... instances)
A list of EC2 instance IDs consisting of all instances to be deregistered.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instances - A list of EC2 instance IDs consisting of all instances to be deregistered.
Returns:
A reference to this updated object so that method calls can be chained together.

withInstances

public DeregisterInstancesFromLoadBalancerRequest withInstances(java.util.Collection<Instance> instances)
A list of EC2 instance IDs consisting of all instances to be deregistered.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instances - A list of EC2 instance IDs consisting of all instances to be deregistered.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.