public class InstanceState extends Object implements Serializable, Cloneable
Information about the state of a back-end instance.
| Constructor and Description | 
|---|
| InstanceState()Default constructor for a new InstanceState object. | 
| Modifier and Type | Method and Description | 
|---|---|
| InstanceState | clone() | 
| boolean | equals(Object obj) | 
| String | getDescription()A description of the instance state. | 
| String | getInstanceId()The ID of the instance. | 
| String | getReasonCode()Information about the cause of  OutOfServiceinstances. | 
| String | getState()The current state of the instance. | 
| int | hashCode() | 
| void | setDescription(String description)A description of the instance state. | 
| void | setInstanceId(String instanceId)The ID of the instance. | 
| void | setReasonCode(String reasonCode)Information about the cause of  OutOfServiceinstances. | 
| void | setState(String state)The current state of the instance. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| InstanceState | withDescription(String description)A description of the instance state. | 
| InstanceState | withInstanceId(String instanceId)The ID of the instance. | 
| InstanceState | withReasonCode(String reasonCode)Information about the cause of  OutOfServiceinstances. | 
| InstanceState | withState(String state)The current state of the instance. | 
public InstanceState()
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId - The ID of the instance.public InstanceState withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - The ID of the instance.public String getState()
Valid values:
 InService | OutOfService |
 Unknown
Valid values:
         InService | OutOfService |
         Unknown
public void setState(String state)
Valid values:
 InService | OutOfService |
 Unknown
state - The current state of the instance. Valid values:
         InService | OutOfService |
         Unknown
public InstanceState withState(String state)
Valid values:
 InService | OutOfService |
 Unknown
 
Returns a reference to this object so that method calls can be chained together.
state - The current state of the instance. Valid values:
         InService | OutOfService |
         Unknown
public String getReasonCode()
OutOfService instances.
 Specifically, whether the cause is Elastic Load Balancing or the
 instance. Valid values: ELB | Instance |
 N/A
OutOfService instances.
         Specifically, whether the cause is Elastic Load Balancing or the
         instance. Valid values: ELB | Instance |
         N/A
public void setReasonCode(String reasonCode)
OutOfService instances.
 Specifically, whether the cause is Elastic Load Balancing or the
 instance. Valid values: ELB | Instance |
 N/A
reasonCode - Information about the cause of OutOfService instances.
         Specifically, whether the cause is Elastic Load Balancing or the
         instance. Valid values: ELB | Instance |
         N/A
public InstanceState withReasonCode(String reasonCode)
OutOfService instances.
 Specifically, whether the cause is Elastic Load Balancing or the
 instance. Valid values: ELB | Instance |
 N/A
 
Returns a reference to this object so that method calls can be chained together.
reasonCode - Information about the cause of OutOfService instances.
         Specifically, whether the cause is Elastic Load Balancing or the
         instance. Valid values: ELB | Instance |
         N/A
public String getDescription()
N/A 
A transient error occurred. Please try again
 later. 
Instance has failed at least the
 UnhealthyThreshold number of health checks consecutively. 
Instance has not passed the configured HealthyThreshold
 number of health checks consecutively. 
Instance registration is still in progress. 
Instance is in the EC2 Availability Zone for which
 LoadBalancer is not configured to route traffic to. 
Instance is not currently registered with the
 LoadBalancer. 
Instance deregistration
 currently in progress. 
Disable Availability
 Zone is currently in progress. 
Instance is
 in pending state. 
Instance is in stopped
 state. 
Instance is in terminated
 state. 
N/A 
A transient error occurred. Please try again
         later. 
Instance has failed at least the
         UnhealthyThreshold number of health checks consecutively. 
Instance has not passed the configured HealthyThreshold
         number of health checks consecutively. 
Instance registration is still in progress. 
Instance is in the EC2 Availability Zone for which
         LoadBalancer is not configured to route traffic to. 
Instance is not currently registered with the
         LoadBalancer. 
Instance deregistration
         currently in progress. 
Disable Availability
         Zone is currently in progress. 
Instance is
         in pending state. 
Instance is in stopped
         state. 
Instance is in terminated
         state. 
public void setDescription(String description)
N/A 
A transient error occurred. Please try again
 later. 
Instance has failed at least the
 UnhealthyThreshold number of health checks consecutively. 
Instance has not passed the configured HealthyThreshold
 number of health checks consecutively. 
Instance registration is still in progress. 
Instance is in the EC2 Availability Zone for which
 LoadBalancer is not configured to route traffic to. 
Instance is not currently registered with the
 LoadBalancer. 
Instance deregistration
 currently in progress. 
Disable Availability
 Zone is currently in progress. 
Instance is
 in pending state. 
Instance is in stopped
 state. 
Instance is in terminated
 state. 
description - A description of the instance state. This string can contain one or
         more of the following messages. N/A 
A transient error occurred. Please try again
         later. 
Instance has failed at least the
         UnhealthyThreshold number of health checks consecutively. 
Instance has not passed the configured HealthyThreshold
         number of health checks consecutively. 
Instance registration is still in progress. 
Instance is in the EC2 Availability Zone for which
         LoadBalancer is not configured to route traffic to. 
Instance is not currently registered with the
         LoadBalancer. 
Instance deregistration
         currently in progress. 
Disable Availability
         Zone is currently in progress. 
Instance is
         in pending state. 
Instance is in stopped
         state. 
Instance is in terminated
         state. 
public InstanceState withDescription(String description)
N/A 
A transient error occurred. Please try again
 later. 
Instance has failed at least the
 UnhealthyThreshold number of health checks consecutively. 
Instance has not passed the configured HealthyThreshold
 number of health checks consecutively. 
Instance registration is still in progress. 
Instance is in the EC2 Availability Zone for which
 LoadBalancer is not configured to route traffic to. 
Instance is not currently registered with the
 LoadBalancer. 
Instance deregistration
 currently in progress. 
Disable Availability
 Zone is currently in progress. 
Instance is
 in pending state. 
Instance is in stopped
 state. 
Instance is in terminated
 state. 
Returns a reference to this object so that method calls can be chained together.
description - A description of the instance state. This string can contain one or
         more of the following messages. N/A 
A transient error occurred. Please try again
         later. 
Instance has failed at least the
         UnhealthyThreshold number of health checks consecutively. 
Instance has not passed the configured HealthyThreshold
         number of health checks consecutively. 
Instance registration is still in progress. 
Instance is in the EC2 Availability Zone for which
         LoadBalancer is not configured to route traffic to. 
Instance is not currently registered with the
         LoadBalancer. 
Instance deregistration
         currently in progress. 
Disable Availability
         Zone is currently in progress. 
Instance is
         in pending state. 
Instance is in stopped
         state. 
Instance is in terminated
         state. 
public String toString()
toString in class ObjectObject.toString()public InstanceState clone()
Copyright © 2015. All rights reserved.