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