com.amazonaws.services.cloudwatch.model

## クラス DescribeAlarmsForMetricRequest

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

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

      public class DescribeAlarmsForMetricRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `DescribeAlarmsForMetric operation`.

  Retrieves all alarms for a single metric. Specify a statistic, period, or unit to filter the set of alarms further.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<Dimension>` | `getDimensions()` The 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.
    `java.lang.Integer` | `getPeriod()` The period in seconds over which the statistic is applied.
    `java.lang.String` | `getStatistic()` The statistic for the metric.
    `java.lang.String` | `getUnit()` The unit for the metric.
    `int` | `hashCode()`
    `void` | `setDimensions(java.util.Collection<Dimension> dimensions)` The 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.
    `void` | `setPeriod(java.lang.Integer period)` The period in seconds over which the statistic is applied.
    `void` | `setStatistic(Statistic statistic)` The statistic for the metric.
    `void` | `setStatistic(java.lang.String statistic)` The statistic for the metric.
    `void` | `setUnit(StandardUnit unit)` The unit for the metric.
    `void` | `setUnit(java.lang.String unit)` The unit for the metric.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `DescribeAlarmsForMetricRequest` | `withDimensions(java.util.Collection<Dimension> dimensions)` The list of dimensions associated with the metric.
    `DescribeAlarmsForMetricRequest` | `withDimensions(Dimension... dimensions)` The list of dimensions associated with the metric.
    `DescribeAlarmsForMetricRequest` | `withMetricName(java.lang.String metricName)` The name of the metric.
    `DescribeAlarmsForMetricRequest` | `withNamespace(java.lang.String namespace)` The namespace of the metric.
    `DescribeAlarmsForMetricRequest` | `withPeriod(java.lang.Integer period)` The period in seconds over which the statistic is applied.
    `DescribeAlarmsForMetricRequest` | `withStatistic(Statistic statistic)` The statistic for the metric.
    `DescribeAlarmsForMetricRequest` | `withStatistic(java.lang.String statistic)` The statistic for the metric.
    `DescribeAlarmsForMetricRequest` | `withUnit(StandardUnit unit)` The unit for the metric.
    `DescribeAlarmsForMetricRequest` | `withUnit(java.lang.String unit)` The unit for the metric.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### DescribeAlarmsForMetricRequest

          public DescribeAlarmsForMetricRequest()

  - ### メソッドの詳細

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

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

    - #### getStatistic

          public java.lang.String getStatistic()

      The statistic for the metric.

      Constraints:
      Allowed Values: SampleCount, Average, Sum, Minimum, Maximum

      戻り値:
        The statistic for the metric.
      関連項目:
        `Statistic`

    - #### setStatistic

          public void setStatistic(java.lang.String statistic)

      The statistic for the metric.

      Constraints:
      Allowed Values: SampleCount, Average, Sum, Minimum, Maximum

      パラメータ:
        `statistic` - The statistic for the metric.
      関連項目:
        `Statistic`

    - #### withStatistic

          public DescribeAlarmsForMetricRequest withStatistic(java.lang.String statistic)

      The statistic for the metric.

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

      Constraints:
      Allowed Values: SampleCount, Average, Sum, Minimum, Maximum

      パラメータ:
        `statistic` - The statistic for the metric.
      関連項目:
        `Statistic`

    - #### setStatistic

          public void setStatistic(Statistic statistic)

      The statistic for the metric.

      Constraints:
      Allowed Values: SampleCount, Average, Sum, Minimum, Maximum

      パラメータ:
        `statistic` - The statistic for the metric.
      関連項目:
        `Statistic`

    - #### withStatistic

          public DescribeAlarmsForMetricRequest withStatistic(Statistic statistic)

      The statistic for the metric.

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

      Constraints:
      Allowed Values: SampleCount, Average, Sum, Minimum, Maximum

      パラメータ:
        `statistic` - The statistic for the metric.
      関連項目:
        `Statistic`

    - #### getDimensions

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

      The list of dimensions associated with the metric.

      Constraints:
      Length: 0 - 10

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

    - #### setDimensions

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

      The list of dimensions associated with the metric.

      Constraints:
      Length: 0 - 10

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

    - #### withDimensions

          public DescribeAlarmsForMetricRequest withDimensions(Dimension... dimensions)

      The 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` - The list of dimensions associated with the metric.

    - #### withDimensions

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

      The 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` - The list of dimensions associated with the metric.

    - #### getPeriod

          public java.lang.Integer getPeriod()

      The period in seconds over which the statistic is applied.

      Constraints:
      Range: 60 -

      戻り値:
        The period in seconds over which the statistic is applied.

    - #### setPeriod

          public void setPeriod(java.lang.Integer period)

      The period in seconds over which the statistic is applied.

      Constraints:
      Range: 60 -

      パラメータ:
        `period` - The period in seconds over which the statistic is applied.

    - #### withPeriod

          public DescribeAlarmsForMetricRequest withPeriod(java.lang.Integer period)

      The period in seconds over which the statistic is applied.

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

      Constraints:
      Range: 60 -

      パラメータ:
        `period` - The period in seconds over which the statistic is applied.

    - #### getUnit

          public java.lang.String getUnit()

      The unit for 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 for the metric.
      関連項目:
        `StandardUnit`

    - #### setUnit

          public void setUnit(java.lang.String unit)

      The unit for 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 for the metric.
      関連項目:
        `StandardUnit`

    - #### withUnit

          public DescribeAlarmsForMetricRequest withUnit(java.lang.String unit)

      The unit for 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 for the metric.
      関連項目:
        `StandardUnit`

    - #### setUnit

          public void setUnit(StandardUnit unit)

      The unit for 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 for the metric.
      関連項目:
        `StandardUnit`

    - #### withUnit

          public DescribeAlarmsForMetricRequest withUnit(StandardUnit unit)

      The unit for 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 for 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`