Class StateReason
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a state change.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getCode()
The reason code for the state change.The message for the state change.int
hashCode()
void
The reason code for the state change.void
setMessage
(String message) The message for the state change.toString()
Returns a string representation of this object; useful for testing and debugging.The reason code for the state change.withMessage
(String message) The message for the state change.
-
Constructor Details
-
StateReason
public StateReason()
-
-
Method Details
-
setCode
The reason code for the state change.
- Parameters:
code
- The reason code for the state change.
-
getCode
The reason code for the state change.
- Returns:
- The reason code for the state change.
-
withCode
The reason code for the state change.
- Parameters:
code
- The reason code for the state change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
The message for the state change.
-
Server.SpotInstanceTermination
: A Spot instance was terminated due to an increase in the market price. -
Server.InternalError
: An internal error occurred during instance launch, resulting in termination. -
Server.InsufficientInstanceCapacity
: There was insufficient instance capacity to satisfy the launch request. -
Client.InternalError
: A client error caused the instance to terminate on launch. -
Client.InstanceInitiatedShutdown
: The instance was shut down using theshutdown -h
command from the instance. -
Client.UserInitiatedShutdown
: The instance was shut down using the Amazon EC2 API. -
Client.VolumeLimitExceeded
: The limit on the number of EBS volumes or total storage was exceeded. Decrease usage or request an increase in your limits. -
Client.InvalidSnapshot.NotFound
: The specified snapshot was not found.
- Parameters:
message
- The message for the state change.-
Server.SpotInstanceTermination
: A Spot instance was terminated due to an increase in the market price. -
Server.InternalError
: An internal error occurred during instance launch, resulting in termination. -
Server.InsufficientInstanceCapacity
: There was insufficient instance capacity to satisfy the launch request. -
Client.InternalError
: A client error caused the instance to terminate on launch. -
Client.InstanceInitiatedShutdown
: The instance was shut down using theshutdown -h
command from the instance. -
Client.UserInitiatedShutdown
: The instance was shut down using the Amazon EC2 API. -
Client.VolumeLimitExceeded
: The limit on the number of EBS volumes or total storage was exceeded. Decrease usage or request an increase in your limits. -
Client.InvalidSnapshot.NotFound
: The specified snapshot was not found.
-
-
-
getMessage
The message for the state change.
-
Server.SpotInstanceTermination
: A Spot instance was terminated due to an increase in the market price. -
Server.InternalError
: An internal error occurred during instance launch, resulting in termination. -
Server.InsufficientInstanceCapacity
: There was insufficient instance capacity to satisfy the launch request. -
Client.InternalError
: A client error caused the instance to terminate on launch. -
Client.InstanceInitiatedShutdown
: The instance was shut down using theshutdown -h
command from the instance. -
Client.UserInitiatedShutdown
: The instance was shut down using the Amazon EC2 API. -
Client.VolumeLimitExceeded
: The limit on the number of EBS volumes or total storage was exceeded. Decrease usage or request an increase in your limits. -
Client.InvalidSnapshot.NotFound
: The specified snapshot was not found.
- Returns:
- The message for the state change.
-
Server.SpotInstanceTermination
: A Spot instance was terminated due to an increase in the market price. -
Server.InternalError
: An internal error occurred during instance launch, resulting in termination. -
Server.InsufficientInstanceCapacity
: There was insufficient instance capacity to satisfy the launch request. -
Client.InternalError
: A client error caused the instance to terminate on launch. -
Client.InstanceInitiatedShutdown
: The instance was shut down using theshutdown -h
command from the instance. -
Client.UserInitiatedShutdown
: The instance was shut down using the Amazon EC2 API. -
Client.VolumeLimitExceeded
: The limit on the number of EBS volumes or total storage was exceeded. Decrease usage or request an increase in your limits. -
Client.InvalidSnapshot.NotFound
: The specified snapshot was not found.
-
-
-
withMessage
The message for the state change.
-
Server.SpotInstanceTermination
: A Spot instance was terminated due to an increase in the market price. -
Server.InternalError
: An internal error occurred during instance launch, resulting in termination. -
Server.InsufficientInstanceCapacity
: There was insufficient instance capacity to satisfy the launch request. -
Client.InternalError
: A client error caused the instance to terminate on launch. -
Client.InstanceInitiatedShutdown
: The instance was shut down using theshutdown -h
command from the instance. -
Client.UserInitiatedShutdown
: The instance was shut down using the Amazon EC2 API. -
Client.VolumeLimitExceeded
: The limit on the number of EBS volumes or total storage was exceeded. Decrease usage or request an increase in your limits. -
Client.InvalidSnapshot.NotFound
: The specified snapshot was not found.
- Parameters:
message
- The message for the state change.-
Server.SpotInstanceTermination
: A Spot instance was terminated due to an increase in the market price. -
Server.InternalError
: An internal error occurred during instance launch, resulting in termination. -
Server.InsufficientInstanceCapacity
: There was insufficient instance capacity to satisfy the launch request. -
Client.InternalError
: A client error caused the instance to terminate on launch. -
Client.InstanceInitiatedShutdown
: The instance was shut down using theshutdown -h
command from the instance. -
Client.UserInitiatedShutdown
: The instance was shut down using the Amazon EC2 API. -
Client.VolumeLimitExceeded
: The limit on the number of EBS volumes or total storage was exceeded. Decrease usage or request an increase in your limits. -
Client.InvalidSnapshot.NotFound
: The specified snapshot was not found.
-
- 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
-