com.amazonaws.services.ec2.model
Class CancelledSpotInstanceRequest

java.lang.Object
  extended by com.amazonaws.services.ec2.model.CancelledSpotInstanceRequest
All Implemented Interfaces:
java.io.Serializable

public class CancelledSpotInstanceRequest
extends java.lang.Object
implements java.io.Serializable

Describes a request to cancel a Spot Instance.

See Also:
Serialized Form

Constructor Summary
CancelledSpotInstanceRequest()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CancelledSpotInstanceRequest

public CancelledSpotInstanceRequest()
Method Detail

getSpotInstanceRequestId

public java.lang.String getSpotInstanceRequestId()
The ID of the Spot Instance request.

Returns:
The ID of the Spot Instance request.

setSpotInstanceRequestId

public void setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot Instance request.

Parameters:
spotInstanceRequestId - The ID of the Spot Instance request.

withSpotInstanceRequestId

public CancelledSpotInstanceRequest withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot Instance request.

Returns a reference to this object so that method calls can be chained together.

Parameters:
spotInstanceRequestId - The ID of the Spot Instance request.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

public java.lang.String getState()
The state of the Spot Instance request.

Constraints:
Allowed Values: active, open, closed, cancelled, completed

Returns:
The state of the Spot Instance request.
See Also:
CancelSpotInstanceRequestState

setState

public void setState(java.lang.String state)
The state of the Spot Instance request.

Constraints:
Allowed Values: active, open, closed, cancelled, completed

Parameters:
state - The state of the Spot Instance request.
See Also:
CancelSpotInstanceRequestState

withState

public CancelledSpotInstanceRequest withState(java.lang.String state)
The state of the Spot Instance request.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: active, open, closed, cancelled, completed

Parameters:
state - The state of the Spot Instance request.
Returns:
A reference to this updated 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.

Constraints:
Allowed Values: active, open, closed, cancelled, completed

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: active, open, closed, cancelled, completed

Parameters:
state - The state of the Spot Instance request.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
CancelSpotInstanceRequestState

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.