Interface CloudWatchAlarmDefinition.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CloudWatchAlarmDefinition.Builder,
,CloudWatchAlarmDefinition> SdkBuilder<CloudWatchAlarmDefinition.Builder,
,CloudWatchAlarmDefinition> SdkPojo
- Enclosing class:
CloudWatchAlarmDefinition
-
Method Summary
Modifier and TypeMethodDescriptioncomparisonOperator
(String comparisonOperator) Determines how the metric specified byMetricName
is compared to the value specified byThreshold
.comparisonOperator
(ComparisonOperator comparisonOperator) Determines how the metric specified byMetricName
is compared to the value specified byThreshold
.dimensions
(Collection<MetricDimension> dimensions) A CloudWatch metric dimension.dimensions
(Consumer<MetricDimension.Builder>... dimensions) A CloudWatch metric dimension.dimensions
(MetricDimension... dimensions) A CloudWatch metric dimension.evaluationPeriods
(Integer evaluationPeriods) The number of periods, in five-minute increments, during which the alarm condition must exist before the alarm triggers automatic scaling activity.metricName
(String metricName) The name of the CloudWatch metric that is watched to determine an alarm condition.The namespace for the CloudWatch metric.The period, in seconds, over which the statistic is applied.The statistic to apply to the metric associated with the alarm.The statistic to apply to the metric associated with the alarm.The value against which the specified statistic is compared.The unit of measure associated with the CloudWatch metric being watched.The unit of measure associated with the CloudWatch metric being watched.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
comparisonOperator
Determines how the metric specified by
MetricName
is compared to the value specified byThreshold
.- Parameters:
comparisonOperator
- Determines how the metric specified byMetricName
is compared to the value specified byThreshold
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
comparisonOperator
Determines how the metric specified by
MetricName
is compared to the value specified byThreshold
.- Parameters:
comparisonOperator
- Determines how the metric specified byMetricName
is compared to the value specified byThreshold
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluationPeriods
The number of periods, in five-minute increments, during which the alarm condition must exist before the alarm triggers automatic scaling activity. The default value is
1
.- Parameters:
evaluationPeriods
- The number of periods, in five-minute increments, during which the alarm condition must exist before the alarm triggers automatic scaling activity. The default value is1
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
The name of the CloudWatch metric that is watched to determine an alarm condition.
- Parameters:
metricName
- The name of the CloudWatch metric that is watched to determine an alarm condition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespace
The namespace for the CloudWatch metric. The default is
AWS/ElasticMapReduce
.- Parameters:
namespace
- The namespace for the CloudWatch metric. The default isAWS/ElasticMapReduce
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
period
The period, in seconds, over which the statistic is applied. CloudWatch metrics for Amazon EMR are emitted every five minutes (300 seconds), so if you specify a CloudWatch metric, specify
300
.- Parameters:
period
- The period, in seconds, over which the statistic is applied. CloudWatch metrics for Amazon EMR are emitted every five minutes (300 seconds), so if you specify a CloudWatch metric, specify300
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statistic
The statistic to apply to the metric associated with the alarm. The default is
AVERAGE
.- Parameters:
statistic
- The statistic to apply to the metric associated with the alarm. The default isAVERAGE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statistic
The statistic to apply to the metric associated with the alarm. The default is
AVERAGE
.- Parameters:
statistic
- The statistic to apply to the metric associated with the alarm. The default isAVERAGE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
threshold
The value against which the specified statistic is compared.
- Parameters:
threshold
- The value against which the specified statistic is compared.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
unit
- The unit of measure associated with the CloudWatch metric being watched. The value specified forUnit
must correspond to the units specified in the CloudWatch metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
unit
- The unit of measure associated with the CloudWatch metric being watched. The value specified forUnit
must correspond to the units specified in the CloudWatch metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dimensions
A CloudWatch metric dimension.
- Parameters:
dimensions
- A CloudWatch metric dimension.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
A CloudWatch metric dimension.
- Parameters:
dimensions
- A CloudWatch metric dimension.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
A CloudWatch metric dimension.
This is a convenience method that creates an instance of theMetricDimension.Builder
avoiding the need to create one manually viaMetricDimension.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensions(List<MetricDimension>)
.- Parameters:
dimensions
- a consumer that will call methods onMetricDimension.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-