@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceStatus extends Object implements Serializable, Cloneable, StructuredPojo
The instance status details.
| Constructor and Description |
|---|
InstanceStatus() |
| Modifier and Type | Method and Description |
|---|---|
InstanceStatus |
clone() |
boolean |
equals(Object obj) |
String |
getState()
The current state of the instance.
|
InstanceStateChangeReason |
getStateChangeReason()
The details of the status change reason for the instance.
|
InstanceTimeline |
getTimeline()
The timeline of the instance status over time.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setState(InstanceState state)
The current state of the instance.
|
void |
setState(String state)
The current state of the instance.
|
void |
setStateChangeReason(InstanceStateChangeReason stateChangeReason)
The details of the status change reason for the instance.
|
void |
setTimeline(InstanceTimeline timeline)
The timeline of the instance status over time.
|
String |
toString()
Returns a string representation of this object.
|
InstanceStatus |
withState(InstanceState state)
The current state of the instance.
|
InstanceStatus |
withState(String state)
The current state of the instance.
|
InstanceStatus |
withStateChangeReason(InstanceStateChangeReason stateChangeReason)
The details of the status change reason for the instance.
|
InstanceStatus |
withTimeline(InstanceTimeline timeline)
The timeline of the instance status over time.
|
public void setState(String state)
The current state of the instance.
state - The current state of the instance.InstanceStatepublic String getState()
The current state of the instance.
InstanceStatepublic InstanceStatus withState(String state)
The current state of the instance.
state - The current state of the instance.InstanceStatepublic void setState(InstanceState state)
The current state of the instance.
state - The current state of the instance.InstanceStatepublic InstanceStatus withState(InstanceState state)
The current state of the instance.
state - The current state of the instance.InstanceStatepublic void setStateChangeReason(InstanceStateChangeReason stateChangeReason)
The details of the status change reason for the instance.
stateChangeReason - The details of the status change reason for the instance.public InstanceStateChangeReason getStateChangeReason()
The details of the status change reason for the instance.
public InstanceStatus withStateChangeReason(InstanceStateChangeReason stateChangeReason)
The details of the status change reason for the instance.
stateChangeReason - The details of the status change reason for the instance.public void setTimeline(InstanceTimeline timeline)
The timeline of the instance status over time.
timeline - The timeline of the instance status over time.public InstanceTimeline getTimeline()
The timeline of the instance status over time.
public InstanceStatus withTimeline(InstanceTimeline timeline)
The timeline of the instance status over time.
timeline - The timeline of the instance status over time.public String toString()
toString in class ObjectObject.toString()public InstanceStatus clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.