public class StateReason extends Object implements Serializable
Describes a state change for an Amazon EC2 instance.
| Constructor and Description |
|---|
StateReason() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCode()
Reason code for the state change.
|
String |
getMessage()
Descriptive message for the state change.
|
int |
hashCode() |
void |
setCode(String code)
Reason code for the state change.
|
void |
setMessage(String message)
Descriptive message for the state change.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StateReason |
withCode(String code)
Reason code for the state change.
|
StateReason |
withMessage(String message)
Descriptive message for the state change.
|
public String getCode()
public void setCode(String code)
code - Reason code for the state change.public StateReason withCode(String code)
Returns a reference to this object so that method calls can be chained together.
code - Reason code for the state change.public String getMessage()
public void setMessage(String message)
message - Descriptive message for the state change.public StateReason withMessage(String message)
Returns a reference to this object so that method calls can be chained together.
message - Descriptive message for the state change.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.