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()booleanThe current state of the instance.The ID of the instance.The previous state of the instance.inthashCode()voidsetCurrentState(InstanceState currentState) The current state of the instance.voidsetInstanceId(String instanceId) The ID of the instance.voidsetPreviousState(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
-
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
-
equals
-
hashCode
-
clone
-