com.amazonaws.services.ec2.model

## クラス Filter

- java.lang.Object
- - com.amazonaws.services.ec2.model.Filter

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

      public class Filter
      extends java.lang.Object
      implements java.io.Serializable

  A filter used to limit results when describing tags. Multiple values can be specified per filter. A tag must match at least one of the specified values for it to be returned from an operation.

  Wildcards can be included in filter values; `*` specifies that zero or more characters must match, and `?` specifies that exactly one character must match. Use a backslash to escape special characters. For example, a filter value of `\*amazon\?\\` specifies the literal string `*amazon?\` .

  関連項目:
    直列化された形式

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getName()` Specifies the name of the filter.
    `java.util.List<java.lang.String>` | `getValues()` Contains one or more values for the filter.
    `int` | `hashCode()`
    `void` | `setName(java.lang.String name)` Specifies the name of the filter.
    `void` | `setValues(java.util.Collection<java.lang.String> values)` Contains one or more values for the filter.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Filter` | `withName(java.lang.String name)` Specifies the name of the filter.
    `Filter` | `withValues(java.util.Collection<java.lang.String> values)` Contains one or more values for the filter.
    `Filter` | `withValues(java.lang.String... values)` Contains one or more values for the filter.

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

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

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

    - #### Filter

          public Filter()

      Default constructor for a new Filter object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### Filter

          public Filter(java.lang.String name,
                java.util.List<java.lang.String> values)

      Constructs a new Filter object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `name` - Specifies the name of the filter.
        `values` - Contains one or more values for the filter.

    - #### Filter

          public Filter(java.lang.String name)

      Constructs a new Filter object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `name` - Specifies the name of the filter.

  - ### メソッドの詳細

    - #### getName

          public java.lang.String getName()

      Specifies the name of the filter.
      戻り値:
        Specifies the name of the filter.

    - #### setName

          public void setName(java.lang.String name)

      Specifies the name of the filter.
      パラメータ:
        `name` - Specifies the name of the filter.

    - #### withName

          public Filter withName(java.lang.String name)

      Specifies the name of the filter.

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

      パラメータ:
        `name` - Specifies the name of the filter.

    - #### getValues

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

      Contains one or more values for the filter.
      戻り値:
        Contains one or more values for the filter.

    - #### setValues

          public void setValues(java.util.Collection<java.lang.String> values)

      Contains one or more values for the filter.
      パラメータ:
        `values` - Contains one or more values for the filter.

    - #### withValues

          public Filter withValues(java.lang.String... values)

      Contains one or more values for the filter.

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

      パラメータ:
        `values` - Contains one or more values for the filter.

    - #### withValues

          public Filter withValues(java.util.Collection<java.lang.String> values)

      Contains one or more values for the filter.

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

      パラメータ:
        `values` - Contains one or more values for the filter.

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