public class InstanceStateChange
extends java.lang.Object
implements java.io.Serializable
Represents a state change for a specific EC2 instance.
| コンストラクタと説明 |
|---|
InstanceStateChange() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
InstanceState |
getCurrentState()
The current state of the specified instance.
|
java.lang.String |
getInstanceId()
The ID of the instance whose state changed.
|
InstanceState |
getPreviousState()
The previous state of the specified instance.
|
int |
hashCode() |
void |
setCurrentState(InstanceState currentState)
The current state of the specified instance.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance whose state changed.
|
void |
setPreviousState(InstanceState previousState)
The previous state of the specified 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 specified instance.
|
InstanceStateChange |
withInstanceId(java.lang.String instanceId)
The ID of the instance whose state changed.
|
InstanceStateChange |
withPreviousState(InstanceState previousState)
The previous state of the specified instance.
|
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - The ID of the instance whose state changed.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 whose state changed.public InstanceState getCurrentState()
public void setCurrentState(InstanceState currentState)
currentState - The current state of the specified 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 specified instance.public InstanceState getPreviousState()
public void setPreviousState(InstanceState previousState)
previousState - The previous state of the specified 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 specified instance.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object