com.amazonaws.services.elasticmapreduce.model
Class ClusterStateChangeReason

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

public class ClusterStateChangeReason
extends Object
implements Serializable

The reason that the cluster changed to its current state.

See Also:
Serialized Form

Constructor Summary
ClusterStateChangeReason()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCode()
          The programmatic code for the state change reason.
 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(String code)
          The programmatic code for the state change reason.
 void setMessage(String message)
          The descriptive message for the state change reason.
 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(String code)
          The programmatic code for the state change reason.
 ClusterStateChangeReason withMessage(String message)
          The descriptive message for the state change reason.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusterStateChangeReason

public ClusterStateChangeReason()
Method Detail

getCode

public String getCode()
The programmatic code for the state change reason.

Constraints:
Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, USER_REQUEST, STEP_FAILURE, ALL_STEPS_COMPLETED

Returns:
The programmatic code for the state change reason.
See Also:
ClusterStateChangeReasonCode

setCode

public void setCode(String code)
The programmatic code for the state change reason.

Constraints:
Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, USER_REQUEST, STEP_FAILURE, ALL_STEPS_COMPLETED

Parameters:
code - 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.

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

Constraints:
Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, USER_REQUEST, STEP_FAILURE, ALL_STEPS_COMPLETED

Parameters:
code - The programmatic code for the state change reason.
Returns:
A reference to this updated 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.

Constraints:
Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, USER_REQUEST, STEP_FAILURE, ALL_STEPS_COMPLETED

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.

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

Constraints:
Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, USER_REQUEST, STEP_FAILURE, ALL_STEPS_COMPLETED

Parameters:
code - The programmatic code for the state change reason.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ClusterStateChangeReasonCode

getMessage

public String getMessage()
The descriptive message for the state change reason.

Returns:
The descriptive message for the state change reason.

setMessage

public void setMessage(String message)
The descriptive message for the state change reason.

Parameters:
message - The descriptive message for the state change reason.

withMessage

public ClusterStateChangeReason withMessage(String message)
The descriptive message for the state change reason.

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

Parameters:
message - The descriptive message for the state change reason.
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.