public class ClusterStateChangeReason
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The reason that the cluster changed to its current state.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
code
The programmatic code for the state change reason.
|
private java.lang.String |
message
The descriptive message for the state change reason.
|
Constructor and Description |
---|
ClusterStateChangeReason() |
Modifier and Type | Method and Description |
---|---|
ClusterStateChangeReason |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode()
The programmatic code for the state change reason.
|
java.lang.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(java.lang.String code)
The programmatic code for the state change reason.
|
void |
setMessage(java.lang.String message)
The descriptive message for the state change reason.
|
java.lang.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(java.lang.String code)
The programmatic code for the state change reason.
|
ClusterStateChangeReason |
withMessage(java.lang.String message)
The descriptive message for the state change reason.
|
private java.lang.String code
The programmatic code for the state change reason.
private java.lang.String message
The descriptive message for the state change reason.
public void setCode(java.lang.String code)
The programmatic code for the state change reason.
code
- The programmatic code for the state change reason.ClusterStateChangeReasonCode
public java.lang.String getCode()
The programmatic code for the state change reason.
ClusterStateChangeReasonCode
public ClusterStateChangeReason withCode(java.lang.String code)
The programmatic code for the state change reason.
code
- The programmatic code for the state change reason.ClusterStateChangeReasonCode
public void setCode(ClusterStateChangeReasonCode code)
The programmatic code for the state change reason.
code
- The programmatic code for the state change reason.ClusterStateChangeReasonCode
public ClusterStateChangeReason withCode(ClusterStateChangeReasonCode code)
The programmatic code for the state change reason.
code
- The programmatic code for the state change reason.ClusterStateChangeReasonCode
public void setMessage(java.lang.String message)
The descriptive message for the state change reason.
message
- The descriptive message for the state change reason.public java.lang.String getMessage()
The descriptive message for the state change reason.
public ClusterStateChangeReason withMessage(java.lang.String message)
The descriptive message for the state change reason.
message
- The descriptive message for the state change reason.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ClusterStateChangeReason clone()
clone
in class java.lang.Object