public class InstanceStateChange
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an instance state change.
Modifier and Type | Field and Description |
---|---|
private InstanceState |
currentState
The current state of the instance.
|
private java.lang.String |
instanceId
The ID of the instance.
|
private InstanceState |
previousState
The previous state of the instance.
|
Constructor and Description |
---|
InstanceStateChange() |
Modifier and Type | Method and Description |
---|---|
InstanceStateChange |
clone() |
boolean |
equals(java.lang.Object obj) |
InstanceState |
getCurrentState()
The current state of the instance.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
InstanceState |
getPreviousState()
The previous state of the instance.
|
int |
hashCode() |
void |
setCurrentState(InstanceState currentState)
The current state of the instance.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setPreviousState(InstanceState previousState)
The previous state of the instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceStateChange |
withCurrentState(InstanceState currentState)
The current state of the instance.
|
InstanceStateChange |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
InstanceStateChange |
withPreviousState(InstanceState previousState)
The previous state of the instance.
|
private java.lang.String instanceId
The ID of the instance.
private InstanceState currentState
The current state of the instance.
private InstanceState previousState
The previous state of the instance.
public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public InstanceStateChange withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setCurrentState(InstanceState currentState)
The current state of the instance.
currentState
- The current state of the instance.public InstanceState getCurrentState()
The current state of the instance.
public InstanceStateChange withCurrentState(InstanceState currentState)
The current state of the instance.
currentState
- The current state of the instance.public void setPreviousState(InstanceState previousState)
The previous state of the instance.
previousState
- The previous state of the instance.public InstanceState getPreviousState()
The previous state of the instance.
public InstanceStateChange withPreviousState(InstanceState previousState)
The previous state of the instance.
previousState
- The previous state of the instance.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 InstanceStateChange clone()
clone
in class java.lang.Object