Class InstanceStateChangeReason

java.lang.Object
com.amazonaws.services.elasticmapreduce.model.InstanceStateChangeReason
All Implemented Interfaces:
Serializable, Cloneable

public class InstanceStateChangeReason extends Object implements Serializable, Cloneable

The details of the status change reason for the instance.

See Also:
  • Constructor Details

    • InstanceStateChangeReason

      public InstanceStateChangeReason()
  • Method Details

    • setCode

      public void setCode(String code)

      The programmable code for the state change reason.

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

      public String getCode()

      The programmable code for the state change reason.

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

      public InstanceStateChangeReason withCode(String code)

      The programmable code for the state change reason.

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

      public void setCode(InstanceStateChangeReasonCode code)

      The programmable code for the state change reason.

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

      The programmable code for the state change reason.

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

      public void setMessage(String message)

      The status change reason description.

      Parameters:
      message - The status change reason description.
    • getMessage

      public String getMessage()

      The status change reason description.

      Returns:
      The status change reason description.
    • withMessage

      public InstanceStateChangeReason withMessage(String message)

      The status change reason description.

      Parameters:
      message - The status change reason description.
      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:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public InstanceStateChangeReason clone()
      Overrides:
      clone in class Object