@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceStateChangeReason extends Object implements Serializable, Cloneable, StructuredPojo
The details of the status change reason for the instance.
| Constructor and Description |
|---|
InstanceStateChangeReason() |
| Modifier and Type | Method and Description |
|---|---|
InstanceStateChangeReason |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The programmable code for the state change reason.
|
String |
getMessage()
The status change reason description.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCode(InstanceStateChangeReasonCode code)
The programmable code for the state change reason.
|
void |
setCode(String code)
The programmable code for the state change reason.
|
void |
setMessage(String message)
The status change reason description.
|
String |
toString()
Returns a string representation of this object.
|
InstanceStateChangeReason |
withCode(InstanceStateChangeReasonCode code)
The programmable code for the state change reason.
|
InstanceStateChangeReason |
withCode(String code)
The programmable code for the state change reason.
|
InstanceStateChangeReason |
withMessage(String message)
The status change reason description.
|
public void setCode(String code)
The programmable code for the state change reason.
code - The programmable code for the state change reason.InstanceStateChangeReasonCodepublic String getCode()
The programmable code for the state change reason.
InstanceStateChangeReasonCodepublic InstanceStateChangeReason withCode(String code)
The programmable code for the state change reason.
code - The programmable code for the state change reason.InstanceStateChangeReasonCodepublic void setCode(InstanceStateChangeReasonCode code)
The programmable code for the state change reason.
code - The programmable code for the state change reason.InstanceStateChangeReasonCodepublic InstanceStateChangeReason withCode(InstanceStateChangeReasonCode code)
The programmable code for the state change reason.
code - The programmable code for the state change reason.InstanceStateChangeReasonCodepublic void setMessage(String message)
The status change reason description.
message - The status change reason description.public String getMessage()
The status change reason description.
public InstanceStateChangeReason withMessage(String message)
The status change reason description.
message - The status change reason description.public String toString()
toString in class ObjectObject.toString()public InstanceStateChangeReason clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.