com.amazonaws.services.cloudwatch.model

## クラス MetricAlarm

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

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

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

  The MetricAlarm data type represents an alarm. You can use PutMetricAlarm to create or update an alarm.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.Boolean` | `getActionsEnabled()` Indicates whether actions should be executed during any changes to the alarm's state.
    `java.util.List<java.lang.String>` | `getAlarmActions()` The list of actions to execute when this alarm transitions into an `ALARM` state from any other state.
    `java.lang.String` | `getAlarmArn()` The Amazon Resource Name (ARN) of the alarm.
    `java.util.Date` | `getAlarmConfigurationUpdatedTimestamp()` The time stamp of the last update to the alarm configuration.
    `java.lang.String` | `getAlarmDescription()` The description for the alarm.
    `java.lang.String` | `getAlarmName()` The name of the alarm.
    `java.lang.String` | `getComparisonOperator()` The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`.
    `java.util.List<Dimension>` | `getDimensions()` The list of dimensions associated with the alarm's associated metric.
    `java.lang.Integer` | `getEvaluationPeriods()` The number of periods over which data is compared to the specified threshold.
    `java.util.List<java.lang.String>` | `getInsufficientDataActions()` The list of actions to execute when this alarm transitions into an `INSUFFICIENT_DATA` state from any other state.
    `java.lang.String` | `getMetricName()` The name of the alarm's metric.
    `java.lang.String` | `getNamespace()` The namespace of alarm's associated metric.
    `java.util.List<java.lang.String>` | `getOKActions()` The list of actions to execute when this alarm transitions into an `OK` state from any other state.
    `java.lang.Integer` | `getPeriod()` The period in seconds over which the statistic is applied.
    `java.lang.String` | `getStateReason()` A human-readable explanation for the alarm's state.
    `java.lang.String` | `getStateReasonData()` An explanation for the alarm's state in machine-readable JSON format Constraints: Length: 0 - 4000
    `java.util.Date` | `getStateUpdatedTimestamp()` The time stamp of the last update to the alarm's state.
    `java.lang.String` | `getStateValue()` The state value for the alarm.
    `java.lang.String` | `getStatistic()` The statistic to apply to the alarm's associated metric.
    `java.lang.Double` | `getThreshold()` The value against which the specified statistic is compared.
    `java.lang.String` | `getUnit()` The unit of the alarm's associated metric.
    `int` | `hashCode()`
    `java.lang.Boolean` | `isActionsEnabled()` Indicates whether actions should be executed during any changes to the alarm's state.
    `void` | `setActionsEnabled(java.lang.Boolean actionsEnabled)` Indicates whether actions should be executed during any changes to the alarm's state.
    `void` | `setAlarmActions(java.util.Collection<java.lang.String> alarmActions)` The list of actions to execute when this alarm transitions into an `ALARM` state from any other state.
    `void` | `setAlarmArn(java.lang.String alarmArn)` The Amazon Resource Name (ARN) of the alarm.
    `void` | `setAlarmConfigurationUpdatedTimestamp(java.util.Date alarmConfigurationUpdatedTimestamp)` The time stamp of the last update to the alarm configuration.
    `void` | `setAlarmDescription(java.lang.String alarmDescription)` The description for the alarm.
    `void` | `setAlarmName(java.lang.String alarmName)` The name of the alarm.
    `void` | `setComparisonOperator(ComparisonOperator comparisonOperator)` The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`.
    `void` | `setComparisonOperator(java.lang.String comparisonOperator)` The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`.
    `void` | `setDimensions(java.util.Collection<Dimension> dimensions)` The list of dimensions associated with the alarm's associated metric.
    `void` | `setEvaluationPeriods(java.lang.Integer evaluationPeriods)` The number of periods over which data is compared to the specified threshold.
    `void` | `setInsufficientDataActions(java.util.Collection<java.lang.String> insufficientDataActions)` The list of actions to execute when this alarm transitions into an `INSUFFICIENT_DATA` state from any other state.
    `void` | `setMetricName(java.lang.String metricName)` The name of the alarm's metric.
    `void` | `setNamespace(java.lang.String namespace)` The namespace of alarm's associated metric.
    `void` | `setOKActions(java.util.Collection<java.lang.String> oKActions)` The list of actions to execute when this alarm transitions into an `OK` state from any other state.
    `void` | `setPeriod(java.lang.Integer period)` The period in seconds over which the statistic is applied.
    `void` | `setStateReason(java.lang.String stateReason)` A human-readable explanation for the alarm's state.
    `void` | `setStateReasonData(java.lang.String stateReasonData)` An explanation for the alarm's state in machine-readable JSON format Constraints: Length: 0 - 4000
    `void` | `setStateUpdatedTimestamp(java.util.Date stateUpdatedTimestamp)` The time stamp of the last update to the alarm's state.
    `void` | `setStateValue(StateValue stateValue)` The state value for the alarm.
    `void` | `setStateValue(java.lang.String stateValue)` The state value for the alarm.
    `void` | `setStatistic(Statistic statistic)` The statistic to apply to the alarm's associated metric.
    `void` | `setStatistic(java.lang.String statistic)` The statistic to apply to the alarm's associated metric.
    `void` | `setThreshold(java.lang.Double threshold)` The value against which the specified statistic is compared.
    `void` | `setUnit(StandardUnit unit)` The unit of the alarm's associated metric.
    `void` | `setUnit(java.lang.String unit)` The unit of the alarm's associated metric.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `MetricAlarm` | `withActionsEnabled(java.lang.Boolean actionsEnabled)` Indicates whether actions should be executed during any changes to the alarm's state.
    `MetricAlarm` | `withAlarmActions(java.util.Collection<java.lang.String> alarmActions)` The list of actions to execute when this alarm transitions into an `ALARM` state from any other state.
    `MetricAlarm` | `withAlarmActions(java.lang.String... alarmActions)` The list of actions to execute when this alarm transitions into an `ALARM` state from any other state.
    `MetricAlarm` | `withAlarmArn(java.lang.String alarmArn)` The Amazon Resource Name (ARN) of the alarm.
    `MetricAlarm` | `withAlarmConfigurationUpdatedTimestamp(java.util.Date alarmConfigurationUpdatedTimestamp)` The time stamp of the last update to the alarm configuration.
    `MetricAlarm` | `withAlarmDescription(java.lang.String alarmDescription)` The description for the alarm.
    `MetricAlarm` | `withAlarmName(java.lang.String alarmName)` The name of the alarm.
    `MetricAlarm` | `withComparisonOperator(ComparisonOperator comparisonOperator)` The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`.
    `MetricAlarm` | `withComparisonOperator(java.lang.String comparisonOperator)` The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`.
    `MetricAlarm` | `withDimensions(java.util.Collection<Dimension> dimensions)` The list of dimensions associated with the alarm's associated metric.
    `MetricAlarm` | `withDimensions(Dimension... dimensions)` The list of dimensions associated with the alarm's associated metric.
    `MetricAlarm` | `withEvaluationPeriods(java.lang.Integer evaluationPeriods)` The number of periods over which data is compared to the specified threshold.
    `MetricAlarm` | `withInsufficientDataActions(java.util.Collection<java.lang.String> insufficientDataActions)` The list of actions to execute when this alarm transitions into an `INSUFFICIENT_DATA` state from any other state.
    `MetricAlarm` | `withInsufficientDataActions(java.lang.String... insufficientDataActions)` The list of actions to execute when this alarm transitions into an `INSUFFICIENT_DATA` state from any other state.
    `MetricAlarm` | `withMetricName(java.lang.String metricName)` The name of the alarm's metric.
    `MetricAlarm` | `withNamespace(java.lang.String namespace)` The namespace of alarm's associated metric.
    `MetricAlarm` | `withOKActions(java.util.Collection<java.lang.String> oKActions)` The list of actions to execute when this alarm transitions into an `OK` state from any other state.
    `MetricAlarm` | `withOKActions(java.lang.String... oKActions)` The list of actions to execute when this alarm transitions into an `OK` state from any other state.
    `MetricAlarm` | `withPeriod(java.lang.Integer period)` The period in seconds over which the statistic is applied.
    `MetricAlarm` | `withStateReason(java.lang.String stateReason)` A human-readable explanation for the alarm's state.
    `MetricAlarm` | `withStateReasonData(java.lang.String stateReasonData)` An explanation for the alarm's state in machine-readable JSON format Returns a reference to this object so that method calls can be chained together.
    `MetricAlarm` | `withStateUpdatedTimestamp(java.util.Date stateUpdatedTimestamp)` The time stamp of the last update to the alarm's state.
    `MetricAlarm` | `withStateValue(StateValue stateValue)` The state value for the alarm.
    `MetricAlarm` | `withStateValue(java.lang.String stateValue)` The state value for the alarm.
    `MetricAlarm` | `withStatistic(Statistic statistic)` The statistic to apply to the alarm's associated metric.
    `MetricAlarm` | `withStatistic(java.lang.String statistic)` The statistic to apply to the alarm's associated metric.
    `MetricAlarm` | `withThreshold(java.lang.Double threshold)` The value against which the specified statistic is compared.
    `MetricAlarm` | `withUnit(StandardUnit unit)` The unit of the alarm's associated metric.
    `MetricAlarm` | `withUnit(java.lang.String unit)` The unit of the alarm's associated metric.

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

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

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

    - #### MetricAlarm

          public MetricAlarm()

  - ### メソッドの詳細

    - #### getAlarmName

          public java.lang.String getAlarmName()

      The name of the alarm.

      Constraints:
      Length: 1 - 255

      戻り値:
        The name of the alarm.

    - #### setAlarmName

          public void setAlarmName(java.lang.String alarmName)

      The name of the alarm.

      Constraints:
      Length: 1 - 255

      パラメータ:
        `alarmName` - The name of the alarm.

    - #### withAlarmName

          public MetricAlarm withAlarmName(java.lang.String alarmName)

      The name of the alarm.

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

      Constraints:
      Length: 1 - 255

      パラメータ:
        `alarmName` - The name of the alarm.

    - #### getAlarmArn

          public java.lang.String getAlarmArn()

      The Amazon Resource Name (ARN) of the alarm.

      Constraints:
      Length: 1 - 1600

      戻り値:
        The Amazon Resource Name (ARN) of the alarm.

    - #### setAlarmArn

          public void setAlarmArn(java.lang.String alarmArn)

      The Amazon Resource Name (ARN) of the alarm.

      Constraints:
      Length: 1 - 1600

      パラメータ:
        `alarmArn` - The Amazon Resource Name (ARN) of the alarm.

    - #### withAlarmArn

          public MetricAlarm withAlarmArn(java.lang.String alarmArn)

      The Amazon Resource Name (ARN) of the alarm.

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

      Constraints:
      Length: 1 - 1600

      パラメータ:
        `alarmArn` - The Amazon Resource Name (ARN) of the alarm.

    - #### getAlarmDescription

          public java.lang.String getAlarmDescription()

      The description for the alarm.

      Constraints:
      Length: 0 - 255

      戻り値:
        The description for the alarm.

    - #### setAlarmDescription

          public void setAlarmDescription(java.lang.String alarmDescription)

      The description for the alarm.

      Constraints:
      Length: 0 - 255

      パラメータ:
        `alarmDescription` - The description for the alarm.

    - #### withAlarmDescription

          public MetricAlarm withAlarmDescription(java.lang.String alarmDescription)

      The description for the alarm.

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

      Constraints:
      Length: 0 - 255

      パラメータ:
        `alarmDescription` - The description for the alarm.

    - #### getAlarmConfigurationUpdatedTimestamp

          public java.util.Date getAlarmConfigurationUpdatedTimestamp()

      The time stamp of the last update to the alarm configuration.
      戻り値:
        The time stamp of the last update to the alarm configuration.

    - #### setAlarmConfigurationUpdatedTimestamp

          public void setAlarmConfigurationUpdatedTimestamp(java.util.Date alarmConfigurationUpdatedTimestamp)

      The time stamp of the last update to the alarm configuration.
      パラメータ:
        `alarmConfigurationUpdatedTimestamp` - The time stamp of the last update to the alarm configuration.

    - #### withAlarmConfigurationUpdatedTimestamp

          public MetricAlarm withAlarmConfigurationUpdatedTimestamp(java.util.Date alarmConfigurationUpdatedTimestamp)

      The time stamp of the last update to the alarm configuration.

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

      パラメータ:
        `alarmConfigurationUpdatedTimestamp` - The time stamp of the last update to the alarm configuration.

    - #### isActionsEnabled

          public java.lang.Boolean isActionsEnabled()

      Indicates whether actions should be executed during any changes to the alarm's state.
      戻り値:
        Indicates whether actions should be executed during any changes to the alarm's state.

    - #### setActionsEnabled

          public void setActionsEnabled(java.lang.Boolean actionsEnabled)

      Indicates whether actions should be executed during any changes to the alarm's state.
      パラメータ:
        `actionsEnabled` - Indicates whether actions should be executed during any changes to the alarm's state.

    - #### withActionsEnabled

          public MetricAlarm withActionsEnabled(java.lang.Boolean actionsEnabled)

      Indicates whether actions should be executed during any changes to the alarm's state.

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

      パラメータ:
        `actionsEnabled` - Indicates whether actions should be executed during any changes to the alarm's state.

    - #### getActionsEnabled

          public java.lang.Boolean getActionsEnabled()

      Indicates whether actions should be executed during any changes to the alarm's state.
      戻り値:
        Indicates whether actions should be executed during any changes to the alarm's state.

    - #### getOKActions

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

      The list of actions to execute when this alarm transitions into an `OK` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

      Constraints:
      Length: 0 - 5

      戻り値:
        The list of actions to execute when this alarm transitions into an `OK` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

    - #### setOKActions

          public void setOKActions(java.util.Collection<java.lang.String> oKActions)

      The list of actions to execute when this alarm transitions into an `OK` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

      Constraints:
      Length: 0 - 5

      パラメータ:
        `oKActions` - The list of actions to execute when this alarm transitions into an `OK` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

    - #### withOKActions

          public MetricAlarm withOKActions(java.lang.String... oKActions)

      The list of actions to execute when this alarm transitions into an `OK` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

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

      Constraints:
      Length: 0 - 5

      パラメータ:
        `oKActions` - The list of actions to execute when this alarm transitions into an `OK` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

    - #### withOKActions

          public MetricAlarm withOKActions(java.util.Collection<java.lang.String> oKActions)

      The list of actions to execute when this alarm transitions into an `OK` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

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

      Constraints:
      Length: 0 - 5

      パラメータ:
        `oKActions` - The list of actions to execute when this alarm transitions into an `OK` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

    - #### getAlarmActions

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

      The list of actions to execute when this alarm transitions into an `ALARM` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

      Constraints:
      Length: 0 - 5

      戻り値:
        The list of actions to execute when this alarm transitions into an `ALARM` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

    - #### setAlarmActions

          public void setAlarmActions(java.util.Collection<java.lang.String> alarmActions)

      The list of actions to execute when this alarm transitions into an `ALARM` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

      Constraints:
      Length: 0 - 5

      パラメータ:
        `alarmActions` - The list of actions to execute when this alarm transitions into an `ALARM` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

    - #### withAlarmActions

          public MetricAlarm withAlarmActions(java.lang.String... alarmActions)

      The list of actions to execute when this alarm transitions into an `ALARM` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

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

      Constraints:
      Length: 0 - 5

      パラメータ:
        `alarmActions` - The list of actions to execute when this alarm transitions into an `ALARM` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

    - #### withAlarmActions

          public MetricAlarm withAlarmActions(java.util.Collection<java.lang.String> alarmActions)

      The list of actions to execute when this alarm transitions into an `ALARM` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

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

      Constraints:
      Length: 0 - 5

      パラメータ:
        `alarmActions` - The list of actions to execute when this alarm transitions into an `ALARM` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

    - #### getInsufficientDataActions

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

      The list of actions to execute when this alarm transitions into an `INSUFFICIENT_DATA` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic or triggering an Auto Scaling policy.

      Constraints:
      Length: 0 - 5

      戻り値:
        The list of actions to execute when this alarm transitions into an `INSUFFICIENT_DATA` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic or triggering an Auto Scaling policy.

    - #### setInsufficientDataActions

          public void setInsufficientDataActions(java.util.Collection<java.lang.String> insufficientDataActions)

      The list of actions to execute when this alarm transitions into an `INSUFFICIENT_DATA` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic or triggering an Auto Scaling policy.

      Constraints:
      Length: 0 - 5

      パラメータ:
        `insufficientDataActions` - The list of actions to execute when this alarm transitions into an `INSUFFICIENT_DATA` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic or triggering an Auto Scaling policy.

    - #### withInsufficientDataActions

          public MetricAlarm withInsufficientDataActions(java.lang.String... insufficientDataActions)

      The list of actions to execute when this alarm transitions into an `INSUFFICIENT_DATA` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic or triggering an Auto Scaling policy.

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

      Constraints:
      Length: 0 - 5

      パラメータ:
        `insufficientDataActions` - The list of actions to execute when this alarm transitions into an `INSUFFICIENT_DATA` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic or triggering an Auto Scaling policy.

    - #### withInsufficientDataActions

          public MetricAlarm withInsufficientDataActions(java.util.Collection<java.lang.String> insufficientDataActions)

      The list of actions to execute when this alarm transitions into an `INSUFFICIENT_DATA` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic or triggering an Auto Scaling policy.

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

      Constraints:
      Length: 0 - 5

      パラメータ:
        `insufficientDataActions` - The list of actions to execute when this alarm transitions into an `INSUFFICIENT_DATA` state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic or triggering an Auto Scaling policy.

    - #### getStateValue

          public java.lang.String getStateValue()

      The state value for the alarm.

      Constraints:
      Allowed Values: OK, ALARM, INSUFFICIENT_DATA

      戻り値:
        The state value for the alarm.
      関連項目:
        `StateValue`

    - #### setStateValue

          public void setStateValue(java.lang.String stateValue)

      The state value for the alarm.

      Constraints:
      Allowed Values: OK, ALARM, INSUFFICIENT_DATA

      パラメータ:
        `stateValue` - The state value for the alarm.
      関連項目:
        `StateValue`

    - #### withStateValue

          public MetricAlarm withStateValue(java.lang.String stateValue)

      The state value for the alarm.

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

      Constraints:
      Allowed Values: OK, ALARM, INSUFFICIENT_DATA

      パラメータ:
        `stateValue` - The state value for the alarm.
      関連項目:
        `StateValue`

    - #### setStateValue

          public void setStateValue(StateValue stateValue)

      The state value for the alarm.

      Constraints:
      Allowed Values: OK, ALARM, INSUFFICIENT_DATA

      パラメータ:
        `stateValue` - The state value for the alarm.
      関連項目:
        `StateValue`

    - #### withStateValue

          public MetricAlarm withStateValue(StateValue stateValue)

      The state value for the alarm.

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

      Constraints:
      Allowed Values: OK, ALARM, INSUFFICIENT_DATA

      パラメータ:
        `stateValue` - The state value for the alarm.
      関連項目:
        `StateValue`

    - #### getStateReason

          public java.lang.String getStateReason()

      A human-readable explanation for the alarm's state.

      Constraints:
      Length: 0 - 1023

      戻り値:
        A human-readable explanation for the alarm's state.

    - #### setStateReason

          public void setStateReason(java.lang.String stateReason)

      A human-readable explanation for the alarm's state.

      Constraints:
      Length: 0 - 1023

      パラメータ:
        `stateReason` - A human-readable explanation for the alarm's state.

    - #### withStateReason

          public MetricAlarm withStateReason(java.lang.String stateReason)

      A human-readable explanation for the alarm's state.

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

      Constraints:
      Length: 0 - 1023

      パラメータ:
        `stateReason` - A human-readable explanation for the alarm's state.

    - #### getStateReasonData

          public java.lang.String getStateReasonData()

      An explanation for the alarm's state in machine-readable JSON format

      Constraints:
      Length: 0 - 4000

      戻り値:
        An explanation for the alarm's state in machine-readable JSON format

    - #### setStateReasonData

          public void setStateReasonData(java.lang.String stateReasonData)

      An explanation for the alarm's state in machine-readable JSON format

      Constraints:
      Length: 0 - 4000

      パラメータ:
        `stateReasonData` - An explanation for the alarm's state in machine-readable JSON format

    - #### withStateReasonData

          public MetricAlarm withStateReasonData(java.lang.String stateReasonData)

      An explanation for the alarm's state in machine-readable JSON format

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

      Constraints:
      Length: 0 - 4000

      パラメータ:
        `stateReasonData` - An explanation for the alarm's state in machine-readable JSON format

    - #### getStateUpdatedTimestamp

          public java.util.Date getStateUpdatedTimestamp()

      The time stamp of the last update to the alarm's state.
      戻り値:
        The time stamp of the last update to the alarm's state.

    - #### setStateUpdatedTimestamp

          public void setStateUpdatedTimestamp(java.util.Date stateUpdatedTimestamp)

      The time stamp of the last update to the alarm's state.
      パラメータ:
        `stateUpdatedTimestamp` - The time stamp of the last update to the alarm's state.

    - #### withStateUpdatedTimestamp

          public MetricAlarm withStateUpdatedTimestamp(java.util.Date stateUpdatedTimestamp)

      The time stamp of the last update to the alarm's state.

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

      パラメータ:
        `stateUpdatedTimestamp` - The time stamp of the last update to the alarm's state.

    - #### getMetricName

          public java.lang.String getMetricName()

      The name of the alarm's metric.

      Constraints:
      Length: 1 - 255

      戻り値:
        The name of the alarm's metric.

    - #### setMetricName

          public void setMetricName(java.lang.String metricName)

      The name of the alarm's metric.

      Constraints:
      Length: 1 - 255

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

    - #### withMetricName

          public MetricAlarm withMetricName(java.lang.String metricName)

      The name of the alarm's metric.

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

      Constraints:
      Length: 1 - 255

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

    - #### getNamespace

          public java.lang.String getNamespace()

      The namespace of alarm's associated metric.

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

      戻り値:
        The namespace of alarm's associated metric.

    - #### setNamespace

          public void setNamespace(java.lang.String namespace)

      The namespace of alarm's associated metric.

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

      パラメータ:
        `namespace` - The namespace of alarm's associated metric.

    - #### withNamespace

          public MetricAlarm withNamespace(java.lang.String namespace)

      The namespace of alarm's associated metric.

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

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

      パラメータ:
        `namespace` - The namespace of alarm's associated metric.

    - #### getStatistic

          public java.lang.String getStatistic()

      The statistic to apply to the alarm's associated metric.

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

      戻り値:
        The statistic to apply to the alarm's associated metric.
      関連項目:
        `Statistic`

    - #### setStatistic

          public void setStatistic(java.lang.String statistic)

      The statistic to apply to the alarm's associated metric.

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

      パラメータ:
        `statistic` - The statistic to apply to the alarm's associated metric.
      関連項目:
        `Statistic`

    - #### withStatistic

          public MetricAlarm withStatistic(java.lang.String statistic)

      The statistic to apply to the alarm's associated 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 to apply to the alarm's associated metric.
      関連項目:
        `Statistic`

    - #### setStatistic

          public void setStatistic(Statistic statistic)

      The statistic to apply to the alarm's associated metric.

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

      パラメータ:
        `statistic` - The statistic to apply to the alarm's associated metric.
      関連項目:
        `Statistic`

    - #### withStatistic

          public MetricAlarm withStatistic(Statistic statistic)

      The statistic to apply to the alarm's associated 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 to apply to the alarm's associated metric.
      関連項目:
        `Statistic`

    - #### getDimensions

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

      The list of dimensions associated with the alarm's associated metric.

      Constraints:
      Length: 0 - 10

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

    - #### setDimensions

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

      The list of dimensions associated with the alarm's associated metric.

      Constraints:
      Length: 0 - 10

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

    - #### withDimensions

          public MetricAlarm withDimensions(Dimension... dimensions)

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

    - #### withDimensions

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

      The list of dimensions associated with the alarm's associated 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 alarm's associated 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 MetricAlarm 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 of the alarm's associated 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 alarm's associated metric.
      関連項目:
        `StandardUnit`

    - #### setUnit

          public void setUnit(java.lang.String unit)

      The unit of the alarm's associated 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 alarm's associated metric.
      関連項目:
        `StandardUnit`

    - #### withUnit

          public MetricAlarm withUnit(java.lang.String unit)

      The unit of the alarm's associated 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 alarm's associated metric.
      関連項目:
        `StandardUnit`

    - #### setUnit

          public void setUnit(StandardUnit unit)

      The unit of the alarm's associated 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 alarm's associated metric.
      関連項目:
        `StandardUnit`

    - #### withUnit

          public MetricAlarm withUnit(StandardUnit unit)

      The unit of the alarm's associated 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 alarm's associated metric.
      関連項目:
        `StandardUnit`

    - #### getEvaluationPeriods

          public java.lang.Integer getEvaluationPeriods()

      The number of periods over which data is compared to the specified threshold.

      Constraints:
      Range: 1 -

      戻り値:
        The number of periods over which data is compared to the specified threshold.

    - #### setEvaluationPeriods

          public void setEvaluationPeriods(java.lang.Integer evaluationPeriods)

      The number of periods over which data is compared to the specified threshold.

      Constraints:
      Range: 1 -

      パラメータ:
        `evaluationPeriods` - The number of periods over which data is compared to the specified threshold.

    - #### withEvaluationPeriods

          public MetricAlarm withEvaluationPeriods(java.lang.Integer evaluationPeriods)

      The number of periods over which data is compared to the specified threshold.

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

      Constraints:
      Range: 1 -

      パラメータ:
        `evaluationPeriods` - The number of periods over which data is compared to the specified threshold.

    - #### getThreshold

          public java.lang.Double getThreshold()

      The value against which the specified statistic is compared.
      戻り値:
        The value against which the specified statistic is compared.

    - #### setThreshold

          public void setThreshold(java.lang.Double threshold)

      The value against which the specified statistic is compared.
      パラメータ:
        `threshold` - The value against which the specified statistic is compared.

    - #### withThreshold

          public MetricAlarm withThreshold(java.lang.Double threshold)

      The value against which the specified statistic is compared.

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

      パラメータ:
        `threshold` - The value against which the specified statistic is compared.

    - #### getComparisonOperator

          public java.lang.String getComparisonOperator()

      The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`. The specified `Statistic` value is used as the first operand.

      Constraints:
      Allowed Values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold

      戻り値:
        The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`. The specified `Statistic` value is used as the first operand.
      関連項目:
        `ComparisonOperator`

    - #### setComparisonOperator

          public void setComparisonOperator(java.lang.String comparisonOperator)

      The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`. The specified `Statistic` value is used as the first operand.

      Constraints:
      Allowed Values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold

      パラメータ:
        `comparisonOperator` - The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`. The specified `Statistic` value is used as the first operand.
      関連項目:
        `ComparisonOperator`

    - #### withComparisonOperator

          public MetricAlarm withComparisonOperator(java.lang.String comparisonOperator)

      The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`. The specified `Statistic` value is used as the first operand.

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

      Constraints:
      Allowed Values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold

      パラメータ:
        `comparisonOperator` - The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`. The specified `Statistic` value is used as the first operand.
      関連項目:
        `ComparisonOperator`

    - #### setComparisonOperator

          public void setComparisonOperator(ComparisonOperator comparisonOperator)

      The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`. The specified `Statistic` value is used as the first operand.

      Constraints:
      Allowed Values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold

      パラメータ:
        `comparisonOperator` - The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`. The specified `Statistic` value is used as the first operand.
      関連項目:
        `ComparisonOperator`

    - #### withComparisonOperator

          public MetricAlarm withComparisonOperator(ComparisonOperator comparisonOperator)

      The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`. The specified `Statistic` value is used as the first operand.

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

      Constraints:
      Allowed Values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold

      パラメータ:
        `comparisonOperator` - The arithmetic operation to use when comparing the specified `Statistic` and `Threshold`. The specified `Statistic` value is used as the first operand.
      関連項目:
        `ComparisonOperator`

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