|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.services.ec2.model.InstanceStateChange
public class InstanceStateChange
Represents a state change for a specific EC2 instance.
| Constructor Summary | |
|---|---|
InstanceStateChange()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
InstanceState |
getCurrentState()
The current state of the specified instance. |
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(String instanceId)
The ID of the instance whose state changed. |
void |
setPreviousState(InstanceState previousState)
The previous state of the specified instance. |
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(String instanceId)
The ID of the instance whose state changed. |
InstanceStateChange |
withPreviousState(InstanceState previousState)
The previous state of the specified instance. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InstanceStateChange()
| Method Detail |
|---|
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId - The ID of the instance whose state changed.public InstanceStateChange withInstanceId(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 String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||