Class CfnApplication.InitialCapacityConfigKeyValuePairProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emrserverless.CfnApplication.InitialCapacityConfigKeyValuePairProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.InitialCapacityConfigKeyValuePairProperty>
- Enclosing interface:
CfnApplication.InitialCapacityConfigKeyValuePairProperty
@Stability(Stable)
public static final class CfnApplication.InitialCapacityConfigKeyValuePairProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.InitialCapacityConfigKeyValuePairProperty>
A builder for
CfnApplication.InitialCapacityConfigKeyValuePairProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnApplication.InitialCapacityConfigKeyValuePairProperty.getKey()
value
(IResolvable value) Sets the value ofCfnApplication.InitialCapacityConfigKeyValuePairProperty.getValue()
Sets the value ofCfnApplication.InitialCapacityConfigKeyValuePairProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
@Stability(Stable) public CfnApplication.InitialCapacityConfigKeyValuePairProperty.Builder key(String key) Sets the value ofCfnApplication.InitialCapacityConfigKeyValuePairProperty.getKey()
- Parameters:
key
- The worker type for an analytics framework. This parameter is required. For Spark applications, the key can either be set toDriver
orExecutor
. For Hive applications, it can be set toHiveDriver
orTezTask
.Minimum : 1
Maximum : 50
Pattern :
^[a-zA-Z]+[-_]*[a-zA-Z]+$
- Returns:
this
-
value
@Stability(Stable) public CfnApplication.InitialCapacityConfigKeyValuePairProperty.Builder value(IResolvable value) Sets the value ofCfnApplication.InitialCapacityConfigKeyValuePairProperty.getValue()
- Parameters:
value
- The value for the initial capacity configuration per worker. This parameter is required.- Returns:
this
-
value
@Stability(Stable) public CfnApplication.InitialCapacityConfigKeyValuePairProperty.Builder value(CfnApplication.InitialCapacityConfigProperty value) Sets the value ofCfnApplication.InitialCapacityConfigKeyValuePairProperty.getValue()
- Parameters:
value
- The value for the initial capacity configuration per worker. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.InitialCapacityConfigKeyValuePairProperty>
- Returns:
- a new instance of
CfnApplication.InitialCapacityConfigKeyValuePairProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-