Package com.amazonaws.services.ec2.model
Class InstanceStateChange
java.lang.Object
com.amazonaws.services.ec2.model.InstanceStateChange
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an instance state change.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The current state of the instance.The ID of the instance.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.toString()
Returns a string representation of this object; useful for testing and debugging.withCurrentState
(InstanceState currentState) The current state of the instance.withInstanceId
(String instanceId) The ID of the instance.withPreviousState
(InstanceState previousState) The previous state of the instance.
-
Constructor Details
-
InstanceStateChange
public InstanceStateChange()
-
-
Method Details
-
setInstanceId
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.
-
getInstanceId
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
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
The current state of the instance.
- Parameters:
currentState
- The current state of the instance.
-
getCurrentState
The current state of the instance.
- Returns:
- The current state of the instance.
-
withCurrentState
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
The previous state of the instance.
- Parameters:
previousState
- The previous state of the instance.
-
getPreviousState
The previous state of the instance.
- Returns:
- The previous state of the instance.
-
withPreviousState
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-