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 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; 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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CancelledSpotInstanceRequest clone()
-
-