com.amazonaws.services.ec2.model
Class CancelSpotInstanceRequestsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CancelSpotInstanceRequestsRequest

public class CancelSpotInstanceRequestsRequest
extends AmazonWebServiceRequest

Container for the parameters to the CancelSpotInstanceRequests operation.

Cancels one or more Spot Instance requests.

Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current spot instance requests.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.cancelSpotInstanceRequests(CancelSpotInstanceRequestsRequest)

Constructor Summary
CancelSpotInstanceRequestsRequest()
          Default constructor for a new CancelSpotInstanceRequestsRequest object.
CancelSpotInstanceRequestsRequest(List<String> spotInstanceRequestIds)
          Constructs a new CancelSpotInstanceRequestsRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 List<String> getSpotInstanceRequestIds()
          Specifies the ID of the Spot Instance request.
 int hashCode()
           
 void setSpotInstanceRequestIds(Collection<String> spotInstanceRequestIds)
          Specifies the ID of the Spot Instance request.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(Collection<String> spotInstanceRequestIds)
          Specifies the ID of the Spot Instance request.
 CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(String... spotInstanceRequestIds)
          Specifies the ID of the Spot Instance request.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CancelSpotInstanceRequestsRequest

public CancelSpotInstanceRequestsRequest()
Default constructor for a new CancelSpotInstanceRequestsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


CancelSpotInstanceRequestsRequest

public CancelSpotInstanceRequestsRequest(List<String> spotInstanceRequestIds)
Constructs a new CancelSpotInstanceRequestsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
spotInstanceRequestIds - Specifies the ID of the Spot Instance request.
Method Detail

getSpotInstanceRequestIds

public List<String> getSpotInstanceRequestIds()
Specifies the ID of the Spot Instance request.

Returns:
Specifies the ID of the Spot Instance request.

setSpotInstanceRequestIds

public void setSpotInstanceRequestIds(Collection<String> spotInstanceRequestIds)
Specifies the ID of the Spot Instance request.

Parameters:
spotInstanceRequestIds - Specifies the ID of the Spot Instance request.

withSpotInstanceRequestIds

public CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(String... spotInstanceRequestIds)
Specifies the ID of the Spot Instance request.

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

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

withSpotInstanceRequestIds

public CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(Collection<String> spotInstanceRequestIds)
Specifies the ID of the Spot Instance request.

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

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

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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