Class SpotInstanceStatus
- java.lang.Object
-
- com.amazonaws.services.ec2.model.SpotInstanceStatus
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SpotInstanceStatus extends Object implements Serializable, Cloneable
Describes the status of a Spot instance request.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpotInstanceStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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).
-
-
-
Method Detail
-
setCode
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.
- 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
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.
- Returns:
- The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.
-
withCode
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.
- 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
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).
- Parameters:
updateTime
- The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
getUpdateTime
public Date 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
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).
- 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
public void setMessage(String message)
The description for the status code.
- Parameters:
message
- The description for the status code.
-
getMessage
public String getMessage()
The description for the status code.
- Returns:
- The description for the status code.
-
withMessage
public SpotInstanceStatus withMessage(String message)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SpotInstanceStatus clone()
-
-