public class MetricAlarm
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The MetricAlarm data type represents an alarm. You can use PutMetricAlarm to create or update an alarm.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
actionsEnabled
Indicates whether actions should be executed during any changes to the
alarm's state.
|
private SdkInternalList<java.lang.String> |
alarmActions
The list of actions to execute when this alarm transitions into an
ALARM state from any other state. |
private java.lang.String |
alarmArn
The Amazon Resource Name (ARN) of the alarm.
|
private java.util.Date |
alarmConfigurationUpdatedTimestamp
The time stamp of the last update to the alarm configuration.
|
private java.lang.String |
alarmDescription
The description for the alarm.
|
private java.lang.String |
alarmName
The name of the alarm.
|
private java.lang.String |
comparisonOperator
The arithmetic operation to use when comparing the specified
Statistic and Threshold . |
private SdkInternalList<Dimension> |
dimensions
The list of dimensions associated with the alarm's associated metric.
|
private java.lang.Integer |
evaluationPeriods
The number of periods over which data is compared to the specified
threshold.
|
private SdkInternalList<java.lang.String> |
insufficientDataActions
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA state from any other state. |
private java.lang.String |
metricName
The name of the alarm's metric.
|
private java.lang.String |
namespace
The namespace of alarm's associated metric.
|
private SdkInternalList<java.lang.String> |
oKActions
The list of actions to execute when this alarm transitions into an
OK state from any other state. |
private java.lang.Integer |
period
The period in seconds over which the statistic is applied.
|
private java.lang.String |
stateReason
A human-readable explanation for the alarm's state.
|
private java.lang.String |
stateReasonData
An explanation for the alarm's state in machine-readable JSON format
|
private java.util.Date |
stateUpdatedTimestamp
The time stamp of the last update to the alarm's state.
|
private java.lang.String |
stateValue
The state value for the alarm.
|
private java.lang.String |
statistic
The statistic to apply to the alarm's associated metric.
|
private java.lang.Double |
threshold
The value against which the specified statistic is compared.
|
private java.lang.String |
unit
The unit of the alarm's associated metric.
|
Constructor and Description |
---|
MetricAlarm() |
Modifier and Type | Method and Description |
---|---|
MetricAlarm |
clone() |
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
|
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
|
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
|
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.
|
private java.lang.String alarmName
The name of the alarm.
private java.lang.String alarmArn
The Amazon Resource Name (ARN) of the alarm.
private java.lang.String alarmDescription
The description for the alarm.
private java.util.Date alarmConfigurationUpdatedTimestamp
The time stamp of the last update to the alarm configuration.
private java.lang.Boolean actionsEnabled
Indicates whether actions should be executed during any changes to the alarm's state.
private SdkInternalList<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 Name (ARN).
private SdkInternalList<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 Name (ARN).
private SdkInternalList<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 Name (ARN).
UnknownActions
.private java.lang.String stateValue
The state value for the alarm.
private java.lang.String stateReason
A human-readable explanation for the alarm's state.
private java.lang.String stateReasonData
An explanation for the alarm's state in machine-readable JSON format
private java.util.Date stateUpdatedTimestamp
The time stamp of the last update to the alarm's state.
private java.lang.String metricName
The name of the alarm's metric.
private java.lang.String namespace
The namespace of alarm's associated metric.
private java.lang.String statistic
The statistic to apply to the alarm's associated metric.
private SdkInternalList<Dimension> dimensions
The list of dimensions associated with the alarm's associated metric.
private java.lang.Integer period
The period in seconds over which the statistic is applied.
private java.lang.String unit
The unit of the alarm's associated metric.
private java.lang.Integer evaluationPeriods
The number of periods over which data is compared to the specified threshold.
private java.lang.Double threshold
The value against which the specified statistic is compared.
private 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.
public void setAlarmName(java.lang.String alarmName)
The name of the alarm.
alarmName
- The name of the alarm.public java.lang.String getAlarmName()
The name of the alarm.
public MetricAlarm withAlarmName(java.lang.String alarmName)
The name of the alarm.
alarmName
- The name of the alarm.public void setAlarmArn(java.lang.String alarmArn)
The Amazon Resource Name (ARN) of the alarm.
alarmArn
- The Amazon Resource Name (ARN) of the alarm.public java.lang.String getAlarmArn()
The Amazon Resource Name (ARN) of the alarm.
public MetricAlarm withAlarmArn(java.lang.String alarmArn)
The Amazon Resource Name (ARN) of the alarm.
alarmArn
- The Amazon Resource Name (ARN) of the alarm.public void setAlarmDescription(java.lang.String alarmDescription)
The description for the alarm.
alarmDescription
- The description for the alarm.public java.lang.String getAlarmDescription()
The description for the alarm.
public MetricAlarm withAlarmDescription(java.lang.String alarmDescription)
The description for the alarm.
alarmDescription
- The description for the alarm.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.public java.util.Date getAlarmConfigurationUpdatedTimestamp()
The time stamp of the last update to the alarm configuration.
public MetricAlarm withAlarmConfigurationUpdatedTimestamp(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.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.public java.lang.Boolean getActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm's state.
public MetricAlarm withActionsEnabled(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.public java.lang.Boolean isActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm's state.
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 Name (ARN).
OK
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).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 Name (ARN).
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 Name (ARN).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 Name (ARN).
NOTE: This method appends the values to the existing list (if
any). Use setOKActions(java.util.Collection)
or
withOKActions(java.util.Collection)
if you want to override the
existing values.
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 Name (ARN).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 Name (ARN).
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 Name (ARN).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 Name (ARN).
ALARM
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).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 Name (ARN).
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 Name (ARN).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 Name (ARN).
NOTE: This method appends the values to the existing list (if
any). Use setAlarmActions(java.util.Collection)
or
withAlarmActions(java.util.Collection)
if you want to override
the existing values.
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 Name (ARN).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 Name (ARN).
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 Name (ARN).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 Name (ARN).
UnknownActions
.INSUFFICIENT_DATA
state from any other state.
Each action is specified as an Amazon Resource Name (ARN).
UnknownActions
.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 Name (ARN).
UnknownActions
.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 Name (ARN).
UnknownActions
.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 Name (ARN).
UnknownActions
.
NOTE: This method appends the values to the existing list (if
any). Use setInsufficientDataActions(java.util.Collection)
or
withInsufficientDataActions(java.util.Collection)
if you want to
override the existing values.
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 Name (ARN).
UnknownActions
.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 Name (ARN).
UnknownActions
.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 Name (ARN).
UnknownActions
.public void setStateValue(java.lang.String stateValue)
The state value for the alarm.
stateValue
- The state value for the alarm.StateValue
public java.lang.String getStateValue()
The state value for the alarm.
StateValue
public MetricAlarm withStateValue(java.lang.String stateValue)
The state value for the alarm.
stateValue
- The state value for the alarm.StateValue
public void setStateValue(StateValue stateValue)
The state value for the alarm.
stateValue
- The state value for the alarm.StateValue
public MetricAlarm withStateValue(StateValue stateValue)
The state value for the alarm.
stateValue
- The state value for the alarm.StateValue
public void setStateReason(java.lang.String stateReason)
A human-readable explanation for the alarm's state.
stateReason
- A human-readable explanation for the alarm's state.public java.lang.String getStateReason()
A human-readable explanation for the alarm's state.
public MetricAlarm withStateReason(java.lang.String stateReason)
A human-readable explanation for the alarm's state.
stateReason
- A human-readable explanation for the alarm's state.public void setStateReasonData(java.lang.String stateReasonData)
An explanation for the alarm's state in machine-readable JSON format
stateReasonData
- An explanation for the alarm's state in machine-readable JSON
formatpublic java.lang.String getStateReasonData()
An explanation for the alarm's state in machine-readable JSON format
public MetricAlarm withStateReasonData(java.lang.String stateReasonData)
An explanation for the alarm's state in machine-readable JSON format
stateReasonData
- An explanation for the alarm's state in machine-readable JSON
formatpublic 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.public java.util.Date getStateUpdatedTimestamp()
The time stamp of the last update to the alarm's state.
public MetricAlarm withStateUpdatedTimestamp(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.public void setMetricName(java.lang.String metricName)
The name of the alarm's metric.
metricName
- The name of the alarm's metric.public java.lang.String getMetricName()
The name of the alarm's metric.
public MetricAlarm withMetricName(java.lang.String metricName)
The name of the alarm's metric.
metricName
- The name of the alarm's metric.public void setNamespace(java.lang.String namespace)
The namespace of alarm's associated metric.
namespace
- The namespace of alarm's associated metric.public java.lang.String getNamespace()
The namespace of alarm's associated metric.
public MetricAlarm withNamespace(java.lang.String namespace)
The namespace of alarm's associated metric.
namespace
- The namespace of alarm's associated metric.public void setStatistic(java.lang.String statistic)
The statistic to apply to the alarm's associated metric.
statistic
- The statistic to apply to the alarm's associated metric.Statistic
public java.lang.String getStatistic()
The statistic to apply to the alarm's associated metric.
Statistic
public MetricAlarm withStatistic(java.lang.String statistic)
The statistic to apply to the alarm's associated metric.
statistic
- The statistic to apply to the alarm's associated metric.Statistic
public void setStatistic(Statistic statistic)
The statistic to apply to the alarm's associated metric.
statistic
- The statistic to apply to the alarm's associated metric.Statistic
public MetricAlarm withStatistic(Statistic statistic)
The statistic to apply to the alarm's associated metric.
statistic
- The statistic to apply to the alarm's associated metric.Statistic
public java.util.List<Dimension> getDimensions()
The list of dimensions associated with the alarm's associated metric.
public void setDimensions(java.util.Collection<Dimension> dimensions)
The list of dimensions associated with the alarm's associated metric.
dimensions
- The list of dimensions associated with the alarm's associated
metric.public MetricAlarm withDimensions(Dimension... dimensions)
The list of dimensions associated with the alarm's associated metric.
NOTE: This method appends the values to the existing list (if
any). Use setDimensions(java.util.Collection)
or
withDimensions(java.util.Collection)
if you want to override the
existing values.
dimensions
- The list of dimensions associated with the alarm's associated
metric.public MetricAlarm withDimensions(java.util.Collection<Dimension> dimensions)
The list of dimensions associated with the alarm's associated metric.
dimensions
- The list of dimensions associated with the alarm's associated
metric.public void setPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
period
- The period in seconds over which the statistic is applied.public java.lang.Integer getPeriod()
The period in seconds over which the statistic is applied.
public MetricAlarm withPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
period
- The period in seconds over which the statistic is applied.public void setUnit(java.lang.String unit)
The unit of the alarm's associated metric.
unit
- The unit of the alarm's associated metric.StandardUnit
public java.lang.String getUnit()
The unit of the alarm's associated metric.
StandardUnit
public MetricAlarm withUnit(java.lang.String unit)
The unit of the alarm's associated metric.
unit
- The unit of the alarm's associated metric.StandardUnit
public void setUnit(StandardUnit unit)
The unit of the alarm's associated metric.
unit
- The unit of the alarm's associated metric.StandardUnit
public MetricAlarm withUnit(StandardUnit unit)
The unit of the alarm's associated metric.
unit
- The unit of the alarm's associated metric.StandardUnit
public void setEvaluationPeriods(java.lang.Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
evaluationPeriods
- The number of periods over which data is compared to the specified
threshold.public java.lang.Integer getEvaluationPeriods()
The number of periods over which data is compared to the specified threshold.
public MetricAlarm withEvaluationPeriods(java.lang.Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
evaluationPeriods
- The number of periods over which data is compared to the specified
threshold.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.public java.lang.Double getThreshold()
The value against which the specified statistic is compared.
public MetricAlarm withThreshold(java.lang.Double threshold)
The value against which the specified statistic is compared.
threshold
- The value against which the specified statistic is compared.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.
comparisonOperator
- The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.ComparisonOperator
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.
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.ComparisonOperator
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.
comparisonOperator
- The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.ComparisonOperator
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.
comparisonOperator
- The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.ComparisonOperator
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.
comparisonOperator
- The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.ComparisonOperator
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public MetricAlarm clone()
clone
in class java.lang.Object