CopyableBuilder<CloudWatchAlarmDefinition.Builder,CloudWatchAlarmDefinition>
, SdkBuilder<CloudWatchAlarmDefinition.Builder,CloudWatchAlarmDefinition>
public static interface CloudWatchAlarmDefinition.Builder extends CopyableBuilder<CloudWatchAlarmDefinition.Builder,CloudWatchAlarmDefinition>
Modifier and Type | Method | Description |
---|---|---|
CloudWatchAlarmDefinition.Builder |
comparisonOperator(String comparisonOperator) |
Determines how the metric specified by
MetricName is compared to the value specified by
Threshold . |
CloudWatchAlarmDefinition.Builder |
comparisonOperator(ComparisonOperator comparisonOperator) |
Determines how the metric specified by
MetricName is compared to the value specified by
Threshold . |
CloudWatchAlarmDefinition.Builder |
dimensions(Collection<MetricDimension> dimensions) |
A CloudWatch metric dimension.
|
CloudWatchAlarmDefinition.Builder |
dimensions(MetricDimension... dimensions) |
A CloudWatch metric dimension.
|
CloudWatchAlarmDefinition.Builder |
evaluationPeriods(Integer evaluationPeriods) |
The number of periods, expressed in seconds using
Period , during which the alarm condition must
exist before the alarm triggers automatic scaling activity. |
CloudWatchAlarmDefinition.Builder |
metricName(String metricName) |
The name of the CloudWatch metric that is watched to determine an alarm condition.
|
CloudWatchAlarmDefinition.Builder |
namespace(String namespace) |
The namespace for the CloudWatch metric.
|
CloudWatchAlarmDefinition.Builder |
period(Integer period) |
The period, in seconds, over which the statistic is applied.
|
CloudWatchAlarmDefinition.Builder |
statistic(String statistic) |
The statistic to apply to the metric associated with the alarm.
|
CloudWatchAlarmDefinition.Builder |
statistic(Statistic statistic) |
The statistic to apply to the metric associated with the alarm.
|
CloudWatchAlarmDefinition.Builder |
threshold(Double threshold) |
The value against which the specified statistic is compared.
|
CloudWatchAlarmDefinition.Builder |
unit(String unit) |
The unit of measure associated with the CloudWatch metric being watched.
|
CloudWatchAlarmDefinition.Builder |
unit(Unit unit) |
The unit of measure associated with the CloudWatch metric being watched.
|
copy
apply, build
CloudWatchAlarmDefinition.Builder comparisonOperator(String comparisonOperator)
Determines how the metric specified by MetricName
is compared to the value specified by
Threshold
.
comparisonOperator
- Determines how the metric specified by MetricName
is compared to the value specified by
Threshold
.ComparisonOperator
CloudWatchAlarmDefinition.Builder comparisonOperator(ComparisonOperator comparisonOperator)
Determines how the metric specified by MetricName
is compared to the value specified by
Threshold
.
comparisonOperator
- Determines how the metric specified by MetricName
is compared to the value specified by
Threshold
.ComparisonOperator
CloudWatchAlarmDefinition.Builder evaluationPeriods(Integer evaluationPeriods)
The number of periods, expressed in seconds using Period
, during which the alarm condition must
exist before the alarm triggers automatic scaling activity. The default value is 1
.
evaluationPeriods
- The number of periods, expressed in seconds using Period
, during which the alarm
condition must exist before the alarm triggers automatic scaling activity. The default value is
1
.CloudWatchAlarmDefinition.Builder metricName(String metricName)
The name of the CloudWatch metric that is watched to determine an alarm condition.
metricName
- The name of the CloudWatch metric that is watched to determine an alarm condition.CloudWatchAlarmDefinition.Builder namespace(String namespace)
The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce
.
namespace
- The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce
.CloudWatchAlarmDefinition.Builder period(Integer period)
The period, in seconds, over which the statistic is applied. EMR CloudWatch metrics are emitted every five
minutes (300 seconds), so if an EMR CloudWatch metric is specified, specify 300
.
period
- The period, in seconds, over which the statistic is applied. EMR CloudWatch metrics are emitted every
five minutes (300 seconds), so if an EMR CloudWatch metric is specified, specify 300
.CloudWatchAlarmDefinition.Builder statistic(String statistic)
The statistic to apply to the metric associated with the alarm. The default is AVERAGE
.
statistic
- The statistic to apply to the metric associated with the alarm. The default is AVERAGE
.Statistic
CloudWatchAlarmDefinition.Builder statistic(Statistic statistic)
The statistic to apply to the metric associated with the alarm. The default is AVERAGE
.
statistic
- The statistic to apply to the metric associated with the alarm. The default is AVERAGE
.Statistic
CloudWatchAlarmDefinition.Builder threshold(Double threshold)
The value against which the specified statistic is compared.
threshold
- The value against which the specified statistic is compared.CloudWatchAlarmDefinition.Builder unit(String unit)
The unit of measure associated with the CloudWatch metric being watched. The value specified for
Unit
must correspond to the units specified in the CloudWatch metric.
unit
- The unit of measure associated with the CloudWatch metric being watched. The value specified for
Unit
must correspond to the units specified in the CloudWatch metric.Unit
CloudWatchAlarmDefinition.Builder unit(Unit unit)
The unit of measure associated with the CloudWatch metric being watched. The value specified for
Unit
must correspond to the units specified in the CloudWatch metric.
unit
- The unit of measure associated with the CloudWatch metric being watched. The value specified for
Unit
must correspond to the units specified in the CloudWatch metric.Unit
CloudWatchAlarmDefinition.Builder dimensions(Collection<MetricDimension> dimensions)
A CloudWatch metric dimension.
dimensions
- A CloudWatch metric dimension.CloudWatchAlarmDefinition.Builder dimensions(MetricDimension... dimensions)
A CloudWatch metric dimension.
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
- A CloudWatch metric dimension.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.