com.amazonaws.services.elasticmapreduce.model
Class InstanceStatus

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

public class InstanceStatus
extends Object
implements Serializable

The instance status details.

See Also:
Serialized Form

Constructor Summary
InstanceStatus()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceStatus

public InstanceStatus()
Method Detail

getState

public String getState()
The current state of the instance.

Constraints:
Allowed Values: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING, TERMINATED

Returns:
The current state of the instance.
See Also:
InstanceState

setState

public void setState(String state)
The current state of the instance.

Constraints:
Allowed Values: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING, TERMINATED

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

withState

public InstanceStatus withState(String state)
The current state of the instance.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING, TERMINATED

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

setState

public void setState(InstanceState state)
The current state of the instance.

Constraints:
Allowed Values: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING, TERMINATED

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

withState

public InstanceStatus withState(InstanceState state)
The current state of the instance.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING, TERMINATED

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

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.

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.

withStateChangeReason

public InstanceStatus withStateChangeReason(InstanceStateChangeReason stateChangeReason)
The details of the status change reason for the instance.

Returns a reference to this object so that method calls can be chained together.

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

getTimeline

public InstanceTimeline getTimeline()
The timeline of the instance status over time.

Returns:
The timeline of the instance status over time.

setTimeline

public void setTimeline(InstanceTimeline timeline)
The timeline of the instance status over time.

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

withTimeline

public InstanceStatus withTimeline(InstanceTimeline timeline)
The timeline of the instance status over time.

Returns a reference to this object so that method calls can be chained together.

Parameters:
timeline - The timeline of the instance status over time.
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.