com.amazonaws.services.ec2.model
Class InstanceStateChange

java.lang.Object
  extended by com.amazonaws.services.ec2.model.InstanceStateChange
All Implemented Interfaces:
java.io.Serializable

public class InstanceStateChange
extends java.lang.Object
implements java.io.Serializable

Describes an instance state change.

See Also:
Serialized Form

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

InstanceStateChange

public InstanceStateChange()
Method Detail

getInstanceId

public java.lang.String getInstanceId()
The ID of the instance.

Returns:
The ID of the instance.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The ID of the instance.

Parameters:
instanceId - The ID of the instance.

withInstanceId

public InstanceStateChange withInstanceId(java.lang.String instanceId)
The ID of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceId - The ID of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getCurrentState

public InstanceState getCurrentState()
The current state of the instance.

Returns:
The current state of the instance.

setCurrentState

public void setCurrentState(InstanceState currentState)
The current state of the instance.

Parameters:
currentState - The current state of the instance.

withCurrentState

public InstanceStateChange withCurrentState(InstanceState currentState)
The current state of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
currentState - The current state of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getPreviousState

public InstanceState getPreviousState()
The previous state of the instance.

Returns:
The previous state of the instance.

setPreviousState

public void setPreviousState(InstanceState previousState)
The previous state of the instance.

Parameters:
previousState - The previous state of the instance.

withPreviousState

public InstanceStateChange withPreviousState(InstanceState previousState)
The previous state of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
previousState - The previous state of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.