com.amazonaws.services.ec2.model

## クラス DescribeSpotInstanceRequestsRequest

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

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

      public class DescribeSpotInstanceRequestsRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `DescribeSpotInstanceRequests operation`.

  Describes 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 .

  You can filter the results to return information only about Spot Instance requests that match criteria you specify. For example, you could get information about requests where the Spot Price you specified is a certain value (you can't use greater than or less than comparison, but you can use `*` and `?` wildcards). You can specify multiple values for a filter. A Spot Instance request must match at least one of the specified values for it to be included in the results.

  You can specify multiple filters (e.g., the Spot Price is equal to a particular value, and the instance type is `m1.small` ). The result includes information for a particular request only if it matches all your filters. If there's no match, no special message is returned; the response is simply empty.

  You can use wildcards with the filter values: an asterisk matches zero or more characters, and `?` matches exactly one character. You can escape special characters using a backslash before the character. For example, a value of `\*amazon\?\\` searches for the literal string `*amazon?\` .

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

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

    コンストラクタ
    コンストラクタと説明
    `DescribeSpotInstanceRequestsRequest()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<Filter>` | `getFilters()` A list of filters used to match properties for SpotInstances.
    `java.util.List<java.lang.String>` | `getSpotInstanceRequestIds()` The ID of the request.
    `int` | `hashCode()`
    `void` | `setFilters(java.util.Collection<Filter> filters)` A list of filters used to match properties for SpotInstances.
    `void` | `setSpotInstanceRequestIds(java.util.Collection<java.lang.String> spotInstanceRequestIds)` The ID of the request.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `DescribeSpotInstanceRequestsRequest` | `withFilters(java.util.Collection<Filter> filters)` A list of filters used to match properties for SpotInstances.
    `DescribeSpotInstanceRequestsRequest` | `withFilters(Filter... filters)` A list of filters used to match properties for SpotInstances.
    `DescribeSpotInstanceRequestsRequest` | `withSpotInstanceRequestIds(java.util.Collection<java.lang.String> spotInstanceRequestIds)` The ID of the request.
    `DescribeSpotInstanceRequestsRequest` | `withSpotInstanceRequestIds(java.lang.String... spotInstanceRequestIds)` The ID of the request.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### DescribeSpotInstanceRequestsRequest

          public DescribeSpotInstanceRequestsRequest()

  - ### メソッドの詳細

    - #### getSpotInstanceRequestIds

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

      The ID of the request.
      戻り値:
        The ID of the request.

    - #### setSpotInstanceRequestIds

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

      The ID of the request.
      パラメータ:
        `spotInstanceRequestIds` - The ID of the request.

    - #### withSpotInstanceRequestIds

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

      The ID of the request.

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

      パラメータ:
        `spotInstanceRequestIds` - The ID of the request.

    - #### withSpotInstanceRequestIds

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

      The ID of the request.

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

      パラメータ:
        `spotInstanceRequestIds` - The ID of the request.

    - #### getFilters

          public java.util.List<Filter> getFilters()

      A list of filters used to match properties for SpotInstances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.
      戻り値:
        A list of filters used to match properties for SpotInstances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

    - #### setFilters

          public void setFilters(java.util.Collection<Filter> filters)

      A list of filters used to match properties for SpotInstances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.
      パラメータ:
        `filters` - A list of filters used to match properties for SpotInstances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

    - #### withFilters

          public DescribeSpotInstanceRequestsRequest withFilters(Filter... filters)

      A list of filters used to match properties for SpotInstances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

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

      パラメータ:
        `filters` - A list of filters used to match properties for SpotInstances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

    - #### withFilters

          public DescribeSpotInstanceRequestsRequest withFilters(java.util.Collection<Filter> filters)

      A list of filters used to match properties for SpotInstances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

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

      パラメータ:
        `filters` - A list of filters used to match properties for SpotInstances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

    - #### 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`