Class CfnAlarmMuteRulePropsMixin.ScheduleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.CfnAlarmMuteRulePropsMixin.ScheduleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmMuteRulePropsMixin.ScheduleProperty>
- Enclosing interface:
CfnAlarmMuteRulePropsMixin.ScheduleProperty
@Stability(Stable)
public static final class CfnAlarmMuteRulePropsMixin.ScheduleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmMuteRulePropsMixin.ScheduleProperty>
A builder for
CfnAlarmMuteRulePropsMixin.ScheduleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAlarmMuteRulePropsMixin.ScheduleProperty.getDuration()expression(String expression) Sets the value ofCfnAlarmMuteRulePropsMixin.ScheduleProperty.getExpression()Sets the value ofCfnAlarmMuteRulePropsMixin.ScheduleProperty.getTimezone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
duration
@Stability(Stable) public CfnAlarmMuteRulePropsMixin.ScheduleProperty.Builder duration(String duration) Sets the value ofCfnAlarmMuteRulePropsMixin.ScheduleProperty.getDuration()- Parameters:
duration- The duration of the schedule when it triggers.- Returns:
this
-
expression
@Stability(Stable) public CfnAlarmMuteRulePropsMixin.ScheduleProperty.Builder expression(String expression) Sets the value ofCfnAlarmMuteRulePropsMixin.ScheduleProperty.getExpression()- Parameters:
expression- The expression of the schedule.- Returns:
this
-
timezone
@Stability(Stable) public CfnAlarmMuteRulePropsMixin.ScheduleProperty.Builder timezone(String timezone) Sets the value ofCfnAlarmMuteRulePropsMixin.ScheduleProperty.getTimezone()- Parameters:
timezone- The timezone of the schedule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlarmMuteRulePropsMixin.ScheduleProperty>- Returns:
- a new instance of
CfnAlarmMuteRulePropsMixin.ScheduleProperty - Throws:
NullPointerException- if any required attribute was not provided
-