com.amazonaws.services.cloudwatch.model

## クラス MetricDatum

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

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

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

  The `MetricDatum` data type encapsulates the information sent with PutMetricData to either create a new metric or add new values to be aggregated into an existing metric.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `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.
    `StatisticSet` | `getStatisticValues()` A set of statistical values describing the metric.
    `java.util.Date` | `getTimestamp()` The time stamp used for the metric.
    `java.lang.String` | `getUnit()` The unit of the metric.
    `java.lang.Double` | `getValue()` The value for 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` | `setStatisticValues(StatisticSet statisticValues)` A set of statistical values describing the metric.
    `void` | `setTimestamp(java.util.Date timestamp)` The time stamp used for the metric.
    `void` | `setUnit(StandardUnit unit)` The unit of the metric.
    `void` | `setUnit(java.lang.String unit)` The unit of the metric.
    `void` | `setValue(java.lang.Double value)` The value for the metric.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `MetricDatum` | `withDimensions(java.util.Collection<Dimension> dimensions)` A list of dimensions associated with the metric.
    `MetricDatum` | `withDimensions(Dimension... dimensions)` A list of dimensions associated with the metric.
    `MetricDatum` | `withMetricName(java.lang.String metricName)` The name of the metric.
    `MetricDatum` | `withStatisticValues(StatisticSet statisticValues)` A set of statistical values describing the metric.
    `MetricDatum` | `withTimestamp(java.util.Date timestamp)` The time stamp used for the metric.
    `MetricDatum` | `withUnit(StandardUnit unit)` The unit of the metric.
    `MetricDatum` | `withUnit(java.lang.String unit)` The unit of the metric.
    `MetricDatum` | `withValue(java.lang.Double value)` The value for the metric.

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

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

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

    - #### MetricDatum

          public MetricDatum()

  - ### メソッドの詳細

    - #### 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 MetricDatum 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 MetricDatum 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 MetricDatum 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.

    - #### getTimestamp

          public java.util.Date getTimestamp()

      The time stamp used for the metric. If not specified, the default value is set to the time the metric data was received.
      戻り値:
        The time stamp used for the metric. If not specified, the default value is set to the time the metric data was received.

    - #### setTimestamp

          public void setTimestamp(java.util.Date timestamp)

      The time stamp used for the metric. If not specified, the default value is set to the time the metric data was received.
      パラメータ:
        `timestamp` - The time stamp used for the metric. If not specified, the default value is set to the time the metric data was received.

    - #### withTimestamp

          public MetricDatum withTimestamp(java.util.Date timestamp)

      The time stamp used for the metric. If not specified, the default value is set to the time the metric data was received.

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

      パラメータ:
        `timestamp` - The time stamp used for the metric. If not specified, the default value is set to the time the metric data was received.

    - #### getValue

          public java.lang.Double getValue()

      The value for the metric. Although the `Value` parameter accepts numbers of type `Double`, Amazon CloudWatch truncates values with very large exponents. Values with base-10 exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 exponents less than -130 (1 x 10^-130) are also truncated.
      戻り値:
        The value for the metric. Although the `Value` parameter accepts numbers of type `Double`, Amazon CloudWatch truncates values with very large exponents. Values with base-10 exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 exponents less than -130 (1 x 10^-130) are also truncated.

    - #### setValue

          public void setValue(java.lang.Double value)

      The value for the metric. Although the `Value` parameter accepts numbers of type `Double`, Amazon CloudWatch truncates values with very large exponents. Values with base-10 exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 exponents less than -130 (1 x 10^-130) are also truncated.
      パラメータ:
        `value` - The value for the metric. Although the `Value` parameter accepts numbers of type `Double`, Amazon CloudWatch truncates values with very large exponents. Values with base-10 exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 exponents less than -130 (1 x 10^-130) are also truncated.

    - #### withValue

          public MetricDatum withValue(java.lang.Double value)

      The value for the metric. Although the `Value` parameter accepts numbers of type `Double`, Amazon CloudWatch truncates values with very large exponents. Values with base-10 exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 exponents less than -130 (1 x 10^-130) are also truncated.

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

      パラメータ:
        `value` - The value for the metric. Although the `Value` parameter accepts numbers of type `Double`, Amazon CloudWatch truncates values with very large exponents. Values with base-10 exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 exponents less than -130 (1 x 10^-130) are also truncated.

    - #### getStatisticValues

          public StatisticSet getStatisticValues()

      A set of statistical values describing the metric.
      戻り値:
        A set of statistical values describing the metric.

    - #### setStatisticValues

          public void setStatisticValues(StatisticSet statisticValues)

      A set of statistical values describing the metric.
      パラメータ:
        `statisticValues` - A set of statistical values describing the metric.

    - #### withStatisticValues

          public MetricDatum withStatisticValues(StatisticSet statisticValues)

      A set of statistical values describing the metric.

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

      パラメータ:
        `statisticValues` - A set of statistical values describing the metric.

    - #### getUnit

          public java.lang.String getUnit()

      The unit of the metric.

      Constraints:
      Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None

      戻り値:
        The unit of the metric.
      関連項目:
        `StandardUnit`

    - #### setUnit

          public void setUnit(java.lang.String unit)

      The unit of the metric.

      Constraints:
      Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None

      パラメータ:
        `unit` - The unit of the metric.
      関連項目:
        `StandardUnit`

    - #### withUnit

          public MetricDatum withUnit(java.lang.String unit)

      The unit of the metric.

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

      Constraints:
      Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None

      パラメータ:
        `unit` - The unit of the metric.
      関連項目:
        `StandardUnit`

    - #### setUnit

          public void setUnit(StandardUnit unit)

      The unit of the metric.

      Constraints:
      Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None

      パラメータ:
        `unit` - The unit of the metric.
      関連項目:
        `StandardUnit`

    - #### withUnit

          public MetricDatum withUnit(StandardUnit unit)

      The unit of the metric.

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

      Constraints:
      Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None

      パラメータ:
        `unit` - The unit of the metric.
      関連項目:
        `StandardUnit`

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