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