com.amazonaws.services.elasticmapreduce.model
Class InstanceStateChangeReason

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

public class InstanceStateChangeReason
extends Object
implements Serializable

The details of the status change reason for the instance.

See Also:
Serialized Form

Constructor Summary
InstanceStateChangeReason()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCode()
          The programmable code for the state change reason.
 String getMessage()
          The status change reason description.
 int hashCode()
           
 void setCode(InstanceStateChangeReasonCode code)
          The programmable code for the state change reason.
 void setCode(String code)
          The programmable code for the state change reason.
 void setMessage(String message)
          The status change reason description.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceStateChangeReason withCode(InstanceStateChangeReasonCode code)
          The programmable code for the state change reason.
 InstanceStateChangeReason withCode(String code)
          The programmable code for the state change reason.
 InstanceStateChangeReason withMessage(String message)
          The status change reason description.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceStateChangeReason

public InstanceStateChangeReason()
Method Detail

getCode

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

Constraints:
Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, CLUSTER_TERMINATED

Returns:
The programmable code for the state change reason.
See Also:
InstanceStateChangeReasonCode

setCode

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

Constraints:
Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, CLUSTER_TERMINATED

Parameters:
code - The programmable code for the state change reason.
See Also:
InstanceStateChangeReasonCode

withCode

public InstanceStateChangeReason withCode(String code)
The programmable 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, CLUSTER_TERMINATED

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

setCode

public void setCode(InstanceStateChangeReasonCode code)
The programmable code for the state change reason.

Constraints:
Allowed Values: INTERNAL_ERROR, VALIDATION_ERROR, INSTANCE_FAILURE, BOOTSTRAP_FAILURE, CLUSTER_TERMINATED

Parameters:
code - The programmable code for the state change reason.
See Also:
InstanceStateChangeReasonCode

withCode

public InstanceStateChangeReason withCode(InstanceStateChangeReasonCode code)
The programmable 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, CLUSTER_TERMINATED

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

getMessage

public String getMessage()
The status change reason description.

Returns:
The status change reason description.

setMessage

public void setMessage(String message)
The status change reason description.

Parameters:
message - The status change reason description.

withMessage

public InstanceStateChangeReason withMessage(String message)
The status change reason description.

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

Parameters:
message - The status change reason description.
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.