public class InstanceStatus
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The instance status details.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
state
The current state of the instance.
|
private InstanceStateChangeReason |
stateChangeReason
The details of the status change reason for the instance.
|
private InstanceTimeline |
timeline
The timeline of the instance status over time.
|
Constructor and Description |
---|
InstanceStatus() |
Modifier and Type | Method and Description |
---|---|
InstanceStatus |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.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(java.lang.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.
|
java.lang.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(java.lang.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.
|
private java.lang.String state
The current state of the instance.
private InstanceStateChangeReason stateChangeReason
The details of the status change reason for the instance.
private InstanceTimeline timeline
The timeline of the instance status over time.
public void setState(java.lang.String state)
The current state of the instance.
state
- The current state of the instance.InstanceState
public java.lang.String getState()
The current state of the instance.
InstanceState
public InstanceStatus withState(java.lang.String state)
The current state of the instance.
state
- The current state of the instance.InstanceState
public void setState(InstanceState state)
The current state of the instance.
state
- The current state of the instance.InstanceState
public InstanceStatus withState(InstanceState state)
The current state of the instance.
state
- The current state of the instance.InstanceState
public void setStateChangeReason(InstanceStateChangeReason stateChangeReason)
The details of the status change reason for the instance.
stateChangeReason
- The details of the status change reason for the instance.public InstanceStateChangeReason getStateChangeReason()
The details of the status change reason for the instance.
public InstanceStatus withStateChangeReason(InstanceStateChangeReason stateChangeReason)
The details of the status change reason for the instance.
stateChangeReason
- The details of the status change reason for the instance.public void setTimeline(InstanceTimeline timeline)
The timeline of the instance status over time.
timeline
- The timeline of the instance status over time.public InstanceTimeline getTimeline()
The timeline of the instance status over time.
public InstanceStatus withTimeline(InstanceTimeline timeline)
The timeline of the instance status over time.
timeline
- The timeline of the instance status over time.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InstanceStatus clone()
clone
in class java.lang.Object