com.amazonaws.services.ec2.model

## クラス DescribeSubnetsRequest

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

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

      public class DescribeSubnetsRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `DescribeSubnets operation`.

  Gives you information about your subnets. You can filter the results to return information only about subnets that match criteria you specify.

  For example, you could ask to get information about a particular subnet (or all) only if the subnet's state is available. You can specify multiple filters (e.g., the subnet is in a particular VPC, and the subnet's state is available).

  The result includes information for a particular subnet only if the subnet matches all your filters. If there's no match, no special message is returned; the response is simply empty. The following table shows the available filters.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<Filter>` | `getFilters()` A list of filters used to match properties for Subnets.
    `java.util.List<java.lang.String>` | `getSubnetIds()` A set of one or more subnet IDs.
    `int` | `hashCode()`
    `void` | `setFilters(java.util.Collection<Filter> filters)` A list of filters used to match properties for Subnets.
    `void` | `setSubnetIds(java.util.Collection<java.lang.String> subnetIds)` A set of one or more subnet IDs.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `DescribeSubnetsRequest` | `withFilters(java.util.Collection<Filter> filters)` A list of filters used to match properties for Subnets.
    `DescribeSubnetsRequest` | `withFilters(Filter... filters)` A list of filters used to match properties for Subnets.
    `DescribeSubnetsRequest` | `withSubnetIds(java.util.Collection<java.lang.String> subnetIds)` A set of one or more subnet IDs.
    `DescribeSubnetsRequest` | `withSubnetIds(java.lang.String... subnetIds)` A set of one or more subnet IDs.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### DescribeSubnetsRequest

          public DescribeSubnetsRequest()

  - ### メソッドの詳細

    - #### getSubnetIds

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

      A set of one or more subnet IDs.
      戻り値:
        A set of one or more subnet IDs.

    - #### setSubnetIds

          public void setSubnetIds(java.util.Collection<java.lang.String> subnetIds)

      A set of one or more subnet IDs.
      パラメータ:
        `subnetIds` - A set of one or more subnet IDs.

    - #### withSubnetIds

          public DescribeSubnetsRequest withSubnetIds(java.lang.String... subnetIds)

      A set of one or more subnet IDs.

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

      パラメータ:
        `subnetIds` - A set of one or more subnet IDs.

    - #### withSubnetIds

          public DescribeSubnetsRequest withSubnetIds(java.util.Collection<java.lang.String> subnetIds)

      A set of one or more subnet IDs.

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

      パラメータ:
        `subnetIds` - A set of one or more subnet IDs.

    - #### getFilters

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

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

    - #### withFilters

          public DescribeSubnetsRequest withFilters(Filter... filters)

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

    - #### withFilters

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

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