public class SpotInstanceStatus extends Object implements Serializable, Cloneable
Describes the status of a Spot instance request.
Constructor and Description |
---|
SpotInstanceStatus() |
Modifier and Type | Method and Description |
---|---|
SpotInstanceStatus |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The status code.
|
String |
getMessage()
The description for the status code.
|
Date |
getUpdateTime()
The date and time of the most recent status update, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
int |
hashCode() |
void |
setCode(String code)
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).
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SpotInstanceStatus |
withCode(String code)
The status code.
|
SpotInstanceStatus |
withMessage(String message)
The description for the status code.
|
SpotInstanceStatus |
withUpdateTime(Date updateTime)
The date and time of the most recent status update, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
public void setCode(String code)
The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.
code
- The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.public String getCode()
The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.
public SpotInstanceStatus withCode(String code)
The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.
code
- The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.public void setUpdateTime(Date updateTime)
The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
updateTime
- The date and time of the most recent status update, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).public Date getUpdateTime()
The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
public SpotInstanceStatus withUpdateTime(Date updateTime)
The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
updateTime
- The date and time of the most recent status update, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).public void setMessage(String message)
The description for the status code.
message
- The description for the status code.public String getMessage()
The description for the status code.
public SpotInstanceStatus withMessage(String message)
The description for the status code.
message
- The description for the status code.public String toString()
toString
in class Object
Object.toString()
public SpotInstanceStatus clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.