Interface CloudWatchAlarmDefinition.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CloudWatchAlarmDefinition.Builder,CloudWatchAlarmDefinition>,SdkBuilder<CloudWatchAlarmDefinition.Builder,CloudWatchAlarmDefinition>,SdkPojo
- Enclosing class:
- CloudWatchAlarmDefinition
public static interface CloudWatchAlarmDefinition.Builder extends SdkPojo, CopyableBuilder<CloudWatchAlarmDefinition.Builder,CloudWatchAlarmDefinition>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CloudWatchAlarmDefinition.BuildercomparisonOperator(String comparisonOperator)Determines how the metric specified byMetricNameis compared to the value specified byThreshold.CloudWatchAlarmDefinition.BuildercomparisonOperator(ComparisonOperator comparisonOperator)Determines how the metric specified byMetricNameis compared to the value specified byThreshold.CloudWatchAlarmDefinition.Builderdimensions(Collection<MetricDimension> dimensions)A CloudWatch metric dimension.CloudWatchAlarmDefinition.Builderdimensions(Consumer<MetricDimension.Builder>... dimensions)A CloudWatch metric dimension.CloudWatchAlarmDefinition.Builderdimensions(MetricDimension... dimensions)A CloudWatch metric dimension.CloudWatchAlarmDefinition.BuilderevaluationPeriods(Integer evaluationPeriods)The number of periods, in five-minute increments, during which the alarm condition must exist before the alarm triggers automatic scaling activity.CloudWatchAlarmDefinition.BuildermetricName(String metricName)The name of the CloudWatch metric that is watched to determine an alarm condition.CloudWatchAlarmDefinition.Buildernamespace(String namespace)The namespace for the CloudWatch metric.CloudWatchAlarmDefinition.Builderperiod(Integer period)The period, in seconds, over which the statistic is applied.CloudWatchAlarmDefinition.Builderstatistic(String statistic)The statistic to apply to the metric associated with the alarm.CloudWatchAlarmDefinition.Builderstatistic(Statistic statistic)The statistic to apply to the metric associated with the alarm.CloudWatchAlarmDefinition.Builderthreshold(Double threshold)The value against which the specified statistic is compared.CloudWatchAlarmDefinition.Builderunit(String unit)The unit of measure associated with the CloudWatch metric being watched.CloudWatchAlarmDefinition.Builderunit(Unit unit)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
comparisonOperator
CloudWatchAlarmDefinition.Builder comparisonOperator(String comparisonOperator)
Determines how the metric specified by
MetricNameis compared to the value specified byThreshold.- Parameters:
comparisonOperator- Determines how the metric specified byMetricNameis compared to the value specified byThreshold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ComparisonOperator,ComparisonOperator
-
comparisonOperator
CloudWatchAlarmDefinition.Builder comparisonOperator(ComparisonOperator comparisonOperator)
Determines how the metric specified by
MetricNameis compared to the value specified byThreshold.- Parameters:
comparisonOperator- Determines how the metric specified byMetricNameis compared to the value specified byThreshold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ComparisonOperator,ComparisonOperator
-
evaluationPeriods
CloudWatchAlarmDefinition.Builder 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. 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
CloudWatchAlarmDefinition.Builder metricName(String 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
CloudWatchAlarmDefinition.Builder namespace(String 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
CloudWatchAlarmDefinition.Builder period(Integer 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
CloudWatchAlarmDefinition.Builder statistic(String 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.
-
threshold
CloudWatchAlarmDefinition.Builder threshold(Double 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
CloudWatchAlarmDefinition.Builder unit(String unit)
The unit of measure associated with the CloudWatch metric being watched. The value specified for
Unitmust 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
Unitmust correspond to the units specified in the CloudWatch metric.
-
dimensions
CloudWatchAlarmDefinition.Builder dimensions(Collection<MetricDimension> 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
CloudWatchAlarmDefinition.Builder dimensions(MetricDimension... 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
CloudWatchAlarmDefinition.Builder dimensions(Consumer<MetricDimension.Builder>... dimensions)
A CloudWatch metric dimension.
This is a convenience method that creates an instance of theMetricDimension.Builderavoiding the need to create one manually viaMetricDimension.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#dimensions(List.) - 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:
#dimensions(java.util.Collection)
-
-