@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceStateChange extends Object implements Serializable, Cloneable
Describes an instance state change.
Constructor and Description |
---|
InstanceStateChange() |
Modifier and Type | Method and Description |
---|---|
InstanceStateChange |
clone() |
boolean |
equals(Object obj) |
InstanceState |
getCurrentState()
The current state of the instance.
|
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(String instanceId)
The ID of the instance.
|
void |
setPreviousState(InstanceState previousState)
The previous state of the instance.
|
String |
toString()
Returns a string representation of this object.
|
InstanceStateChange |
withCurrentState(InstanceState currentState)
The current state of the instance.
|
InstanceStateChange |
withInstanceId(String instanceId)
The ID of the instance.
|
InstanceStateChange |
withPreviousState(InstanceState previousState)
The previous state 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 setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public InstanceStateChange withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID 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 String toString()
toString
in class Object
Object.toString()
public InstanceStateChange clone()