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 InstanceStatus
clone()
boolean
equals(Object obj)
String
getState()
The current state of the instance.InstanceStateChangeReason
getStateChangeReason()
The details of the status change reason for the instance.InstanceTimeline
getTimeline()
The timeline of the instance status over time.int
hashCode()
void
setState(InstanceState state)
The current state of the instance.void
setState(String state)
The current state of the instance.void
setStateChangeReason(InstanceStateChangeReason stateChangeReason)
The details of the status change reason for the instance.void
setTimeline(InstanceTimeline timeline)
The timeline of the instance status over time.String
toString()
Returns a string representation of this object; useful for testing and debugging.InstanceStatus
withState(InstanceState state)
The current state of the instance.InstanceStatus
withState(String state)
The current state of the instance.InstanceStatus
withStateChangeReason(InstanceStateChangeReason stateChangeReason)
The details of the status change reason for the instance.InstanceStatus
withTimeline(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceStatus clone()
-
-