Class CloudWatchAlarmConfigurationChange.MetricStat.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cloudwatch.events.CloudWatchAlarmConfigurationChange.MetricStat.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudWatchAlarmConfigurationChange.MetricStat>
- Enclosing interface:
CloudWatchAlarmConfigurationChange.MetricStat
@Stability(Experimental)
public static final class CloudWatchAlarmConfigurationChange.MetricStat.Builder
extends Object
implements software.amazon.jsii.Builder<CloudWatchAlarmConfigurationChange.MetricStat>
A builder for
CloudWatchAlarmConfigurationChange.MetricStat-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCloudWatchAlarmConfigurationChange.MetricStat.getMetric()Sets the value ofCloudWatchAlarmConfigurationChange.MetricStat.getPeriod()Sets the value ofCloudWatchAlarmConfigurationChange.MetricStat.getStat()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metric
@Stability(Experimental) public CloudWatchAlarmConfigurationChange.MetricStat.Builder metric(CloudWatchAlarmConfigurationChange.Metric metric) Sets the value ofCloudWatchAlarmConfigurationChange.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 CloudWatchAlarmConfigurationChange.MetricStat.Builder period(List<String> period) Sets the value ofCloudWatchAlarmConfigurationChange.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 CloudWatchAlarmConfigurationChange.MetricStat.Builder stat(List<String> stat) Sets the value ofCloudWatchAlarmConfigurationChange.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<CloudWatchAlarmConfigurationChange.MetricStat>- Returns:
- a new instance of
CloudWatchAlarmConfigurationChange.MetricStat - Throws:
NullPointerException- if any required attribute was not provided
-