Overview | Package | Class | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.amazonaws.services.ec2.model
Class CancelSpotInstanceRequestsRequest

    java.lang.Object
      com.amazonaws.AmazonWebServiceRequest
          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()`

Method Summary
`List<String>` | `getSpotInstanceRequestIds()` Specifies the ID of the Spot Instance request.
`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`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### CancelSpotInstanceRequestsRequest

    public CancelSpotInstanceRequestsRequest()

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()`

Overview | Package | Class | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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