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