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