public class InstanceStateChange
extends java.lang.Object
implements java.io.Serializable
Describes an instance state change.
| Constructor and Description |
|---|
InstanceStateChange() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - The ID of the instance.public InstanceStateChange withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - The ID of the instance.public InstanceState getCurrentState()
public void setCurrentState(InstanceState currentState)
currentState - The current state of the instance.public InstanceStateChange withCurrentState(InstanceState currentState)
Returns a reference to this object so that method calls can be chained together.
currentState - The current state of the instance.public InstanceState getPreviousState()
public void setPreviousState(InstanceState previousState)
previousState - The previous state of the instance.public InstanceStateChange withPreviousState(InstanceState previousState)
Returns a reference to this object so that method calls can be chained together.
previousState - The previous state of the instance.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.