com.amazonaws.services.elasticmapreduce.model
Class ClusterStatus

java.lang.Object
  extended by com.amazonaws.services.elasticmapreduce.model.ClusterStatus
All Implemented Interfaces:
Serializable

public class ClusterStatus
extends Object
implements Serializable

The detailed status of the cluster.

See Also:
Serialized Form

Constructor Summary
ClusterStatus()
           
 
Method Summary
 boolean equals(Object obj)
           
 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(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.
 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(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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusterStatus

public ClusterStatus()
Method Detail

getState

public String getState()
The current state of the cluster.

Constraints:
Allowed Values: STARTING, BOOTSTRAPPING, RUNNING, WAITING, TERMINATING, TERMINATED, TERMINATED_WITH_ERRORS

Returns:
The current state of the cluster.
See Also:
ClusterState

setState

public void setState(String state)
The current state of the cluster.

Constraints:
Allowed Values: STARTING, BOOTSTRAPPING, RUNNING, WAITING, TERMINATING, TERMINATED, TERMINATED_WITH_ERRORS

Parameters:
state - The current state of the cluster.
See Also:
ClusterState

withState

public ClusterStatus withState(String state)
The current state of the cluster.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: STARTING, BOOTSTRAPPING, RUNNING, WAITING, TERMINATING, TERMINATED, TERMINATED_WITH_ERRORS

Parameters:
state - The current state of the cluster.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ClusterState

setState

public void setState(ClusterState state)
The current state of the cluster.

Constraints:
Allowed Values: STARTING, BOOTSTRAPPING, RUNNING, WAITING, TERMINATING, TERMINATED, TERMINATED_WITH_ERRORS

Parameters:
state - The current state of the cluster.
See Also:
ClusterState

withState

public ClusterStatus withState(ClusterState state)
The current state of the cluster.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: STARTING, BOOTSTRAPPING, RUNNING, WAITING, TERMINATING, TERMINATED, TERMINATED_WITH_ERRORS

Parameters:
state - The current state of the cluster.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ClusterState

getStateChangeReason

public ClusterStateChangeReason getStateChangeReason()
The reason for the cluster status change.

Returns:
The reason for the cluster status change.

setStateChangeReason

public void setStateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.

Parameters:
stateChangeReason - The reason for the cluster status change.

withStateChangeReason

public ClusterStatus withStateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.

Returns a reference to this object so that method calls can be chained together.

Parameters:
stateChangeReason - The reason for the cluster status change.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withTimeline

public ClusterStatus withTimeline(ClusterTimeline timeline)
A timeline that represents the status of a cluster over the lifetime of the cluster.

Returns a reference to this object so that method calls can be chained together.

Parameters:
timeline - A timeline that represents the status of a cluster over the lifetime of the cluster.
Returns:
A reference to this updated 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:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.