Class CfnScalingPolicy.MetricDimensionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.MetricDimensionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPolicy.MetricDimensionProperty>
- Enclosing interface:
CfnScalingPolicy.MetricDimensionProperty
@Stability(Stable)
public static final class CfnScalingPolicy.MetricDimensionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPolicy.MetricDimensionProperty>
A builder for
CfnScalingPolicy.MetricDimensionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnScalingPolicy.MetricDimensionProperty.getName()Sets the value ofCfnScalingPolicy.MetricDimensionProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnScalingPolicy.MetricDimensionProperty.getName()- Parameters:
name- The name of the dimension. This parameter is required.- Returns:
this
-
value
Sets the value ofCfnScalingPolicy.MetricDimensionProperty.getValue()- Parameters:
value- The value of the dimension. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPolicy.MetricDimensionProperty>- Returns:
- a new instance of
CfnScalingPolicy.MetricDimensionProperty - Throws:
NullPointerException- if any required attribute was not provided
-