@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()
For responses, this returns true if the service returned a value for the Dimensions property.
|
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 final 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 final Double threshold()
For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.
public final 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 final 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 final Integer period()
For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.
public final String metricName()
The name of the CloudWatch metric that the alarm is associated with.
public final 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 final 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 final 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 final boolean hasDimensions()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDimensions() method.
public CloudWatchAlarmConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CloudWatchAlarmConfiguration.Builder,CloudWatchAlarmConfiguration>public static CloudWatchAlarmConfiguration.Builder builder()
public static Class<? extends CloudWatchAlarmConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.