Package com.amazonaws.services.ec2.model
Class CancelledSpotInstanceRequest
- java.lang.Object
-
- com.amazonaws.services.ec2.model.CancelledSpotInstanceRequest
-
- All Implemented Interfaces:
Serializable,Cloneable
public class CancelledSpotInstanceRequest extends Object implements Serializable, Cloneable
Describes a request to cancel a Spot instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CancelledSpotInstanceRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CancelledSpotInstanceRequestclone()booleanequals(Object obj)StringgetSpotInstanceRequestId()The ID of the Spot instance request.StringgetState()The state of the Spot instance request.inthashCode()voidsetSpotInstanceRequestId(String spotInstanceRequestId)The ID of the Spot instance request.voidsetState(CancelSpotInstanceRequestState state)The state of the Spot instance request.voidsetState(String state)The state of the Spot instance request.StringtoString()Returns a string representation of this object; useful for testing and debugging.CancelledSpotInstanceRequestwithSpotInstanceRequestId(String spotInstanceRequestId)The ID of the Spot instance request.CancelledSpotInstanceRequestwithState(CancelSpotInstanceRequestState state)The state of the Spot instance request.CancelledSpotInstanceRequestwithState(String state)The state of the Spot instance request.
-
-
-
Method Detail
-
setSpotInstanceRequestId
public void setSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot instance request.
- Parameters:
spotInstanceRequestId- The ID of the Spot instance request.
-
getSpotInstanceRequestId
public String getSpotInstanceRequestId()
The ID of the Spot instance request.
- Returns:
- The ID of the Spot instance request.
-
withSpotInstanceRequestId
public CancelledSpotInstanceRequest withSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot instance request.
- Parameters:
spotInstanceRequestId- The ID of the Spot instance request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
The state of the Spot instance request.
- Parameters:
state- The state of the Spot instance request.- See Also:
CancelSpotInstanceRequestState
-
getState
public String getState()
The state of the Spot instance request.
- Returns:
- The state of the Spot instance request.
- See Also:
CancelSpotInstanceRequestState
-
withState
public CancelledSpotInstanceRequest withState(String state)
The state of the Spot instance request.
- Parameters:
state- The state of the Spot instance request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CancelSpotInstanceRequestState
-
setState
public void setState(CancelSpotInstanceRequestState state)
The state of the Spot instance request.
- Parameters:
state- The state of the Spot instance request.- See Also:
CancelSpotInstanceRequestState
-
withState
public CancelledSpotInstanceRequest withState(CancelSpotInstanceRequestState state)
The state of the Spot instance request.
- Parameters:
state- The state of the Spot instance request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CancelSpotInstanceRequestState
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CancelledSpotInstanceRequest clone()
-
-