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.getDiskType()Sets the value ofCfnApplication.WorkerConfigurationProperty.getMemory()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cpu
Sets the value ofCfnApplication.WorkerConfigurationProperty.getCpu()- Parameters:
cpu- The CPU requirements of the worker configuration. This parameter is required. Each worker can have 1, 2, 4, 8, or 16 vCPUs.- Returns:
this
-
memory
Sets the value ofCfnApplication.WorkerConfigurationProperty.getMemory()- Parameters:
memory- The memory requirements of the worker configuration. This parameter is required.- Returns:
this
-
disk
Sets the value ofCfnApplication.WorkerConfigurationProperty.getDisk()- Parameters:
disk- The disk requirements of the worker configuration.- Returns:
this
-
diskType
@Stability(Stable) public CfnApplication.WorkerConfigurationProperty.Builder diskType(String diskType) Sets the value ofCfnApplication.WorkerConfigurationProperty.getDiskType()- Parameters:
diskType- The disk type for every worker instance of the work type. Shuffle optimized disks have higher performance characteristics and are better for shuffle heavy workloads. Default isSTANDARD.- 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
-