com.amazonaws.services.ec2.model
Class CancelSpotInstanceRequestsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CancelSpotInstanceRequestsRequest
All Implemented Interfaces:
DryRunSupportedRequest<CancelSpotInstanceRequestsRequest>, java.io.Serializable

public class CancelSpotInstanceRequestsRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<CancelSpotInstanceRequestsRequest>

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 more information about Spot Instances, see Spot Instances in the Amazon Elastic Compute Cloud User Guide .

IMPORTANT: Canceling a Spot Instance request does not terminate running Spot Instances associated with the request.

See Also:
AmazonEC2.cancelSpotInstanceRequests(CancelSpotInstanceRequestsRequest), Serialized Form

Constructor Summary
CancelSpotInstanceRequestsRequest()
          Default constructor for a new CancelSpotInstanceRequestsRequest object.
CancelSpotInstanceRequestsRequest(java.util.List<java.lang.String> spotInstanceRequestIds)
          Constructs a new CancelSpotInstanceRequestsRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<CancelSpotInstanceRequestsRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.util.List<java.lang.String> getSpotInstanceRequestIds()
          One or more Spot Instance request IDs.
 int hashCode()
           
 void setSpotInstanceRequestIds(java.util.Collection<java.lang.String> spotInstanceRequestIds)
          One or more Spot Instance request IDs.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(java.util.Collection<java.lang.String> spotInstanceRequestIds)
          One or more Spot Instance request IDs.
 CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(java.lang.String... spotInstanceRequestIds)
          One or more Spot Instance request IDs.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
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(java.util.List<java.lang.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 - One or more Spot Instance request IDs.
Method Detail

getSpotInstanceRequestIds

public java.util.List<java.lang.String> getSpotInstanceRequestIds()
One or more Spot Instance request IDs.

Returns:
One or more Spot Instance request IDs.

setSpotInstanceRequestIds

public void setSpotInstanceRequestIds(java.util.Collection<java.lang.String> spotInstanceRequestIds)
One or more Spot Instance request IDs.

Parameters:
spotInstanceRequestIds - One or more Spot Instance request IDs.

withSpotInstanceRequestIds

public CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(java.lang.String... spotInstanceRequestIds)
One or more Spot Instance request IDs.

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

Parameters:
spotInstanceRequestIds - One or more Spot Instance request IDs.
Returns:
A reference to this updated object so that method calls can be chained together.

withSpotInstanceRequestIds

public CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(java.util.Collection<java.lang.String> spotInstanceRequestIds)
One or more Spot Instance request IDs.

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

Parameters:
spotInstanceRequestIds - One or more Spot Instance request IDs.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<CancelSpotInstanceRequestsRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<CancelSpotInstanceRequestsRequest>

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.