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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceStatusclone()booleanequals(Object obj)StringgetState()The current state of the instance.InstanceStateChangeReasongetStateChangeReason()The details of the status change reason for the instance.InstanceTimelinegetTimeline()The timeline of the instance status over time.inthashCode()voidsetState(InstanceState state)The current state of the instance.voidsetState(String state)The current state of the instance.voidsetStateChangeReason(InstanceStateChangeReason stateChangeReason)The details of the status change reason for the instance.voidsetTimeline(InstanceTimeline timeline)The timeline of the instance status over time.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstanceStatuswithState(InstanceState state)The current state of the instance.InstanceStatuswithState(String state)The current state of the instance.InstanceStatuswithStateChangeReason(InstanceStateChangeReason stateChangeReason)The details of the status change reason for the instance.InstanceStatuswithTimeline(InstanceTimeline timeline)The timeline of the instance status over time.
-
-
-
Method Detail
-
setState
public void setState(String state)
The current state of the instance.
- Parameters:
state- The current state of the instance.- See Also:
InstanceState
-
getState
public String getState()
The current state of the instance.
- Returns:
- The current state of the instance.
- See Also:
InstanceState
-
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:
InstanceState
-
setState
public void setState(InstanceState state)
The current state of the instance.
- Parameters:
state- The current state of the instance.- See Also:
InstanceState
-
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:
InstanceState
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceStatus clone()
-
-