Class CfnServiceLevelObjectivePropsMixin.MetricProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationsignals.CfnServiceLevelObjectivePropsMixin.MetricProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.MetricProperty>
- Enclosing interface:
CfnServiceLevelObjectivePropsMixin.MetricProperty
@Stability(Stable)
public static final class CfnServiceLevelObjectivePropsMixin.MetricProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.MetricProperty>
A builder for
CfnServiceLevelObjectivePropsMixin.MetricProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dimensions(List<? extends Object> dimensions) Sets the value ofCfnServiceLevelObjectivePropsMixin.MetricProperty.getDimensions()dimensions(IResolvable dimensions) Sets the value ofCfnServiceLevelObjectivePropsMixin.MetricProperty.getDimensions()metricName(String metricName) Sets the value ofCfnServiceLevelObjectivePropsMixin.MetricProperty.getMetricName()Sets the value ofCfnServiceLevelObjectivePropsMixin.MetricProperty.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dimensions
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MetricProperty.Builder dimensions(IResolvable dimensions) Sets the value ofCfnServiceLevelObjectivePropsMixin.MetricProperty.getDimensions()- Parameters:
dimensions- An array of one or more dimensions to use to define the metric that you want to use. For more information, see Dimensions .- Returns:
this
-
dimensions
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MetricProperty.Builder dimensions(List<? extends Object> dimensions) Sets the value ofCfnServiceLevelObjectivePropsMixin.MetricProperty.getDimensions()- Parameters:
dimensions- An array of one or more dimensions to use to define the metric that you want to use. For more information, see Dimensions .- Returns:
this
-
metricName
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MetricProperty.Builder metricName(String metricName) Sets the value ofCfnServiceLevelObjectivePropsMixin.MetricProperty.getMetricName()- Parameters:
metricName- The name of the metric to use.- Returns:
this
-
namespace
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MetricProperty.Builder namespace(String namespace) Sets the value ofCfnServiceLevelObjectivePropsMixin.MetricProperty.getNamespace()- Parameters:
namespace- The namespace of the metric. For more information, see Namespaces .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.MetricProperty>- Returns:
- a new instance of
CfnServiceLevelObjectivePropsMixin.MetricProperty - Throws:
NullPointerException- if any required attribute was not provided
-