Class ClusterStatus
- java.lang.Object
-
- com.amazonaws.services.elasticmapreduce.model.ClusterStatus
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ClusterStatus extends Object implements Serializable, Cloneable
The detailed status of the cluster.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterStatusclone()booleanequals(Object obj)StringgetState()The current state of the cluster.ClusterStateChangeReasongetStateChangeReason()The reason for the cluster status change.ClusterTimelinegetTimeline()A timeline that represents the status of a cluster over the lifetime of the cluster.inthashCode()voidsetState(ClusterState state)The current state of the cluster.voidsetState(String state)The current state of the cluster.voidsetStateChangeReason(ClusterStateChangeReason stateChangeReason)The reason for the cluster status change.voidsetTimeline(ClusterTimeline timeline)A timeline that represents the status of a cluster over the lifetime of the cluster.StringtoString()Returns a string representation of this object; useful for testing and debugging.ClusterStatuswithState(ClusterState state)The current state of the cluster.ClusterStatuswithState(String state)The current state of the cluster.ClusterStatuswithStateChangeReason(ClusterStateChangeReason stateChangeReason)The reason for the cluster status change.ClusterStatuswithTimeline(ClusterTimeline timeline)A timeline that represents the status of a cluster over the lifetime of the cluster.
-
-
-
Method Detail
-
setState
public void setState(String state)
The current state of the cluster.
- Parameters:
state- The current state of the cluster.- See Also:
ClusterState
-
getState
public String getState()
The current state of the cluster.
- Returns:
- The current state of the cluster.
- See Also:
ClusterState
-
withState
public ClusterStatus withState(String state)
The current state of the cluster.
- Parameters:
state- The current state of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterState
-
setState
public void setState(ClusterState state)
The current state of the cluster.
- Parameters:
state- The current state of the cluster.- See Also:
ClusterState
-
withState
public ClusterStatus withState(ClusterState state)
The current state of the cluster.
- Parameters:
state- The current state of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterState
-
setStateChangeReason
public void setStateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.
- Parameters:
stateChangeReason- The reason for the cluster status change.
-
getStateChangeReason
public ClusterStateChangeReason getStateChangeReason()
The reason for the cluster status change.
- Returns:
- The reason for the cluster status change.
-
withStateChangeReason
public ClusterStatus withStateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.
- Parameters:
stateChangeReason- The reason for the cluster status change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimeline
public void setTimeline(ClusterTimeline timeline)
A timeline that represents the status of a cluster over the lifetime of the cluster.
- Parameters:
timeline- A timeline that represents the status of a cluster over the lifetime of the cluster.
-
getTimeline
public ClusterTimeline getTimeline()
A timeline that represents the status of a cluster over the lifetime of the cluster.
- Returns:
- A timeline that represents the status of a cluster over the lifetime of the cluster.
-
withTimeline
public ClusterStatus withTimeline(ClusterTimeline timeline)
A timeline that represents the status of a cluster over the lifetime of the cluster.
- Parameters:
timeline- A timeline that represents the status of a cluster over the lifetime of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ClusterStatus clone()
-
-