com.amazonaws.services.ec2.model

## クラス CancelSpotInstanceRequestsRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.ec2.model.CancelSpotInstanceRequestsRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class CancelSpotInstanceRequestsRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  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 .

  関連項目:
    `AmazonEC2.cancelSpotInstanceRequests(CancelSpotInstanceRequestsRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `CancelSpotInstanceRequestsRequest()` Default constructor for a new CancelSpotInstanceRequestsRequest object.
    `CancelSpotInstanceRequestsRequest(java.util.List<java.lang.String> spotInstanceRequestIds)` Constructs a new CancelSpotInstanceRequestsRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<java.lang.String>` | `getSpotInstanceRequestIds()` Specifies the ID of the Spot Instance request.
    `int` | `hashCode()`
    `void` | `setSpotInstanceRequestIds(java.util.Collection<java.lang.String> spotInstanceRequestIds)` Specifies the ID of the Spot Instance request.
    `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)` Specifies the ID of the Spot Instance request.
    `CancelSpotInstanceRequestsRequest` | `withSpotInstanceRequestIds(java.lang.String... spotInstanceRequestIds)` Specifies the ID of the Spot Instance request.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### 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.
      パラメータ:
        `spotInstanceRequestIds` - Specifies the ID of the Spot Instance request.

  - ### メソッドの詳細

    - #### getSpotInstanceRequestIds

          public java.util.List<java.lang.String> getSpotInstanceRequestIds()

      Specifies the ID of the Spot Instance request.
      戻り値:
        Specifies the ID of the Spot Instance request.

    - #### setSpotInstanceRequestIds

          public void setSpotInstanceRequestIds(java.util.Collection<java.lang.String> spotInstanceRequestIds)

      Specifies the ID of the Spot Instance request.
      パラメータ:
        `spotInstanceRequestIds` - Specifies the ID of the Spot Instance request.

    - #### withSpotInstanceRequestIds

          public CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(java.lang.String... spotInstanceRequestIds)

      Specifies the ID of the Spot Instance request.

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

      パラメータ:
        `spotInstanceRequestIds` - Specifies the ID of the Spot Instance request.

    - #### withSpotInstanceRequestIds

          public CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(java.util.Collection<java.lang.String> spotInstanceRequestIds)

      Specifies the ID of the Spot Instance request.

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

      パラメータ:
        `spotInstanceRequestIds` - Specifies the ID of the Spot Instance request.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`