@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceState extends Object implements Serializable, Cloneable
Information about the state of an EC2 instance.
Constructor and Description |
---|
InstanceState() |
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
OutOfService instances. |
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
OutOfService instances. |
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
OutOfService instances. |
InstanceState |
withState(String state)
The current state of the instance.
|
public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public InstanceState withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setState(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 String getState()
The current state of the instance.
Valid values: InService
| OutOfService
| Unknown
Valid values: InService
| OutOfService
| Unknown
public InstanceState withState(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(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 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(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(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 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(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 String toString()
toString
in class Object
Object.toString()
public InstanceState clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.