Class CfnScalingPolicy.PredictiveScalingMetricProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.PredictiveScalingMetricProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingMetricProperty>
- Enclosing interface:
CfnScalingPolicy.PredictiveScalingMetricProperty
@Stability(Stable)
public static final class CfnScalingPolicy.PredictiveScalingMetricProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingMetricProperty>
A builder for
CfnScalingPolicy.PredictiveScalingMetricProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dimensions(List<? extends Object> dimensions) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricProperty.getDimensions()dimensions(IResolvable dimensions) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricProperty.getDimensions()metricName(String metricName) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricProperty.getMetricName()Sets the value ofCfnScalingPolicy.PredictiveScalingMetricProperty.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dimensions
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricProperty.Builder dimensions(IResolvable dimensions) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricProperty.getDimensions()- Parameters:
dimensions- Describes the dimensions of the metric.- Returns:
this
-
dimensions
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricProperty.Builder dimensions(List<? extends Object> dimensions) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricProperty.getDimensions()- Parameters:
dimensions- Describes the dimensions of the metric.- Returns:
this
-
metricName
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricProperty.Builder metricName(String metricName) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricProperty.getMetricName()- Parameters:
metricName- The name of the metric.- Returns:
this
-
namespace
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricProperty.Builder namespace(String namespace) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricProperty.getNamespace()- Parameters:
namespace- The namespace of the metric.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingMetricProperty>- Returns:
- a new instance of
CfnScalingPolicy.PredictiveScalingMetricProperty - Throws:
NullPointerException- if any required attribute was not provided
-