public class SpotInstanceStatus
extends java.lang.Object
implements java.io.Serializable
Describes the status of a Spot instance request.
Constructor and Description |
---|
SpotInstanceStatus() |
Modifier and Type | Method and Description |
---|---|
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).
|
public java.lang.String getCode()
public void setCode(java.lang.String code)
code
- 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)
Returns a reference to this object so that method calls can be chained together.
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.util.Date getUpdateTime()
public void setUpdateTime(java.util.Date updateTime)
updateTime
- 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)
Returns a reference to this object so that method calls can be chained together.
updateTime
- The date and time of the most recent status update, in UTC format (for
example,
YYYY-MM-DDTHH:MM:SSZ).public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- The description for the status code.public SpotInstanceStatus withMessage(java.lang.String message)
Returns a reference to this object so that method calls can be chained together.
message
- The description for the status code.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.