Class CfnApplication.InitialCapacityConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emrserverless.CfnApplication.InitialCapacityConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.InitialCapacityConfigProperty>
- Enclosing interface:
CfnApplication.InitialCapacityConfigProperty
@Stability(Stable)
public static final class CfnApplication.InitialCapacityConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.InitialCapacityConfigProperty>
A builder for
CfnApplication.InitialCapacityConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.workerConfiguration
(IResolvable workerConfiguration) Sets the value ofCfnApplication.InitialCapacityConfigProperty.getWorkerConfiguration()
workerConfiguration
(CfnApplication.WorkerConfigurationProperty workerConfiguration) Sets the value ofCfnApplication.InitialCapacityConfigProperty.getWorkerConfiguration()
workerCount
(Number workerCount) Sets the value ofCfnApplication.InitialCapacityConfigProperty.getWorkerCount()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
workerConfiguration
@Stability(Stable) public CfnApplication.InitialCapacityConfigProperty.Builder workerConfiguration(IResolvable workerConfiguration) Sets the value ofCfnApplication.InitialCapacityConfigProperty.getWorkerConfiguration()
- Parameters:
workerConfiguration
- The resource configuration of the initial capacity configuration. This parameter is required.- Returns:
this
-
workerConfiguration
@Stability(Stable) public CfnApplication.InitialCapacityConfigProperty.Builder workerConfiguration(CfnApplication.WorkerConfigurationProperty workerConfiguration) Sets the value ofCfnApplication.InitialCapacityConfigProperty.getWorkerConfiguration()
- Parameters:
workerConfiguration
- The resource configuration of the initial capacity configuration. This parameter is required.- Returns:
this
-
workerCount
@Stability(Stable) public CfnApplication.InitialCapacityConfigProperty.Builder workerCount(Number workerCount) Sets the value ofCfnApplication.InitialCapacityConfigProperty.getWorkerCount()
- Parameters:
workerCount
- The number of workers in the initial capacity configuration. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.InitialCapacityConfigProperty>
- Returns:
- a new instance of
CfnApplication.InitialCapacityConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-