Interface CloudWatchAlarmConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CloudWatchAlarmConfiguration.Builder,
,CloudWatchAlarmConfiguration> SdkBuilder<CloudWatchAlarmConfiguration.Builder,
,CloudWatchAlarmConfiguration> SdkPojo
- Enclosing class:
CloudWatchAlarmConfiguration
-
Method Summary
Modifier and TypeMethodDescriptioncomparisonOperator
(String comparisonOperator) For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.comparisonOperator
(ComparisonOperator comparisonOperator) For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.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.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.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.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.metricName
(String metricName) The name of the CloudWatch metric that the alarm is associated with.The namespace of the metric that the alarm is associated with.For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.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 Details
-
evaluationPeriods
For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is compared to the threshold.
- Parameters:
evaluationPeriods
- For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is compared to the threshold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
threshold
For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.
- Parameters:
threshold
- For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
comparisonOperator
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.
- Parameters:
comparisonOperator
- For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
comparisonOperator
For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.
- Parameters:
comparisonOperator
- For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
period
For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.
- Parameters:
period
- For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
The name of the CloudWatch metric that the alarm is associated with.
- Parameters:
metricName
- The name of the CloudWatch metric that the alarm is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statistic
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
- Parameters:
statistic
- For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statistic
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
- Parameters:
statistic
- For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 method that creates an instance of theDimension.Builder
avoiding the need to create one manually viaDimension.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensions(List<Dimension>)
.- Parameters:
dimensions
- a consumer that will call methods onDimension.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-