com.amazonaws.services.cloudwatch.model

## クラス Metric

- java.lang.Object
- - com.amazonaws.services.cloudwatch.model.Metric

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

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

  The `Metric` data type contains information about a specific metric. If you call ListMetrics, Amazon CloudWatch returns information contained by this data type.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<Dimension>` | `getDimensions()` A list of dimensions associated with the metric.
    `java.lang.String` | `getMetricName()` The name of the metric.
    `java.lang.String` | `getNamespace()` The namespace of the metric.
    `int` | `hashCode()`
    `void` | `setDimensions(java.util.Collection<Dimension> dimensions)` A list of dimensions associated with the metric.
    `void` | `setMetricName(java.lang.String metricName)` The name of the metric.
    `void` | `setNamespace(java.lang.String namespace)` The namespace of the metric.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Metric` | `withDimensions(java.util.Collection<Dimension> dimensions)` A list of dimensions associated with the metric.
    `Metric` | `withDimensions(Dimension... dimensions)` A list of dimensions associated with the metric.
    `Metric` | `withMetricName(java.lang.String metricName)` The name of the metric.
    `Metric` | `withNamespace(java.lang.String namespace)` The namespace of the metric.

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

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

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

    - #### Metric

          public Metric()

  - ### メソッドの詳細

    - #### getNamespace

          public java.lang.String getNamespace()

      The namespace of the metric.

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

      戻り値:
        The namespace of the metric.

    - #### setNamespace

          public void setNamespace(java.lang.String namespace)

      The namespace of the metric.

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

      パラメータ:
        `namespace` - The namespace of the metric.

    - #### withNamespace

          public Metric withNamespace(java.lang.String namespace)

      The namespace of the metric.

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

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

      パラメータ:
        `namespace` - The namespace of the metric.

    - #### getMetricName

          public java.lang.String getMetricName()

      The name of the metric.

      Constraints:
      Length: 1 - 255

      戻り値:
        The name of the metric.

    - #### setMetricName

          public void setMetricName(java.lang.String metricName)

      The name of the metric.

      Constraints:
      Length: 1 - 255

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

    - #### withMetricName

          public Metric withMetricName(java.lang.String metricName)

      The name of the metric.

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

      Constraints:
      Length: 1 - 255

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

    - #### getDimensions

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

      A list of dimensions associated with the metric.

      Constraints:
      Length: 0 - 10

      戻り値:
        A list of dimensions associated with the metric.

    - #### setDimensions

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

      A list of dimensions associated with the metric.

      Constraints:
      Length: 0 - 10

      パラメータ:
        `dimensions` - A list of dimensions associated with the metric.

    - #### withDimensions

          public Metric withDimensions(Dimension... dimensions)

      A list of dimensions associated with the metric.

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

      Constraints:
      Length: 0 - 10

      パラメータ:
        `dimensions` - A list of dimensions associated with the metric.

    - #### withDimensions

          public Metric withDimensions(java.util.Collection<Dimension> dimensions)

      A list of dimensions associated with the metric.

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

      Constraints:
      Length: 0 - 10

      パラメータ:
        `dimensions` - A list of dimensions associated with the metric.

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