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