@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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.
|
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 request status codes in the Amazon EC2 User Guide.
code
- The status code. For a list of status codes, see Spot request status codes in the Amazon EC2 User Guide.public String getCode()
The status code. For a list of status codes, see Spot request status codes in the Amazon EC2 User Guide.
public SpotInstanceStatus withCode(String code)
The status code. For a list of status codes, see Spot request status codes in the Amazon EC2 User Guide.
code
- The status code. For a list of status codes, see Spot request status codes in the Amazon EC2 User Guide.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 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 String toString()
toString
in class Object
Object.toString()
public SpotInstanceStatus clone()