public class CancelledSpotInstanceRequest
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a request to cancel a Spot instance.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
spotInstanceRequestId
The ID of the Spot instance request.
|
private java.lang.String |
state
The state of the Spot instance request.
|
Constructor and Description |
---|
CancelledSpotInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
CancelledSpotInstanceRequest |
clone() |
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.
|
private java.lang.String spotInstanceRequestId
The ID of the Spot instance request.
private java.lang.String state
The state of the Spot instance request.
public void setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot instance request.
spotInstanceRequestId
- The ID of the Spot instance request.public java.lang.String getSpotInstanceRequestId()
The ID of the Spot instance request.
public CancelledSpotInstanceRequest withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot instance request.
spotInstanceRequestId
- The ID of the Spot instance request.public void setState(java.lang.String state)
The state of the Spot instance request.
state
- The state of the Spot instance request.CancelSpotInstanceRequestState
public java.lang.String getState()
The state of the Spot instance request.
CancelSpotInstanceRequestState
public CancelledSpotInstanceRequest withState(java.lang.String state)
The state of the Spot instance request.
state
- The state of the Spot instance request.CancelSpotInstanceRequestState
public void setState(CancelSpotInstanceRequestState state)
The state of the Spot instance request.
state
- The state of the Spot instance request.CancelSpotInstanceRequestState
public CancelledSpotInstanceRequest withState(CancelSpotInstanceRequestState state)
The state of the Spot instance request.
state
- The state of the Spot instance request.CancelSpotInstanceRequestState
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 CancelledSpotInstanceRequest clone()
clone
in class java.lang.Object