@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CloudWatchAlarmConfiguration extends Object implements Serializable, Cloneable
A complex type that contains information about the CloudWatch alarm that Amazon Route 53 is monitoring for this health check.
Constructor and Description |
---|
CloudWatchAlarmConfiguration() |
Modifier and Type | Method and Description |
---|---|
CloudWatchAlarmConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getComparisonOperator()
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the
comparison.
|
List<Dimension> |
getDimensions()
For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the
dimensions for the metric.
|
Integer |
getEvaluationPeriods()
For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is compared to
the threshold.
|
String |
getMetricName()
The name of the CloudWatch metric that the alarm is associated with.
|
String |
getNamespace()
The namespace of the metric that the alarm is associated with.
|
Integer |
getPeriod()
For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.
|
String |
getStatistic()
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
|
Double |
getThreshold()
For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.
|
int |
hashCode() |
void |
setComparisonOperator(ComparisonOperator comparisonOperator)
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the
comparison.
|
void |
setComparisonOperator(String comparisonOperator)
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the
comparison.
|
void |
setDimensions(Collection<Dimension> dimensions)
For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the
dimensions for the metric.
|
void |
setEvaluationPeriods(Integer evaluationPeriods)
For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is compared to
the threshold.
|
void |
setMetricName(String metricName)
The name of the CloudWatch metric that the alarm is associated with.
|
void |
setNamespace(String namespace)
The namespace of the metric that the alarm is associated with.
|
void |
setPeriod(Integer period)
For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.
|
void |
setStatistic(Statistic statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
|
void |
setStatistic(String statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
|
void |
setThreshold(Double threshold)
For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CloudWatchAlarmConfiguration |
withComparisonOperator(ComparisonOperator comparisonOperator)
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the
comparison.
|
CloudWatchAlarmConfiguration |
withComparisonOperator(String comparisonOperator)
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the
comparison.
|
CloudWatchAlarmConfiguration |
withDimensions(Collection<Dimension> dimensions)
For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the
dimensions for the metric.
|
CloudWatchAlarmConfiguration |
withDimensions(Dimension... dimensions)
For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the
dimensions for the metric.
|
CloudWatchAlarmConfiguration |
withEvaluationPeriods(Integer evaluationPeriods)
For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is compared to
the threshold.
|
CloudWatchAlarmConfiguration |
withMetricName(String metricName)
The name of the CloudWatch metric that the alarm is associated with.
|
CloudWatchAlarmConfiguration |
withNamespace(String namespace)
The namespace of the metric that the alarm is associated with.
|
CloudWatchAlarmConfiguration |
withPeriod(Integer period)
For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.
|
CloudWatchAlarmConfiguration |
withStatistic(Statistic statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
|
CloudWatchAlarmConfiguration |
withStatistic(String statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
|
CloudWatchAlarmConfiguration |
withThreshold(Double threshold)
For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.
|
public void setEvaluationPeriods(Integer evaluationPeriods)
For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is compared to the threshold.
evaluationPeriods
- For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is
compared to the threshold.public Integer getEvaluationPeriods()
For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is compared to the threshold.
public CloudWatchAlarmConfiguration withEvaluationPeriods(Integer evaluationPeriods)
For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is compared to the threshold.
evaluationPeriods
- For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is
compared to the threshold.public void setThreshold(Double threshold)
For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.
threshold
- For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.public Double getThreshold()
For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.
public CloudWatchAlarmConfiguration withThreshold(Double threshold)
For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.
threshold
- For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.public void setComparisonOperator(String comparisonOperator)
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.
comparisonOperator
- For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the
comparison.ComparisonOperator
public String getComparisonOperator()
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.
ComparisonOperator
public CloudWatchAlarmConfiguration withComparisonOperator(String comparisonOperator)
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.
comparisonOperator
- For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the
comparison.ComparisonOperator
public void setComparisonOperator(ComparisonOperator comparisonOperator)
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.
comparisonOperator
- For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the
comparison.ComparisonOperator
public CloudWatchAlarmConfiguration withComparisonOperator(ComparisonOperator comparisonOperator)
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.
comparisonOperator
- For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the
comparison.ComparisonOperator
public void setPeriod(Integer period)
For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.
period
- For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in
seconds.public Integer getPeriod()
For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.
public CloudWatchAlarmConfiguration withPeriod(Integer period)
For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.
period
- For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in
seconds.public void setMetricName(String metricName)
The name of the CloudWatch metric that the alarm is associated with.
metricName
- The name of the CloudWatch metric that the alarm is associated with.public String getMetricName()
The name of the CloudWatch metric that the alarm is associated with.
public CloudWatchAlarmConfiguration withMetricName(String metricName)
The name of the CloudWatch metric that the alarm is associated with.
metricName
- The name of the CloudWatch metric that the alarm is associated with.public void setNamespace(String namespace)
The namespace of the metric that the alarm is associated with. For more information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.
namespace
- The namespace of the metric that the alarm is associated with. For more information, see Amazon
CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.public String getNamespace()
The namespace of the metric that the alarm is associated with. For more information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.
public CloudWatchAlarmConfiguration withNamespace(String namespace)
The namespace of the metric that the alarm is associated with. For more information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.
namespace
- The namespace of the metric that the alarm is associated with. For more information, see Amazon
CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.public void setStatistic(String statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
statistic
- For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.Statistic
public String getStatistic()
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
Statistic
public CloudWatchAlarmConfiguration withStatistic(String statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
statistic
- For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.Statistic
public void setStatistic(Statistic statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
statistic
- For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.Statistic
public CloudWatchAlarmConfiguration withStatistic(Statistic statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
statistic
- For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.Statistic
public List<Dimension> getDimensions()
For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the dimensions for the metric. For information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.
public void setDimensions(Collection<Dimension> dimensions)
For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the dimensions for the metric. For information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.
dimensions
- For the metric that the CloudWatch alarm is associated with, a complex type that contains information
about the dimensions for the metric. For information, see Amazon
CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.public CloudWatchAlarmConfiguration withDimensions(Dimension... dimensions)
For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the dimensions for the metric. For information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.
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
- For the metric that the CloudWatch alarm is associated with, a complex type that contains information
about the dimensions for the metric. For information, see Amazon
CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.public CloudWatchAlarmConfiguration withDimensions(Collection<Dimension> dimensions)
For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the dimensions for the metric. For information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.
dimensions
- For the metric that the CloudWatch alarm is associated with, a complex type that contains information
about the dimensions for the metric. For information, see Amazon
CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.public String toString()
toString
in class Object
Object.toString()
public CloudWatchAlarmConfiguration clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.