com.amazonaws.services.cloudwatch.model

## クラス ListMetricsRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.cloudwatch.model.ListMetricsRequest

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

      public class ListMetricsRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `ListMetrics operation`.

  Returns a list of valid metrics stored for the AWS account owner. Returned metrics can be used with `GetMetricStatistics` to obtain statistical data for a given metric.

  NOTE: Up to 500 results are returned for any one call. To retrieve further results, use returned NextToken values with subsequent ListMetrics operations.

  NOTE: If you create a metric with the PutMetricData action, allow up to fifteen minutes for the metric to appear in calls to the ListMetrics action.

  関連項目:
    `AmazonCloudWatch.listMetrics(ListMetricsRequest)`, 直列化された形式

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<DimensionFilter>` | `getDimensions()` A list of dimensions to filter against.
    `java.lang.String` | `getMetricName()` The name of the metric to filter against.
    `java.lang.String` | `getNamespace()` The namespace to filter against.
    `java.lang.String` | `getNextToken()` The token returned by a previous call to indicate that there is more data available.
    `int` | `hashCode()`
    `void` | `setDimensions(java.util.Collection<DimensionFilter> dimensions)` A list of dimensions to filter against.
    `void` | `setMetricName(java.lang.String metricName)` The name of the metric to filter against.
    `void` | `setNamespace(java.lang.String namespace)` The namespace to filter against.
    `void` | `setNextToken(java.lang.String nextToken)` The token returned by a previous call to indicate that there is more data available.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `ListMetricsRequest` | `withDimensions(java.util.Collection<DimensionFilter> dimensions)` A list of dimensions to filter against.
    `ListMetricsRequest` | `withDimensions(DimensionFilter... dimensions)` A list of dimensions to filter against.
    `ListMetricsRequest` | `withMetricName(java.lang.String metricName)` The name of the metric to filter against.
    `ListMetricsRequest` | `withNamespace(java.lang.String namespace)` The namespace to filter against.
    `ListMetricsRequest` | `withNextToken(java.lang.String nextToken)` The token returned by a previous call to indicate that there is more data available.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### ListMetricsRequest

          public ListMetricsRequest()

  - ### メソッドの詳細

    - #### getNamespace

          public java.lang.String getNamespace()

      The namespace to filter against.

      Constraints:
      Length: 1 - 255
      Pattern: [^:].*

      戻り値:
        The namespace to filter against.

    - #### setNamespace

          public void setNamespace(java.lang.String namespace)

      The namespace to filter against.

      Constraints:
      Length: 1 - 255
      Pattern: [^:].*

      パラメータ:
        `namespace` - The namespace to filter against.

    - #### withNamespace

          public ListMetricsRequest withNamespace(java.lang.String namespace)

      The namespace to filter against.

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

      Constraints:
      Length: 1 - 255
      Pattern: [^:].*

      パラメータ:
        `namespace` - The namespace to filter against.

    - #### getMetricName

          public java.lang.String getMetricName()

      The name of the metric to filter against.

      Constraints:
      Length: 1 - 255

      戻り値:
        The name of the metric to filter against.

    - #### setMetricName

          public void setMetricName(java.lang.String metricName)

      The name of the metric to filter against.

      Constraints:
      Length: 1 - 255

      パラメータ:
        `metricName` - The name of the metric to filter against.

    - #### withMetricName

          public ListMetricsRequest withMetricName(java.lang.String metricName)

      The name of the metric to filter against.

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

      Constraints:
      Length: 1 - 255

      パラメータ:
        `metricName` - The name of the metric to filter against.

    - #### getDimensions

          public java.util.List<DimensionFilter> getDimensions()

      A list of dimensions to filter against.

      Constraints:
      Length: 0 - 10

      戻り値:
        A list of dimensions to filter against.

    - #### setDimensions

          public void setDimensions(java.util.Collection<DimensionFilter> dimensions)

      A list of dimensions to filter against.

      Constraints:
      Length: 0 - 10

      パラメータ:
        `dimensions` - A list of dimensions to filter against.

    - #### withDimensions

          public ListMetricsRequest withDimensions(DimensionFilter... dimensions)

      A list of dimensions to filter against.

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

      Constraints:
      Length: 0 - 10

      パラメータ:
        `dimensions` - A list of dimensions to filter against.

    - #### withDimensions

          public ListMetricsRequest withDimensions(java.util.Collection<DimensionFilter> dimensions)

      A list of dimensions to filter against.

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

      Constraints:
      Length: 0 - 10

      パラメータ:
        `dimensions` - A list of dimensions to filter against.

    - #### getNextToken

          public java.lang.String getNextToken()

      The token returned by a previous call to indicate that there is more data available.
      戻り値:
        The token returned by a previous call to indicate that there is more data available.

    - #### setNextToken

          public void setNextToken(java.lang.String nextToken)

      The token returned by a previous call to indicate that there is more data available.
      パラメータ:
        `nextToken` - The token returned by a previous call to indicate that there is more data available.

    - #### withNextToken

          public ListMetricsRequest withNextToken(java.lang.String nextToken)

      The token returned by a previous call to indicate that there is more data available.

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

      パラメータ:
        `nextToken` - The token returned by a previous call to indicate that there is more data available.

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