public class ClusterStateChangeReason extends Object implements Serializable
The reason that the cluster changed to its current state.
Constructor and Description |
---|
ClusterStateChangeReason() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCode()
The programmatic code for the state change reason.
|
String |
getMessage()
The descriptive message for the state change reason.
|
int |
hashCode() |
void |
setCode(ClusterStateChangeReasonCode code)
The programmatic code for the state change reason.
|
void |
setCode(String code)
The programmatic code for the state change reason.
|
void |
setMessage(String message)
The descriptive message for the state change reason.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ClusterStateChangeReason |
withCode(ClusterStateChangeReasonCode code)
The programmatic code for the state change reason.
|
ClusterStateChangeReason |
withCode(String code)
The programmatic code for the state change reason.
|
ClusterStateChangeReason |
withMessage(String message)
The descriptive message for the state change reason.
|
public String getCode()
Constraints:
Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, USER_REQUEST, STEP_FAILURE, ALL_STEPS_COMPLETED
ClusterStateChangeReasonCode
public void setCode(String code)
Constraints:
Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, USER_REQUEST, STEP_FAILURE, ALL_STEPS_COMPLETED
code
- The programmatic code for the state change reason.ClusterStateChangeReasonCode
public ClusterStateChangeReason 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, USER_REQUEST, STEP_FAILURE, ALL_STEPS_COMPLETED
code
- The programmatic code for the state change reason.ClusterStateChangeReasonCode
public void setCode(ClusterStateChangeReasonCode code)
Constraints:
Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, USER_REQUEST, STEP_FAILURE, ALL_STEPS_COMPLETED
code
- The programmatic code for the state change reason.ClusterStateChangeReasonCode
public ClusterStateChangeReason withCode(ClusterStateChangeReasonCode 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, USER_REQUEST, STEP_FAILURE, ALL_STEPS_COMPLETED
code
- The programmatic code for the state change reason.ClusterStateChangeReasonCode
public String getMessage()
public void setMessage(String message)
message
- The descriptive message for the state change reason.public ClusterStateChangeReason withMessage(String message)
Returns a reference to this object so that method calls can be chained together.
message
- The descriptive message for the state change reason.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.