public class InstanceGroupStatus extends Object implements Serializable, Cloneable
The details of the instance group status.
Constructor and Description |
---|
InstanceGroupStatus() |
Modifier and Type | Method and Description |
---|---|
InstanceGroupStatus |
clone() |
boolean |
equals(Object obj) |
String |
getState()
The current state of the instance group.
|
InstanceGroupStateChangeReason |
getStateChangeReason()
The status change reason details for the instance group.
|
InstanceGroupTimeline |
getTimeline()
The timeline of the instance group status over time.
|
int |
hashCode() |
void |
setState(InstanceGroupState state)
The current state of the instance group.
|
void |
setState(String state)
The current state of the instance group.
|
void |
setStateChangeReason(InstanceGroupStateChangeReason stateChangeReason)
The status change reason details for the instance group.
|
void |
setTimeline(InstanceGroupTimeline timeline)
The timeline of the instance group status over time.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceGroupStatus |
withState(InstanceGroupState state)
The current state of the instance group.
|
InstanceGroupStatus |
withState(String state)
The current state of the instance group.
|
InstanceGroupStatus |
withStateChangeReason(InstanceGroupStateChangeReason stateChangeReason)
The status change reason details for the instance group.
|
InstanceGroupStatus |
withTimeline(InstanceGroupTimeline timeline)
The timeline of the instance group status over time.
|
public String getState()
Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED
InstanceGroupState
public void setState(String state)
Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED
state
- The current state of the instance group.InstanceGroupState
public InstanceGroupStatus withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED
state
- The current state of the instance group.InstanceGroupState
public void setState(InstanceGroupState state)
Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED
state
- The current state of the instance group.InstanceGroupState
public InstanceGroupStatus withState(InstanceGroupState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED
state
- The current state of the instance group.InstanceGroupState
public InstanceGroupStateChangeReason getStateChangeReason()
public void setStateChangeReason(InstanceGroupStateChangeReason stateChangeReason)
stateChangeReason
- The status change reason details for the instance group.public InstanceGroupStatus withStateChangeReason(InstanceGroupStateChangeReason stateChangeReason)
Returns a reference to this object so that method calls can be chained together.
stateChangeReason
- The status change reason details for the instance group.public InstanceGroupTimeline getTimeline()
public void setTimeline(InstanceGroupTimeline timeline)
timeline
- The timeline of the instance group status over time.public InstanceGroupStatus withTimeline(InstanceGroupTimeline timeline)
Returns a reference to this object so that method calls can be chained together.
timeline
- The timeline of the instance group status over time.public String toString()
toString
in class Object
Object.toString()
public InstanceGroupStatus clone()
Copyright © 2015. All rights reserved.