Class AlarmMuteRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.AlarmMuteRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AlarmMuteRuleProps>
- Enclosing interface:
AlarmMuteRuleProps
@Stability(Stable)
public static final class AlarmMuteRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<AlarmMuteRuleProps>
A builder for
AlarmMuteRuleProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalarmMuteRuleName(String alarmMuteRuleName) Sets the value ofAlarmMuteRuleOptions.getAlarmMuteRuleName()Sets the value ofAlarmMuteRuleProps.getAlarms()build()Builds the configured instance.description(String description) Sets the value ofAlarmMuteRuleOptions.getDescription()Sets the value ofAlarmMuteRuleOptions.getDuration()expire(CalendarDateTime expire) Sets the value ofAlarmMuteRuleOptions.getExpire()schedule(ScheduleExpression schedule) Sets the value ofAlarmMuteRuleOptions.getSchedule()start(CalendarDateTime start) Sets the value ofAlarmMuteRuleOptions.getStart()Sets the value ofAlarmMuteRuleOptions.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarms
Sets the value ofAlarmMuteRuleProps.getAlarms()- Parameters:
alarms- The list of alarms that this mute rule targets. You can specify up to 100 alarms.- Returns:
this
-
duration
Sets the value ofAlarmMuteRuleOptions.getDuration()- Parameters:
duration- The length of time that alarms remain muted when the schedule activates. This parameter is required. Minimum: 1 minute, Maximum: 15 days- Returns:
this
-
schedule
Sets the value ofAlarmMuteRuleOptions.getSchedule()- Parameters:
schedule- The schedule defines when alarms should be muted. This parameter is required.- Returns:
this
-
alarmMuteRuleName
Sets the value ofAlarmMuteRuleOptions.getAlarmMuteRuleName()- Parameters:
alarmMuteRuleName- The name of the alarm mute rule. This name must be unique within your AWS account and region.- Returns:
this
-
description
Sets the value ofAlarmMuteRuleOptions.getDescription()- Parameters:
description- A description of the alarm mute rule that helps you identify its purpose.- Returns:
this
-
expire
Sets the value ofAlarmMuteRuleOptions.getExpire()- Parameters:
expire- The date and time when the mute rule expires and is no longer evaluated. After this time, the rule status becomes EXPIRED and will no longer mute the targeted alarms.This date and time is interpreted according to the schedule timezone, or UTC if no timezone is specified.
- Returns:
this
-
start
Sets the value ofAlarmMuteRuleOptions.getStart()- Parameters:
start- The date and time after which the mute rule takes effect. If not specified, the mute rule takes effect immediately upon creation and the mutes are applied as per the schedule expression.This date and time is interpreted according to the schedule timezone, or UTC if no timezone is specified.
- Returns:
this
-
tags
Sets the value ofAlarmMuteRuleOptions.getTags()- Parameters:
tags- A list of tags associated with the alarm mute rule. Tags help you organize and categorize your AWS resources.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AlarmMuteRuleProps>- Returns:
- a new instance of
AlarmMuteRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-