@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CancelledSpotInstanceRequest extends Object implements Serializable, Cloneable
Describes a request to cancel a Spot Instance.
| Constructor and Description |
|---|
CancelledSpotInstanceRequest() |
| Modifier and Type | Method and Description |
|---|---|
CancelledSpotInstanceRequest |
clone() |
boolean |
equals(Object obj) |
String |
getSpotInstanceRequestId()
The ID of the Spot Instance request.
|
String |
getState()
The state of the Spot Instance request.
|
int |
hashCode() |
void |
setSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot Instance request.
|
void |
setState(CancelSpotInstanceRequestState state)
The state of the Spot Instance request.
|
void |
setState(String state)
The state of the Spot Instance request.
|
String |
toString()
Returns a string representation of this object.
|
CancelledSpotInstanceRequest |
withSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot Instance request.
|
CancelledSpotInstanceRequest |
withState(CancelSpotInstanceRequestState state)
The state of the Spot Instance request.
|
CancelledSpotInstanceRequest |
withState(String state)
The state of the Spot Instance request.
|
public void setSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot Instance request.
spotInstanceRequestId - The ID of the Spot Instance request.public String getSpotInstanceRequestId()
The ID of the Spot Instance request.
public CancelledSpotInstanceRequest withSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot Instance request.
spotInstanceRequestId - The ID of the Spot Instance request.public void setState(String state)
The state of the Spot Instance request.
state - The state of the Spot Instance request.CancelSpotInstanceRequestStatepublic String getState()
The state of the Spot Instance request.
CancelSpotInstanceRequestStatepublic CancelledSpotInstanceRequest withState(String state)
The state of the Spot Instance request.
state - The state of the Spot Instance request.CancelSpotInstanceRequestStatepublic void setState(CancelSpotInstanceRequestState state)
The state of the Spot Instance request.
state - The state of the Spot Instance request.CancelSpotInstanceRequestStatepublic CancelledSpotInstanceRequest withState(CancelSpotInstanceRequestState state)
The state of the Spot Instance request.
state - The state of the Spot Instance request.CancelSpotInstanceRequestStatepublic String toString()
toString in class ObjectObject.toString()public CancelledSpotInstanceRequest clone()