Class SpotInstanceStatus
- All Implemented Interfaces:
Serializable
,Cloneable
Describes the status of a Spot instance request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getCode()
The status code.The description for the status code.The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).int
hashCode()
void
The status code.void
setMessage
(String message) The description for the status code.void
setUpdateTime
(Date updateTime) The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).toString()
Returns a string representation of this object; useful for testing and debugging.The status code.withMessage
(String message) The description for the status code.withUpdateTime
(Date updateTime) The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
Constructor Details
-
SpotInstanceStatus
public SpotInstanceStatus()
-
-
Method Details
-
setCode
The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
code
- The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.
-
getCode
The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.
-
withCode
The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
code
- The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUpdateTime
The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Parameters:
updateTime
- The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
getUpdateTime
The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Returns:
- The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
withUpdateTime
The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Parameters:
updateTime
- The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
The description for the status code.
- Parameters:
message
- The description for the status code.
-
getMessage
The description for the status code.
- Returns:
- The description for the status code.
-
withMessage
The description for the status code.
- Parameters:
message
- The description for the status code.- 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
-