Class CloudWatchAlarmStateChange.Configuration.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cloudwatch.events.CloudWatchAlarmStateChange.Configuration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudWatchAlarmStateChange.Configuration>
- Enclosing interface:
CloudWatchAlarmStateChange.Configuration
@Stability(Experimental)
public static final class CloudWatchAlarmStateChange.Configuration.Builder
extends Object
implements software.amazon.jsii.Builder<CloudWatchAlarmStateChange.Configuration>
A builder for
CloudWatchAlarmStateChange.Configuration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionsSuppressor(List<String> actionsSuppressor) Sets the value ofCloudWatchAlarmStateChange.Configuration.getActionsSuppressor()actionsSuppressorExtensionPeriod(List<String> actionsSuppressorExtensionPeriod) actionsSuppressorWaitPeriod(List<String> actionsSuppressorWaitPeriod) Sets the value ofCloudWatchAlarmStateChange.Configuration.getAlarmRule()build()Builds the configured instance.description(List<String> description) Sets the value ofCloudWatchAlarmStateChange.Configuration.getDescription()metrics(List<? extends CloudWatchAlarmStateChange.ConfigurationItem> metrics) Sets the value ofCloudWatchAlarmStateChange.Configuration.getMetrics()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionsSuppressor
@Stability(Experimental) public CloudWatchAlarmStateChange.Configuration.Builder actionsSuppressor(List<String> actionsSuppressor) Sets the value ofCloudWatchAlarmStateChange.Configuration.getActionsSuppressor()- 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 CloudWatchAlarmStateChange.Configuration.Builder actionsSuppressorExtensionPeriod(List<String> actionsSuppressorExtensionPeriod) - 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 CloudWatchAlarmStateChange.Configuration.Builder actionsSuppressorWaitPeriod(List<String> actionsSuppressorWaitPeriod) - 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 CloudWatchAlarmStateChange.Configuration.Builder alarmRule(List<String> alarmRule) Sets the value ofCloudWatchAlarmStateChange.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 CloudWatchAlarmStateChange.Configuration.Builder description(List<String> description) Sets the value ofCloudWatchAlarmStateChange.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 CloudWatchAlarmStateChange.Configuration.Builder metrics(List<? extends CloudWatchAlarmStateChange.ConfigurationItem> metrics) Sets the value ofCloudWatchAlarmStateChange.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<CloudWatchAlarmStateChange.Configuration>- Returns:
- a new instance of
CloudWatchAlarmStateChange.Configuration - Throws:
NullPointerException- if any required attribute was not provided
-