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