com.amazonaws.services.ec2.model

## クラス DescribeSecurityGroupsRequest

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

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

      public class DescribeSecurityGroupsRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `DescribeSecurityGroups operation`.

  The DescribeSecurityGroups operation returns information about security groups that you own.

  If you specify security group names, information about those security group is returned. Otherwise, information for all security group is returned. If you specify a group that does not exist, a fault is returned.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<Filter>` | `getFilters()` A list of filters used to match properties for SecurityGroups.
    `java.util.List<java.lang.String>` | `getGroupIds()` Returns the value of the GroupIds property for this object.
    `java.util.List<java.lang.String>` | `getGroupNames()` An optional list of group names that specify the Amazon EC2 security groups to describe.
    `int` | `hashCode()`
    `void` | `setFilters(java.util.Collection<Filter> filters)` A list of filters used to match properties for SecurityGroups.
    `void` | `setGroupIds(java.util.Collection<java.lang.String> groupIds)` Sets the value of the GroupIds property for this object.
    `void` | `setGroupNames(java.util.Collection<java.lang.String> groupNames)` An optional list of group names that specify the Amazon EC2 security groups to describe.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `DescribeSecurityGroupsRequest` | `withFilters(java.util.Collection<Filter> filters)` A list of filters used to match properties for SecurityGroups.
    `DescribeSecurityGroupsRequest` | `withFilters(Filter... filters)` A list of filters used to match properties for SecurityGroups.
    `DescribeSecurityGroupsRequest` | `withGroupIds(java.util.Collection<java.lang.String> groupIds)` Sets the value of the GroupIds property for this object.
    `DescribeSecurityGroupsRequest` | `withGroupIds(java.lang.String... groupIds)` Sets the value of the GroupIds property for this object.
    `DescribeSecurityGroupsRequest` | `withGroupNames(java.util.Collection<java.lang.String> groupNames)` An optional list of group names that specify the Amazon EC2 security groups to describe.
    `DescribeSecurityGroupsRequest` | `withGroupNames(java.lang.String... groupNames)` An optional list of group names that specify the Amazon EC2 security groups to describe.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### DescribeSecurityGroupsRequest

          public DescribeSecurityGroupsRequest()

  - ### メソッドの詳細

    - #### getGroupNames

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

      An optional list of group names that specify the Amazon EC2 security groups to describe.
      戻り値:
        An optional list of group names that specify the Amazon EC2 security groups to describe.

    - #### setGroupNames

          public void setGroupNames(java.util.Collection<java.lang.String> groupNames)

      An optional list of group names that specify the Amazon EC2 security groups to describe.
      パラメータ:
        `groupNames` - An optional list of group names that specify the Amazon EC2 security groups to describe.

    - #### withGroupNames

          public DescribeSecurityGroupsRequest withGroupNames(java.lang.String... groupNames)

      An optional list of group names that specify the Amazon EC2 security groups to describe.

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

      パラメータ:
        `groupNames` - An optional list of group names that specify the Amazon EC2 security groups to describe.

    - #### withGroupNames

          public DescribeSecurityGroupsRequest withGroupNames(java.util.Collection<java.lang.String> groupNames)

      An optional list of group names that specify the Amazon EC2 security groups to describe.

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

      パラメータ:
        `groupNames` - An optional list of group names that specify the Amazon EC2 security groups to describe.

    - #### getGroupIds

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

      Returns the value of the GroupIds property for this object.
      戻り値:
        The value of the GroupIds property for this object.

    - #### setGroupIds

          public void setGroupIds(java.util.Collection<java.lang.String> groupIds)

      Sets the value of the GroupIds property for this object.
      パラメータ:
        `groupIds` - The new value for the GroupIds property for this object.

    - #### withGroupIds

          public DescribeSecurityGroupsRequest withGroupIds(java.lang.String... groupIds)

      Sets the value of the GroupIds property for this object.

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

      パラメータ:
        `groupIds` - The new value for the GroupIds property for this object.

    - #### withGroupIds

          public DescribeSecurityGroupsRequest withGroupIds(java.util.Collection<java.lang.String> groupIds)

      Sets the value of the GroupIds property for this object.

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

      パラメータ:
        `groupIds` - The new value for the GroupIds property for this object.

    - #### getFilters

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

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

    - #### withFilters

          public DescribeSecurityGroupsRequest withFilters(Filter... filters)

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

    - #### withFilters

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

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