Class AlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cloudwatch.events.AlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat>
- Enclosing interface:
AlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat
@Stability(Experimental)
public static final class AlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat.Builder
extends Object
implements software.amazon.jsii.Builder<AlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofAlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat.getMetric()Sets the value ofAlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat.getPeriod()Sets the value ofAlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat.getStat()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metric
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat.Builder metric(AlarmEvents.CloudWatchAlarmConfigurationChange.Metric metric) Sets the value ofAlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat.getMetric()- Parameters:
metric- metric property. Specify an array of string values to match this event if the actual value of metric is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
period
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat.Builder period(List<String> period) Sets the value ofAlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat.getPeriod()- Parameters:
period- period property. Specify an array of string values to match this event if the actual value of period is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
stat
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat.Builder stat(List<String> stat) Sets the value ofAlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat.getStat()- Parameters:
stat- stat property. Specify an array of string values to match this event if the actual value of stat 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.CloudWatchAlarmConfigurationChange.MetricStat>- Returns:
- a new instance of
AlarmEvents.CloudWatchAlarmConfigurationChange.MetricStat - Throws:
NullPointerException- if any required attribute was not provided
-