public class InstanceState
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about the state of a back-end instance.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
A description of the instance state.
|
private java.lang.String |
instanceId
The ID of the instance.
|
private java.lang.String |
reasonCode
Information about the cause of
OutOfService instances. |
private java.lang.String |
state
The current state of the instance.
|
Constructor and Description |
---|
InstanceState() |
Modifier and Type | Method and Description |
---|---|
InstanceState |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
A description of the instance state.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.String |
getReasonCode()
Information about the cause of
OutOfService instances. |
java.lang.String |
getState()
The current state of the instance.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
A description of the instance state.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setReasonCode(java.lang.String reasonCode)
Information about the cause of
OutOfService instances. |
void |
setState(java.lang.String state)
The current state of the instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceState |
withDescription(java.lang.String description)
A description of the instance state.
|
InstanceState |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
InstanceState |
withReasonCode(java.lang.String reasonCode)
Information about the cause of
OutOfService instances. |
InstanceState |
withState(java.lang.String state)
The current state of the instance.
|
private java.lang.String instanceId
The ID of the instance.
private java.lang.String state
The current state of the instance.
Valid values: InService
| OutOfService
|
Unknown
private java.lang.String 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
private java.lang.String 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 void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public InstanceState withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setState(java.lang.String state)
The current state of the instance.
Valid values: InService
| OutOfService
|
Unknown
state
- The current state of the instance.
Valid values: InService
| OutOfService
|
Unknown
public java.lang.String getState()
The current state of the instance.
Valid values: InService
| OutOfService
|
Unknown
Valid values: InService
| OutOfService
| Unknown
public InstanceState withState(java.lang.String state)
The current state of the instance.
Valid values: InService
| OutOfService
|
Unknown
state
- The current state of the instance.
Valid values: InService
| OutOfService
|
Unknown
public void setReasonCode(java.lang.String 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
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 java.lang.String getReasonCode()
Information about the cause of 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 InstanceState withReasonCode(java.lang.String 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
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 void setDescription(java.lang.String 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.
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 java.lang.String getDescription()
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.
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(java.lang.String 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.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InstanceState clone()
clone
in class java.lang.Object