@Generated(value="software.amazon.awssdk:codegen") public final class CloudWatchAlarmConfiguration extends Object implements SdkPojo, Serializable, 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 |
comparisonOperatorAsString()
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) |
boolean |
equalsBySdkFields(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) |
boolean |
hasDimensions()
Returns true if the Dimensions property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
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.
|
List<SdkField<?>> |
sdkFields() |
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 |
statisticAsString()
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() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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 comparisonOperatorAsString().
ComparisonOperatorpublic String comparisonOperatorAsString()
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 comparisonOperatorAsString().
ComparisonOperatorpublic 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
statisticAsString().
Statisticpublic String statisticAsString()
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
statisticAsString().
Statisticpublic boolean hasDimensions()
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.
You can use hasDimensions() to see if a value was sent in this field.
public CloudWatchAlarmConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CloudWatchAlarmConfiguration.Builder,CloudWatchAlarmConfiguration>public static CloudWatchAlarmConfiguration.Builder builder()
public static Class<? extends CloudWatchAlarmConfiguration.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.