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