Class InstanceStatus

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

public class InstanceStatus extends Object implements Serializable, Cloneable

The instance status details.

See Also:
  • Constructor Details

    • InstanceStatus

      public InstanceStatus()
  • Method Details

    • setState

      public void setState(String state)

      The current state of the instance.

      Parameters:
      state - The current state of the instance.
      See Also:
    • getState

      public String getState()

      The current state of the instance.

      Returns:
      The current state of the instance.
      See Also:
    • withState

      public InstanceStatus withState(String state)

      The current state of the instance.

      Parameters:
      state - The current state of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setState

      public void setState(InstanceState state)

      The current state of the instance.

      Parameters:
      state - The current state of the instance.
      See Also:
    • withState

      public InstanceStatus withState(InstanceState state)

      The current state of the instance.

      Parameters:
      state - The current state of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setStateChangeReason

      public void setStateChangeReason(InstanceStateChangeReason stateChangeReason)

      The details of the status change reason for the instance.

      Parameters:
      stateChangeReason - The details of the status change reason for the instance.
    • getStateChangeReason

      public InstanceStateChangeReason getStateChangeReason()

      The details of the status change reason for the instance.

      Returns:
      The details of the status change reason for the instance.
    • withStateChangeReason

      public InstanceStatus withStateChangeReason(InstanceStateChangeReason stateChangeReason)

      The details of the status change reason for the instance.

      Parameters:
      stateChangeReason - The details of the status change reason for the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTimeline

      public void setTimeline(InstanceTimeline timeline)

      The timeline of the instance status over time.

      Parameters:
      timeline - The timeline of the instance status over time.
    • getTimeline

      public InstanceTimeline getTimeline()

      The timeline of the instance status over time.

      Returns:
      The timeline of the instance status over time.
    • withTimeline

      public InstanceStatus withTimeline(InstanceTimeline timeline)

      The timeline of the instance status over time.

      Parameters:
      timeline - The timeline of the instance status over time.
      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 InstanceStatus clone()
      Overrides:
      clone in class Object