Class ClusterStateChangeReason
- java.lang.Object
-
- com.amazonaws.services.elasticmapreduce.model.ClusterStateChangeReason
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ClusterStateChangeReason extends Object implements Serializable, Cloneable
The reason that the cluster changed to its current state.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterStateChangeReason()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterStateChangeReasonclone()booleanequals(Object obj)StringgetCode()The programmatic code for the state change reason.StringgetMessage()The descriptive message for the state change reason.inthashCode()voidsetCode(ClusterStateChangeReasonCode code)The programmatic code for the state change reason.voidsetCode(String code)The programmatic code for the state change reason.voidsetMessage(String message)The descriptive message for the state change reason.StringtoString()Returns a string representation of this object; useful for testing and debugging.ClusterStateChangeReasonwithCode(ClusterStateChangeReasonCode code)The programmatic code for the state change reason.ClusterStateChangeReasonwithCode(String code)The programmatic code for the state change reason.ClusterStateChangeReasonwithMessage(String message)The descriptive message for the state change reason.
-
-
-
Method Detail
-
setCode
public void setCode(String code)
The programmatic code for the state change reason.
- Parameters:
code- The programmatic code for the state change reason.- See Also:
ClusterStateChangeReasonCode
-
getCode
public String getCode()
The programmatic code for the state change reason.
- Returns:
- The programmatic code for the state change reason.
- See Also:
ClusterStateChangeReasonCode
-
withCode
public ClusterStateChangeReason withCode(String code)
The programmatic code for the state change reason.
- Parameters:
code- The programmatic code for the state change reason.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterStateChangeReasonCode
-
setCode
public void setCode(ClusterStateChangeReasonCode code)
The programmatic code for the state change reason.
- Parameters:
code- The programmatic code for the state change reason.- See Also:
ClusterStateChangeReasonCode
-
withCode
public ClusterStateChangeReason withCode(ClusterStateChangeReasonCode code)
The programmatic code for the state change reason.
- Parameters:
code- The programmatic code for the state change reason.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterStateChangeReasonCode
-
setMessage
public void setMessage(String message)
The descriptive message for the state change reason.
- Parameters:
message- The descriptive message for the state change reason.
-
getMessage
public String getMessage()
The descriptive message for the state change reason.
- Returns:
- The descriptive message for the state change reason.
-
withMessage
public ClusterStateChangeReason withMessage(String message)
The descriptive message for the state change reason.
- Parameters:
message- The descriptive message for the state change reason.- 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 ClusterStateChangeReason clone()
-
-