Class CfnAlarm.WarmUpConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnAlarm.WarmUpConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarm.WarmUpConfigurationProperty>
- Enclosing interface:
CfnAlarm.WarmUpConfigurationProperty
@Stability(Stable)
public static final class CfnAlarm.WarmUpConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarm.WarmUpConfigurationProperty>
A builder for
CfnAlarm.WarmUpConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.onlyStartEvaluatingAfterWarmUpPeriodEnds(Boolean onlyStartEvaluatingAfterWarmUpPeriodEnds) onlyStartEvaluatingAfterWarmUpPeriodEnds(IResolvable onlyStartEvaluatingAfterWarmUpPeriodEnds) warmUpPeriodDurationInMinutes(Number warmUpPeriodDurationInMinutes) Sets the value ofCfnAlarm.WarmUpConfigurationProperty.getWarmUpPeriodDurationInMinutes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onlyStartEvaluatingAfterWarmUpPeriodEnds
@Stability(Stable) public CfnAlarm.WarmUpConfigurationProperty.Builder onlyStartEvaluatingAfterWarmUpPeriodEnds(Boolean onlyStartEvaluatingAfterWarmUpPeriodEnds) Sets the value ofCfnAlarm.WarmUpConfigurationProperty.getOnlyStartEvaluatingAfterWarmUpPeriodEnds()- Parameters:
onlyStartEvaluatingAfterWarmUpPeriodEnds- Specifies whether the alarm waits for the full warm-up period before it starts evaluating. If true, the alarm waits the entire WarmUpPeriodDurationInMinutes before it starts evaluating, even if metric data arrives earlier. If false, the alarm ends the warm-up period early and starts evaluating as soon as it has enough metric data to fill its evaluation window. This is the default behavior.- Returns:
this
-
onlyStartEvaluatingAfterWarmUpPeriodEnds
@Stability(Stable) public CfnAlarm.WarmUpConfigurationProperty.Builder onlyStartEvaluatingAfterWarmUpPeriodEnds(IResolvable onlyStartEvaluatingAfterWarmUpPeriodEnds) Sets the value ofCfnAlarm.WarmUpConfigurationProperty.getOnlyStartEvaluatingAfterWarmUpPeriodEnds()- Parameters:
onlyStartEvaluatingAfterWarmUpPeriodEnds- Specifies whether the alarm waits for the full warm-up period before it starts evaluating. If true, the alarm waits the entire WarmUpPeriodDurationInMinutes before it starts evaluating, even if metric data arrives earlier. If false, the alarm ends the warm-up period early and starts evaluating as soon as it has enough metric data to fill its evaluation window. This is the default behavior.- Returns:
this
-
warmUpPeriodDurationInMinutes
@Stability(Stable) public CfnAlarm.WarmUpConfigurationProperty.Builder warmUpPeriodDurationInMinutes(Number warmUpPeriodDurationInMinutes) Sets the value ofCfnAlarm.WarmUpConfigurationProperty.getWarmUpPeriodDurationInMinutes()- Parameters:
warmUpPeriodDurationInMinutes- The length of the warm-up period, in minutes. For this duration after you create or update the alarm, the alarm stays in INSUFFICIENT_DATA and doesn't perform alarm actions. Valid values range from 1 to 2880 minutes (2 days). You can change this value while the alarm is still in its warm-up period. Changes have no effect after the warm-up period ends.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlarm.WarmUpConfigurationProperty>- Returns:
- a new instance of
CfnAlarm.WarmUpConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-