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