Class CfnAlarmMuteRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnAlarmMuteRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmMuteRuleProps>
- Enclosing interface:
CfnAlarmMuteRuleProps
@Stability(Stable)
public static final class CfnAlarmMuteRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmMuteRuleProps>
A builder for
CfnAlarmMuteRuleProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnAlarmMuteRuleProps.getDescription()expireDate(String expireDate) Sets the value ofCfnAlarmMuteRuleProps.getExpireDate()muteTargets(IResolvable muteTargets) Sets the value ofCfnAlarmMuteRuleProps.getMuteTargets()muteTargets(CfnAlarmMuteRule.MuteTargetsProperty muteTargets) Sets the value ofCfnAlarmMuteRuleProps.getMuteTargets()Sets the value ofCfnAlarmMuteRuleProps.getName()rule(IResolvable rule) Sets the value ofCfnAlarmMuteRuleProps.getRule()Sets the value ofCfnAlarmMuteRuleProps.getRule()Sets the value ofCfnAlarmMuteRuleProps.getStartDate()Sets the value ofCfnAlarmMuteRuleProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rule
Sets the value ofCfnAlarmMuteRuleProps.getRule()- Parameters:
rule- The rule for the mute. This parameter is required.- Returns:
this
-
rule
Sets the value ofCfnAlarmMuteRuleProps.getRule()- Parameters:
rule- The rule for the mute. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnAlarmMuteRuleProps.getDescription()- Parameters:
description- The description of the AlarmMuteRule.- Returns:
this
-
expireDate
Sets the value ofCfnAlarmMuteRuleProps.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 ofCfnAlarmMuteRuleProps.getMuteTargets()- Parameters:
muteTargets- Targets to be muted.- Returns:
this
-
muteTargets
@Stability(Stable) public CfnAlarmMuteRuleProps.Builder muteTargets(CfnAlarmMuteRule.MuteTargetsProperty muteTargets) Sets the value ofCfnAlarmMuteRuleProps.getMuteTargets()- Parameters:
muteTargets- Targets to be muted.- Returns:
this
-
name
Sets the value ofCfnAlarmMuteRuleProps.getName()- Parameters:
name- The name of the AlarmMuteRule.- Returns:
this
-
startDate
Sets the value ofCfnAlarmMuteRuleProps.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 ofCfnAlarmMuteRuleProps.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<CfnAlarmMuteRuleProps>- Returns:
- a new instance of
CfnAlarmMuteRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-