Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticloadbalancing.model
Class DescribeInstanceHealthRequest

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

public class DescribeInstanceHealthRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the DescribeInstanceHealth operation.

Returns the current state of the instances of the specified LoadBalancer. If no instances are specified, the state of all the instances for the LoadBalancer is returned.

NOTE: The client must have created the specified input LoadBalancer in order to retrieve this information; the client must provide the same account credentials as those that were used to create the LoadBalancer.

See Also:
AmazonElasticLoadBalancing.describeInstanceHealth(DescribeInstanceHealthRequest), Serialized Form

Constructor Summary
DescribeInstanceHealthRequest()
          Default constructor for a new DescribeInstanceHealthRequest object.
DescribeInstanceHealthRequest(java.lang.String loadBalancerName)
          Constructs a new DescribeInstanceHealthRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<Instance> getInstances()
          A list of instance IDs whose states are being queried.
 java.lang.String getLoadBalancerName()
          The name associated with the LoadBalancer.
 int hashCode()
           
 void setInstances(java.util.Collection<Instance> instances)
          A list of instance IDs whose states are being queried.
 void setLoadBalancerName(java.lang.String loadBalancerName)
          The name associated with the LoadBalancer.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DescribeInstanceHealthRequest withInstances(java.util.Collection<Instance> instances)
          A list of instance IDs whose states are being queried.
 DescribeInstanceHealthRequest withInstances(Instance... instances)
          A list of instance IDs whose states are being queried.
 DescribeInstanceHealthRequest withLoadBalancerName(java.lang.String loadBalancerName)
          The name associated with the LoadBalancer.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescribeInstanceHealthRequest

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


DescribeInstanceHealthRequest

public DescribeInstanceHealthRequest(java.lang.String loadBalancerName)
Constructs a new DescribeInstanceHealthRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
loadBalancerName - The name associated with the LoadBalancer. The name must be unique within the client AWS account.
Method Detail

getLoadBalancerName

public java.lang.String getLoadBalancerName()
The name associated with the LoadBalancer. The name must be unique within the client AWS account.

Returns:
The name associated with the LoadBalancer. The name must be unique within the client AWS account.

setLoadBalancerName

public void setLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the LoadBalancer. The name must be unique within the client AWS account.

Parameters:
loadBalancerName - The name associated with the LoadBalancer. The name must be unique within the client AWS account.

withLoadBalancerName

public DescribeInstanceHealthRequest withLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the LoadBalancer. The name must be unique within the client AWS account.

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

Parameters:
loadBalancerName - The name associated with the LoadBalancer. The name must be unique within the client AWS account.

getInstances

public java.util.List<Instance> getInstances()
A list of instance IDs whose states are being queried.

Returns:
A list of instance IDs whose states are being queried.

setInstances

public void setInstances(java.util.Collection<Instance> instances)
A list of instance IDs whose states are being queried.

Parameters:
instances - A list of instance IDs whose states are being queried.

withInstances

public DescribeInstanceHealthRequest withInstances(Instance... instances)
A list of instance IDs whose states are being queried.

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

Parameters:
instances - A list of instance IDs whose states are being queried.

withInstances

public DescribeInstanceHealthRequest withInstances(java.util.Collection<Instance> instances)
A list of instance IDs whose states are being queried.

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

Parameters:
instances - A list of instance IDs whose states are being queried.

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.