Class CfnAlarmMuteRuleMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.CfnAlarmMuteRuleMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmMuteRuleMixinProps>
- Enclosing interface:
CfnAlarmMuteRuleMixinProps
@Stability(Stable)
public static final class CfnAlarmMuteRuleMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmMuteRuleMixinProps>
A builder for
CfnAlarmMuteRuleMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnAlarmMuteRuleMixinProps.getDescription()expireDate(String expireDate) Sets the value ofCfnAlarmMuteRuleMixinProps.getExpireDate()Sets the value ofCfnAlarmMuteRuleMixinProps.getMuteTargets()muteTargets(IResolvable muteTargets) Sets the value ofCfnAlarmMuteRuleMixinProps.getMuteTargets()Sets the value ofCfnAlarmMuteRuleMixinProps.getName()Sets the value ofCfnAlarmMuteRuleMixinProps.getRule()rule(IResolvable rule) Sets the value ofCfnAlarmMuteRuleMixinProps.getRule()Sets the value ofCfnAlarmMuteRuleMixinProps.getStartDate()Sets the value ofCfnAlarmMuteRuleMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnAlarmMuteRuleMixinProps.getDescription()- Parameters:
description- The description of the AlarmMuteRule.- Returns:
this
-
expireDate
Sets the value ofCfnAlarmMuteRuleMixinProps.getExpireDate()- Parameters:
expireDate- The date, with the same timezone offset as "ScheduleTimezone" after which the alarm mute rule will be expired.- Returns:
this
-
muteTargets
Sets the value ofCfnAlarmMuteRuleMixinProps.getMuteTargets()- Parameters:
muteTargets- Targets to be muted.- Returns:
this
-
muteTargets
@Stability(Stable) public CfnAlarmMuteRuleMixinProps.Builder muteTargets(CfnAlarmMuteRulePropsMixin.MuteTargetsProperty muteTargets) Sets the value ofCfnAlarmMuteRuleMixinProps.getMuteTargets()- Parameters:
muteTargets- Targets to be muted.- Returns:
this
-
name
Sets the value ofCfnAlarmMuteRuleMixinProps.getName()- Parameters:
name- The name of the AlarmMuteRule.- Returns:
this
-
rule
Sets the value ofCfnAlarmMuteRuleMixinProps.getRule()- Parameters:
rule- The rule for the mute.- Returns:
this
-
rule
@Stability(Stable) public CfnAlarmMuteRuleMixinProps.Builder rule(CfnAlarmMuteRulePropsMixin.RuleProperty rule) Sets the value ofCfnAlarmMuteRuleMixinProps.getRule()- Parameters:
rule- The rule for the mute.- Returns:
this
-
startDate
Sets the value ofCfnAlarmMuteRuleMixinProps.getStartDate()- Parameters:
startDate- The date, with the same timezone offset as "ScheduleTimezone", after which the alarm mute rule will become active.- Returns:
this
-
tags
Sets the value ofCfnAlarmMuteRuleMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlarmMuteRuleMixinProps>- Returns:
- a new instance of
CfnAlarmMuteRuleMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-