Package com.amazonaws.services.ec2.model
Class InstanceStateChange
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InstanceStateChange
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class InstanceStateChange extends Object implements Serializable, Cloneable
Describes an instance state change.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceStateChange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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; useful for testing and debugging.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.
-
-
-
Method Detail
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.
-
getInstanceId
public String getInstanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
public InstanceStateChange withInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCurrentState
public void setCurrentState(InstanceState currentState)
The current state of the instance.
- Parameters:
currentState
- The current state of the instance.
-
getCurrentState
public InstanceState getCurrentState()
The current state of the instance.
- Returns:
- The current state of the instance.
-
withCurrentState
public InstanceStateChange withCurrentState(InstanceState currentState)
The current state of the instance.
- Parameters:
currentState
- The current state of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPreviousState
public void setPreviousState(InstanceState previousState)
The previous state of the instance.
- Parameters:
previousState
- The previous state of the instance.
-
getPreviousState
public InstanceState getPreviousState()
The previous state of the instance.
- Returns:
- The previous state of the instance.
-
withPreviousState
public InstanceStateChange withPreviousState(InstanceState previousState)
The previous state of the instance.
- Parameters:
previousState
- The previous state of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceStateChange clone()
-
-