Class CloudWatchAlarmConfigurationChange.Configuration.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cloudwatch.events.CloudWatchAlarmConfigurationChange.Configuration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudWatchAlarmConfigurationChange.Configuration>
- Enclosing interface:
CloudWatchAlarmConfigurationChange.Configuration
@Stability(Experimental)
public static final class CloudWatchAlarmConfigurationChange.Configuration.Builder
extends Object
implements software.amazon.jsii.Builder<CloudWatchAlarmConfigurationChange.Configuration>
A builder for
CloudWatchAlarmConfigurationChange.Configuration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionsEnabled(List<String> actionsEnabled) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getActionsEnabled()actionsSuppressor(List<String> actionsSuppressor) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getActionsSuppressor()actionsSuppressorExtensionPeriod(List<String> actionsSuppressorExtensionPeriod) actionsSuppressorWaitPeriod(List<String> actionsSuppressorWaitPeriod) alarmActions(List<String> alarmActions) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getAlarmActions()Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getAlarmName()Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getAlarmRule()build()Builds the configured instance.comparisonOperator(List<String> comparisonOperator) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getComparisonOperator()datapointsToAlarm(List<String> datapointsToAlarm) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getDatapointsToAlarm()description(List<String> description) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getDescription()evaluateLowSampleCountPercentile(List<String> evaluateLowSampleCountPercentile) evaluationPeriods(List<String> evaluationPeriods) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getEvaluationPeriods()insufficientDataActions(List<String> insufficientDataActions) metrics(List<? extends CloudWatchAlarmConfigurationChange.ConfigurationItem> metrics) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getMetrics()Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getOkActions()Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getThreshold()Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getTimestamp()treatMissingData(List<String> treatMissingData) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getTreatMissingData()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionsEnabled
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.Configuration.Builder actionsEnabled(List<String> actionsEnabled) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getActionsEnabled()- Parameters:
actionsEnabled- actionsEnabled property. Specify an array of string values to match this event if the actual value of actionsEnabled is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
actionsSuppressor
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.Configuration.Builder actionsSuppressor(List<String> actionsSuppressor) Sets the value ofCloudWatchAlarmConfigurationChange.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 CloudWatchAlarmConfigurationChange.Configuration.Builder actionsSuppressorExtensionPeriod(List<String> actionsSuppressorExtensionPeriod) Sets the value ofCloudWatchAlarmConfigurationChange.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 CloudWatchAlarmConfigurationChange.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
-
alarmActions
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.Configuration.Builder alarmActions(List<String> alarmActions) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getAlarmActions()- Parameters:
alarmActions- alarmActions property. Specify an array of string values to match this event if the actual value of alarmActions is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
alarmName
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.Configuration.Builder alarmName(List<String> alarmName) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getAlarmName()- Parameters:
alarmName- alarmName property. Specify an array of string values to match this event if the actual value of alarmName 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 CloudWatchAlarmConfigurationChange.Configuration.Builder alarmRule(List<String> alarmRule) Sets the value ofCloudWatchAlarmConfigurationChange.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
-
comparisonOperator
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.Configuration.Builder comparisonOperator(List<String> comparisonOperator) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getComparisonOperator()- Parameters:
comparisonOperator- comparisonOperator property. Specify an array of string values to match this event if the actual value of comparisonOperator is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
datapointsToAlarm
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.Configuration.Builder datapointsToAlarm(List<String> datapointsToAlarm) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getDatapointsToAlarm()- Parameters:
datapointsToAlarm- datapointsToAlarm property. Specify an array of string values to match this event if the actual value of datapointsToAlarm 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 CloudWatchAlarmConfigurationChange.Configuration.Builder description(List<String> description) Sets the value ofCloudWatchAlarmConfigurationChange.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
-
evaluateLowSampleCountPercentile
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.Configuration.Builder evaluateLowSampleCountPercentile(List<String> evaluateLowSampleCountPercentile) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getEvaluateLowSampleCountPercentile()- Parameters:
evaluateLowSampleCountPercentile- evaluateLowSampleCountPercentile property. Specify an array of string values to match this event if the actual value of evaluateLowSampleCountPercentile is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
evaluationPeriods
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.Configuration.Builder evaluationPeriods(List<String> evaluationPeriods) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getEvaluationPeriods()- Parameters:
evaluationPeriods- evaluationPeriods property. Specify an array of string values to match this event if the actual value of evaluationPeriods is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
insufficientDataActions
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.Configuration.Builder insufficientDataActions(List<String> insufficientDataActions) - Parameters:
insufficientDataActions- insufficientDataActions property. Specify an array of string values to match this event if the actual value of insufficientDataActions 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 CloudWatchAlarmConfigurationChange.Configuration.Builder metrics(List<? extends CloudWatchAlarmConfigurationChange.ConfigurationItem> metrics) Sets the value ofCloudWatchAlarmConfigurationChange.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
-
okActions
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.Configuration.Builder okActions(List<String> okActions) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getOkActions()- Parameters:
okActions- okActions property. Specify an array of string values to match this event if the actual value of okActions is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
threshold
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.Configuration.Builder threshold(List<String> threshold) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getThreshold()- Parameters:
threshold- threshold property. Specify an array of string values to match this event if the actual value of threshold is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
timestamp
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.Configuration.Builder timestamp(List<String> timestamp) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getTimestamp()- Parameters:
timestamp- timestamp property. Specify an array of string values to match this event if the actual value of timestamp is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
treatMissingData
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.Configuration.Builder treatMissingData(List<String> treatMissingData) Sets the value ofCloudWatchAlarmConfigurationChange.Configuration.getTreatMissingData()- Parameters:
treatMissingData- treatMissingData property. Specify an array of string values to match this event if the actual value of treatMissingData 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<CloudWatchAlarmConfigurationChange.Configuration>- Returns:
- a new instance of
CloudWatchAlarmConfigurationChange.Configuration - Throws:
NullPointerException- if any required attribute was not provided
-