|
|||||||
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
Describes an instance state change.
Constructor Summary | |
---|---|
InstanceStateChange()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstanceStateChange()
Method Detail |
---|
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.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |