public class CancelledSpotInstanceRequest
extends java.lang.Object
implements java.io.Serializable
Describes a request to cancel a Spot instance.
| Constructor and Description |
|---|
CancelledSpotInstanceRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getSpotInstanceRequestId()
The ID of the Spot instance request.
|
java.lang.String |
getState()
The state of the Spot instance request.
|
int |
hashCode() |
void |
setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot instance request.
|
void |
setState(CancelSpotInstanceRequestState state)
The state of the Spot instance request.
|
void |
setState(java.lang.String state)
The state of the Spot instance request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelledSpotInstanceRequest |
withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot instance request.
|
CancelledSpotInstanceRequest |
withState(CancelSpotInstanceRequestState state)
The state of the Spot instance request.
|
CancelledSpotInstanceRequest |
withState(java.lang.String state)
The state of the Spot instance request.
|
public java.lang.String getSpotInstanceRequestId()
public void setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
spotInstanceRequestId - The ID of the Spot instance request.public CancelledSpotInstanceRequest withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
Returns a reference to this object so that method calls can be chained together.
spotInstanceRequestId - The ID of the Spot instance request.public java.lang.String getState()
Constraints:
Allowed Values: active, open, closed, cancelled, completed
CancelSpotInstanceRequestStatepublic void setState(java.lang.String state)
Constraints:
Allowed Values: active, open, closed, cancelled, completed
state - The state of the Spot instance request.CancelSpotInstanceRequestStatepublic CancelledSpotInstanceRequest withState(java.lang.String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: active, open, closed, cancelled, completed
state - The state of the Spot instance request.CancelSpotInstanceRequestStatepublic void setState(CancelSpotInstanceRequestState state)
Constraints:
Allowed Values: active, open, closed, cancelled, completed
state - The state of the Spot instance request.CancelSpotInstanceRequestStatepublic CancelledSpotInstanceRequest withState(CancelSpotInstanceRequestState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: active, open, closed, cancelled, completed
state - The state of the Spot instance request.CancelSpotInstanceRequestStatepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.