public class ClusterStatus
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The detailed status of the cluster.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
state
The current state of the cluster.
|
private ClusterStateChangeReason |
stateChangeReason
The reason for the cluster status change.
|
private ClusterTimeline |
timeline
A timeline that represents the status of a cluster over the lifetime of
the cluster.
|
Constructor and Description |
---|
ClusterStatus() |
Modifier and Type | Method and Description |
---|---|
ClusterStatus |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getState()
The current state of the cluster.
|
ClusterStateChangeReason |
getStateChangeReason()
The reason for the cluster status change.
|
ClusterTimeline |
getTimeline()
A timeline that represents the status of a cluster over the lifetime of
the cluster.
|
int |
hashCode() |
void |
setState(ClusterState state)
The current state of the cluster.
|
void |
setState(java.lang.String state)
The current state of the cluster.
|
void |
setStateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.
|
void |
setTimeline(ClusterTimeline timeline)
A timeline that represents the status of a cluster over the lifetime of
the cluster.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ClusterStatus |
withState(ClusterState state)
The current state of the cluster.
|
ClusterStatus |
withState(java.lang.String state)
The current state of the cluster.
|
ClusterStatus |
withStateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.
|
ClusterStatus |
withTimeline(ClusterTimeline timeline)
A timeline that represents the status of a cluster over the lifetime of
the cluster.
|
private java.lang.String state
The current state of the cluster.
private ClusterStateChangeReason stateChangeReason
The reason for the cluster status change.
private ClusterTimeline timeline
A timeline that represents the status of a cluster over the lifetime of the cluster.
public void setState(java.lang.String state)
The current state of the cluster.
state
- The current state of the cluster.ClusterState
public java.lang.String getState()
The current state of the cluster.
ClusterState
public ClusterStatus withState(java.lang.String state)
The current state of the cluster.
state
- The current state of the cluster.ClusterState
public void setState(ClusterState state)
The current state of the cluster.
state
- The current state of the cluster.ClusterState
public ClusterStatus withState(ClusterState state)
The current state of the cluster.
state
- The current state of the cluster.ClusterState
public void setStateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.
stateChangeReason
- The reason for the cluster status change.public ClusterStateChangeReason getStateChangeReason()
The reason for the cluster status change.
public ClusterStatus withStateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.
stateChangeReason
- The reason for the cluster status change.public void setTimeline(ClusterTimeline timeline)
A timeline that represents the status of a cluster over the lifetime of the cluster.
timeline
- A timeline that represents the status of a cluster over the
lifetime of the cluster.public ClusterTimeline getTimeline()
A timeline that represents the status of a cluster over the lifetime of the cluster.
public ClusterStatus withTimeline(ClusterTimeline timeline)
A timeline that represents the status of a cluster over the lifetime of the cluster.
timeline
- A timeline that represents the status of a cluster over the
lifetime of the cluster.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 ClusterStatus clone()
clone
in class java.lang.Object