com.amazonaws.services.ec2.model

## クラス DescribeInstancesRequest

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

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

      public class DescribeInstancesRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `DescribeInstances operation`.

  The DescribeInstances operation returns information about instances that you own.

  If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an invalid instance ID, a fault is returned. If you specify an instance that you do not own, it will not be included in the returned results.

  Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<Filter>` | `getFilters()` A list of filters used to match properties for Instances.
    `java.util.List<java.lang.String>` | `getInstanceIds()` An optional list of the instances to describe.
    `int` | `hashCode()`
    `void` | `setFilters(java.util.Collection<Filter> filters)` A list of filters used to match properties for Instances.
    `void` | `setInstanceIds(java.util.Collection<java.lang.String> instanceIds)` An optional list of the instances to describe.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `DescribeInstancesRequest` | `withFilters(java.util.Collection<Filter> filters)` A list of filters used to match properties for Instances.
    `DescribeInstancesRequest` | `withFilters(Filter... filters)` A list of filters used to match properties for Instances.
    `DescribeInstancesRequest` | `withInstanceIds(java.util.Collection<java.lang.String> instanceIds)` An optional list of the instances to describe.
    `DescribeInstancesRequest` | `withInstanceIds(java.lang.String... instanceIds)` An optional list of the instances to describe.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### DescribeInstancesRequest

          public DescribeInstancesRequest()

  - ### メソッドの詳細

    - #### getInstanceIds

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

      An optional list of the instances to describe.
      戻り値:
        An optional list of the instances to describe.

    - #### setInstanceIds

          public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)

      An optional list of the instances to describe.
      パラメータ:
        `instanceIds` - An optional list of the instances to describe.

    - #### withInstanceIds

          public DescribeInstancesRequest withInstanceIds(java.lang.String... instanceIds)

      An optional list of the instances to describe.

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

      パラメータ:
        `instanceIds` - An optional list of the instances to describe.

    - #### withInstanceIds

          public DescribeInstancesRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)

      An optional list of the instances to describe.

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

      パラメータ:
        `instanceIds` - An optional list of the instances to describe.

    - #### getFilters

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

      A list of filters used to match properties for Instances. 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 Instances. 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 Instances. 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 Instances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

    - #### withFilters

          public DescribeInstancesRequest withFilters(Filter... filters)

      A list of filters used to match properties for Instances. 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 Instances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

    - #### withFilters

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

      A list of filters used to match properties for Instances. 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 Instances. 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`