com.amazonaws.services.elasticmapreduce.model
Class InstanceGroupStateChangeReason

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

public class InstanceGroupStateChangeReason
extends Object
implements Serializable

The status change reason details for the instance group.

See Also:
Serialized Form

Constructor Summary
InstanceGroupStateChangeReason()
           
 
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(InstanceGroupStateChangeReasonCode 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.
 InstanceGroupStateChangeReason withCode(InstanceGroupStateChangeReasonCode code)
          The programmable code for the state change reason.
 InstanceGroupStateChangeReason withCode(String code)
          The programmable code for the state change reason.
 InstanceGroupStateChangeReason 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

InstanceGroupStateChangeReason

public InstanceGroupStateChangeReason()
Method Detail

getCode

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

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

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

setCode

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

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

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

withCode

public InstanceGroupStateChangeReason 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, 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:
InstanceGroupStateChangeReasonCode

setCode

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

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

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

withCode

public InstanceGroupStateChangeReason withCode(InstanceGroupStateChangeReasonCode 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, 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:
InstanceGroupStateChangeReasonCode

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 InstanceGroupStateChangeReason 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.