public class CancelledSpotInstanceRequest extends Object implements Serializable
Describes a request to cancel a Spot Instance.
Constructor and Description |
---|
CancelledSpotInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
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; useful for testing and
debugging.
|
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 String getSpotInstanceRequestId()
public void setSpotInstanceRequestId(String spotInstanceRequestId)
spotInstanceRequestId
- The ID of the Spot Instance request.public CancelledSpotInstanceRequest withSpotInstanceRequestId(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 String getState()
Constraints:
Allowed Values: active, open, closed, cancelled, completed
CancelSpotInstanceRequestState
public void setState(String state)
Constraints:
Allowed Values: active, open, closed, cancelled, completed
state
- The state of the Spot Instance request.CancelSpotInstanceRequestState
public CancelledSpotInstanceRequest withState(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.CancelSpotInstanceRequestState
public void setState(CancelSpotInstanceRequestState state)
Constraints:
Allowed Values: active, open, closed, cancelled, completed
state
- The state of the Spot Instance request.CancelSpotInstanceRequestState
public 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.CancelSpotInstanceRequestState
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.