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
-
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.getDiskType()
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
-
diskType
@Stability(Stable) public CfnApplication.WorkerConfigurationProperty.Builder diskType(String diskType) Sets the value ofCfnApplication.WorkerConfigurationProperty.getDiskType()
- Parameters:
diskType
- Per worker DiskType resource. Shuffle optimized and Standard are only supported types and specifying diskType is optional- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.WorkerConfigurationProperty>
- Returns:
- a new instance of
CfnApplication.WorkerConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-