public class InstanceStateChangeReason extends Object implements Serializable
The details of the status change reason for the instance.
| Constructor and Description | 
|---|
| InstanceStateChangeReason() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| String | getCode()The programmable code for the state change reason. | 
| String | getMessage()The status change reason description. | 
| int | hashCode() | 
| 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; useful for testing and
 debugging. | 
| 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 String getCode()
 Constraints:
 Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, CLUSTER_TERMINATED
InstanceStateChangeReasonCodepublic void setCode(String code)
 Constraints:
 Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, CLUSTER_TERMINATED
code - The programmable code for the state change reason.InstanceStateChangeReasonCodepublic InstanceStateChangeReason withCode(String code)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, CLUSTER_TERMINATED
code - The programmable code for the state change reason.InstanceStateChangeReasonCodepublic void setCode(InstanceStateChangeReasonCode code)
 Constraints:
 Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, CLUSTER_TERMINATED
code - The programmable code for the state change reason.InstanceStateChangeReasonCodepublic InstanceStateChangeReason withCode(InstanceStateChangeReasonCode code)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, CLUSTER_TERMINATED
code - The programmable code for the state change reason.InstanceStateChangeReasonCodepublic String getMessage()
public void setMessage(String message)
message - The status change reason description.public InstanceStateChangeReason withMessage(String message)
Returns a reference to this object so that method calls can be chained together.
message - The status change reason description.public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.