Interface CloudWatchAlarmConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CloudWatchAlarmConfiguration.Builder,CloudWatchAlarmConfiguration>,SdkBuilder<CloudWatchAlarmConfiguration.Builder,CloudWatchAlarmConfiguration>,SdkPojo
- Enclosing class:
- CloudWatchAlarmConfiguration
public static interface CloudWatchAlarmConfiguration.Builder extends SdkPojo, CopyableBuilder<CloudWatchAlarmConfiguration.Builder,CloudWatchAlarmConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CloudWatchAlarmConfiguration.BuildercomparisonOperator(String comparisonOperator)For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.CloudWatchAlarmConfiguration.BuildercomparisonOperator(ComparisonOperator comparisonOperator)For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.CloudWatchAlarmConfiguration.Builderdimensions(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.Builderdimensions(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.Builderdimensions(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.BuilderevaluationPeriods(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.BuildermetricName(String metricName)The name of the CloudWatch metric that the alarm is associated with.CloudWatchAlarmConfiguration.Buildernamespace(String namespace)The namespace of the metric that the alarm is associated with.CloudWatchAlarmConfiguration.Builderperiod(Integer period)For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.CloudWatchAlarmConfiguration.Builderstatistic(String statistic)For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.CloudWatchAlarmConfiguration.Builderstatistic(Statistic statistic)For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.CloudWatchAlarmConfiguration.Builderthreshold(Double threshold)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, sdkFields
-
-
-
-
Method Detail
-
evaluationPeriods
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.
- 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
CloudWatchAlarmConfiguration.Builder threshold(Double 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
CloudWatchAlarmConfiguration.Builder comparisonOperator(String 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,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.
- 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,ComparisonOperator
-
period
CloudWatchAlarmConfiguration.Builder period(Integer 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
CloudWatchAlarmConfiguration.Builder metricName(String 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
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.
- 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
CloudWatchAlarmConfiguration.Builder statistic(String statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
-
statistic
CloudWatchAlarmConfiguration.Builder statistic(Statistic statistic)
For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
-
dimensions
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.
- 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
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.
- 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
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 method that creates an instance of theDimension.Builderavoiding the need to create one manually viaDimension.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 onDimension.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#dimensions(java.util.Collection)
-
-