Class CfnApplication.WorkerConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emrserverless.CfnApplication.WorkerConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.WorkerConfigurationProperty>
- Enclosing interface:
CfnApplication.WorkerConfigurationProperty
@Stability(Stable)
public static final class CfnApplication.WorkerConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.WorkerConfigurationProperty>
A builder for
CfnApplication.WorkerConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnApplication.WorkerConfigurationProperty.getCpu()Sets the value ofCfnApplication.WorkerConfigurationProperty.getDisk()Sets the value ofCfnApplication.WorkerConfigurationProperty.getMemory()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cpu
Sets the value ofCfnApplication.WorkerConfigurationProperty.getCpu()- Parameters:
cpu- Per worker CPU resource. This parameter is required. vCPU is the only supported unit and specifying vCPU is optional.- Returns:
this
-
memory
Sets the value ofCfnApplication.WorkerConfigurationProperty.getMemory()- Parameters:
memory- Per worker memory resource. This parameter is required. GB is the only supported unit and specifying GB is optional.- Returns:
this
-
disk
Sets the value ofCfnApplication.WorkerConfigurationProperty.getDisk()- Parameters:
disk- Per worker Disk resource. GB is the only supported unit and specifying GB is optional- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplication.WorkerConfigurationProperty>- Returns:
- a new instance of
CfnApplication.WorkerConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-