Class CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty>
- Enclosing interface:
CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty
@Stability(Stable)
public static final class CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty>
A builder for
CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.pendingPeriod(Number pendingPeriod) Sets the value ofCfnAlarmPropsMixin.AlarmPromQLCriteriaProperty.getPendingPeriod()Sets the value ofCfnAlarmPropsMixin.AlarmPromQLCriteriaProperty.getQuery()recoveryPeriod(Number recoveryPeriod) Sets the value ofCfnAlarmPropsMixin.AlarmPromQLCriteriaProperty.getRecoveryPeriod()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
pendingPeriod
@Stability(Stable) public CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty.Builder pendingPeriod(Number pendingPeriod) Sets the value ofCfnAlarmPropsMixin.AlarmPromQLCriteriaProperty.getPendingPeriod()- Parameters:
pendingPeriod- The pending period for the alarm.- Returns:
this
-
query
@Stability(Stable) public CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty.Builder query(String query) Sets the value ofCfnAlarmPropsMixin.AlarmPromQLCriteriaProperty.getQuery()- Parameters:
query- The PromQL query string.- Returns:
this
-
recoveryPeriod
@Stability(Stable) public CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty.Builder recoveryPeriod(Number recoveryPeriod) Sets the value ofCfnAlarmPropsMixin.AlarmPromQLCriteriaProperty.getRecoveryPeriod()- Parameters:
recoveryPeriod- The recovery period for the alarm.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty>- Returns:
- a new instance of
CfnAlarmPropsMixin.AlarmPromQLCriteriaProperty - Throws:
NullPointerException- if any required attribute was not provided
-