Class AlarmEvents.CloudWatchAlarmStateChange.Configuration.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cloudwatch.events.AlarmEvents.CloudWatchAlarmStateChange.Configuration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AlarmEvents.CloudWatchAlarmStateChange.Configuration>
- Enclosing interface:
AlarmEvents.CloudWatchAlarmStateChange.Configuration
@Stability(Experimental)
public static final class AlarmEvents.CloudWatchAlarmStateChange.Configuration.Builder
extends Object
implements software.amazon.jsii.Builder<AlarmEvents.CloudWatchAlarmStateChange.Configuration>
A builder for
AlarmEvents.CloudWatchAlarmStateChange.Configuration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionsSuppressor(List<String> actionsSuppressor) actionsSuppressorExtensionPeriod(List<String> actionsSuppressorExtensionPeriod) actionsSuppressorWaitPeriod(List<String> actionsSuppressorWaitPeriod) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.Configuration.getAlarmRule()build()Builds the configured instance.description(List<String> description) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.Configuration.getDescription()metrics(List<? extends AlarmEvents.CloudWatchAlarmStateChange.ConfigurationItem> metrics) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.Configuration.getMetrics()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionsSuppressor
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.Configuration.Builder actionsSuppressor(List<String> actionsSuppressor) - Parameters:
actionsSuppressor- actionsSuppressor property. Specify an array of string values to match this event if the actual value of actionsSuppressor is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
actionsSuppressorExtensionPeriod
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.Configuration.Builder actionsSuppressorExtensionPeriod(List<String> actionsSuppressorExtensionPeriod) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.Configuration.getActionsSuppressorExtensionPeriod()- Parameters:
actionsSuppressorExtensionPeriod- actionsSuppressorExtensionPeriod property. Specify an array of string values to match this event if the actual value of actionsSuppressorExtensionPeriod is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
actionsSuppressorWaitPeriod
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.Configuration.Builder actionsSuppressorWaitPeriod(List<String> actionsSuppressorWaitPeriod) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.Configuration.getActionsSuppressorWaitPeriod()- Parameters:
actionsSuppressorWaitPeriod- actionsSuppressorWaitPeriod property. Specify an array of string values to match this event if the actual value of actionsSuppressorWaitPeriod is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
alarmRule
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.Configuration.Builder alarmRule(List<String> alarmRule) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.Configuration.getAlarmRule()- Parameters:
alarmRule- alarmRule property. Specify an array of string values to match this event if the actual value of alarmRule is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
description
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.Configuration.Builder description(List<String> description) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.Configuration.getDescription()- Parameters:
description- description property. Specify an array of string values to match this event if the actual value of description is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
metrics
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.Configuration.Builder metrics(List<? extends AlarmEvents.CloudWatchAlarmStateChange.ConfigurationItem> metrics) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.Configuration.getMetrics()- Parameters:
metrics- metrics property. Specify an array of string values to match this event if the actual value of metrics is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AlarmEvents.CloudWatchAlarmStateChange.Configuration>- Returns:
- a new instance of
AlarmEvents.CloudWatchAlarmStateChange.Configuration - Throws:
NullPointerException- if any required attribute was not provided
-