public static interface CloudWatchAlarmConfiguration.Builder extends SdkPojo, CopyableBuilder<CloudWatchAlarmConfiguration.Builder,CloudWatchAlarmConfiguration>
Modifier and Type | Method and Description |
---|---|
CloudWatchAlarmConfiguration.Builder |
comparisonOperator(ComparisonOperator comparisonOperator)
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the
comparison.
|
CloudWatchAlarmConfiguration.Builder |
comparisonOperator(String comparisonOperator)
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the
comparison.
|
CloudWatchAlarmConfiguration.Builder |
dimensions(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.Builder |
dimensions(Consumer<Dimension.Builder>... dimensions)
For the metric that the CloudWatch alarm is associated with, a complex type that contains information about
the dimensions for the metric.
|
CloudWatchAlarmConfiguration.Builder |
dimensions(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.Builder |
evaluationPeriods(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.Builder |
metricName(String metricName)
The name of the CloudWatch metric that the alarm is associated with.
|
CloudWatchAlarmConfiguration.Builder |
namespace(String namespace)
The namespace of the metric that the alarm is associated with.
|
CloudWatchAlarmConfiguration.Builder |
period(Integer period)
For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in
seconds.
|
CloudWatchAlarmConfiguration.Builder |
statistic(Statistic statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
|
CloudWatchAlarmConfiguration.Builder |
statistic(String statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
|
CloudWatchAlarmConfiguration.Builder |
threshold(Double threshold)
For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.
|
copy
applyMutation, build
CloudWatchAlarmConfiguration.Builder evaluationPeriods(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.CloudWatchAlarmConfiguration.Builder threshold(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.CloudWatchAlarmConfiguration.Builder comparisonOperator(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
,
ComparisonOperator
CloudWatchAlarmConfiguration.Builder comparisonOperator(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
,
ComparisonOperator
CloudWatchAlarmConfiguration.Builder period(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.CloudWatchAlarmConfiguration.Builder metricName(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.CloudWatchAlarmConfiguration.Builder namespace(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.CloudWatchAlarmConfiguration.Builder statistic(String statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
CloudWatchAlarmConfiguration.Builder statistic(Statistic statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
CloudWatchAlarmConfiguration.Builder dimensions(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.CloudWatchAlarmConfiguration.Builder dimensions(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.CloudWatchAlarmConfiguration.Builder dimensions(Consumer<Dimension.Builder>... 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.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #dimensions(List)
.dimensions
- a consumer that will call methods on List.Builder
#dimensions(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.