Class CfnServiceLevelObjective.MetricProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjective.MetricProperty>
- Enclosing interface:
CfnServiceLevelObjective.MetricProperty
@Stability(Stable)
public static final class CfnServiceLevelObjective.MetricProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjective.MetricProperty>
A builder for
CfnServiceLevelObjective.MetricProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dimensions(List<? extends Object> dimensions) Sets the value ofCfnServiceLevelObjective.MetricProperty.getDimensions()dimensions(IResolvable dimensions) Sets the value ofCfnServiceLevelObjective.MetricProperty.getDimensions()metricName(String metricName) Sets the value ofCfnServiceLevelObjective.MetricProperty.getMetricName()Sets the value ofCfnServiceLevelObjective.MetricProperty.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dimensions
@Stability(Stable) public CfnServiceLevelObjective.MetricProperty.Builder dimensions(IResolvable dimensions) Sets the value ofCfnServiceLevelObjective.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 CfnServiceLevelObjective.MetricProperty.Builder dimensions(List<? extends Object> dimensions) Sets the value ofCfnServiceLevelObjective.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 CfnServiceLevelObjective.MetricProperty.Builder metricName(String metricName) Sets the value ofCfnServiceLevelObjective.MetricProperty.getMetricName()- Parameters:
metricName- The name of the metric to use.- Returns:
this
-
namespace
@Stability(Stable) public CfnServiceLevelObjective.MetricProperty.Builder namespace(String namespace) Sets the value ofCfnServiceLevelObjective.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<CfnServiceLevelObjective.MetricProperty>- Returns:
- a new instance of
CfnServiceLevelObjective.MetricProperty - Throws:
NullPointerException- if any required attribute was not provided
-