@Generated(value="software.amazon.awssdk:codegen") public class CloudWatchAlarmConfiguration extends Object implements ToCopyableBuilder<CloudWatchAlarmConfiguration.Builder,CloudWatchAlarmConfiguration>
A complex type that contains information about the CloudWatch alarm that Amazon Route 53 is monitoring for this health check.
Modifier and Type | Class and Description |
---|---|
static interface |
CloudWatchAlarmConfiguration.Builder |
Modifier and Type | Method and Description |
---|---|
static CloudWatchAlarmConfiguration.Builder |
builder() |
ComparisonOperator |
comparisonOperator()
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the
comparison.
|
String |
comparisonOperatorString()
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the
comparison.
|
List<Dimension> |
dimensions()
For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the
dimensions for the metric.
|
boolean |
equals(Object obj) |
Integer |
evaluationPeriods()
For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is compared to
the threshold.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
metricName()
The name of the CloudWatch metric that the alarm is associated with.
|
String |
namespace()
The namespace of the metric that the alarm is associated with.
|
Integer |
period()
For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.
|
static Class<? extends CloudWatchAlarmConfiguration.Builder> |
serializableBuilderClass() |
Statistic |
statistic()
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
|
String |
statisticString()
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
|
Double |
threshold()
For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.
|
CloudWatchAlarmConfiguration.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Integer evaluationPeriods()
For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is compared to the threshold.
public Double threshold()
For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.
public ComparisonOperator comparisonOperator()
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.
If the service returns an enum value that is not available in the current SDK version,
comparisonOperator
will return ComparisonOperator.UNKNOWN_TO_SDK_VERSION
. The raw value returned
by the service is available from comparisonOperatorString()
.
ComparisonOperator
public String comparisonOperatorString()
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.
If the service returns an enum value that is not available in the current SDK version,
comparisonOperator
will return ComparisonOperator.UNKNOWN_TO_SDK_VERSION
. The raw value returned
by the service is available from comparisonOperatorString()
.
ComparisonOperator
public Integer period()
For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.
public String metricName()
The name of the CloudWatch metric that the alarm is associated with.
public 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.
public Statistic statistic()
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
If the service returns an enum value that is not available in the current SDK version, statistic
will
return Statistic.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statisticString()
.
Statistic
public String statisticString()
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
If the service returns an enum value that is not available in the current SDK version, statistic
will
return Statistic.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statisticString()
.
Statistic
public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public CloudWatchAlarmConfiguration.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CloudWatchAlarmConfiguration.Builder,CloudWatchAlarmConfiguration>
public static CloudWatchAlarmConfiguration.Builder builder()
public static Class<? extends CloudWatchAlarmConfiguration.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.