public class DescribeInstanceHealthRequest extends AmazonWebServiceRequest implements Serializable
Describes the state of the specified instances with respect to the specified load balancer. If no instances are specified, the call describes the state of all instances that are currently registered with the load balancer. If instances are specified, their state is returned even if they are no longer registered with the load balancer. The state of terminated instances is not returned.
Constructor and Description |
---|
DescribeInstanceHealthRequest()
Default constructor for DescribeInstanceHealthRequest object.
|
DescribeInstanceHealthRequest(String loadBalancerName)
Constructs a new DescribeInstanceHealthRequest 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.
|
DescribeInstanceHealthRequest |
withInstances(Collection<Instance> instances)
The IDs of the instances.
|
DescribeInstanceHealthRequest |
withInstances(Instance... instances)
The IDs of the instances.
|
DescribeInstanceHealthRequest |
withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DescribeInstanceHealthRequest()
public DescribeInstanceHealthRequest(String loadBalancerName)
loadBalancerName
- The name of the load balancer.
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 DescribeInstanceHealthRequest 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 DescribeInstanceHealthRequest 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 DescribeInstanceHealthRequest 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 Object
Object.toString()
Copyright © 2018. All rights reserved.