Class CfnApplicationPropsMixin.WorkerConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.emrserverless.CfnApplicationPropsMixin.WorkerConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationPropsMixin.WorkerConfigurationProperty>
- Enclosing interface:
CfnApplicationPropsMixin.WorkerConfigurationProperty
@Stability(Stable)
public static final class CfnApplicationPropsMixin.WorkerConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationPropsMixin.WorkerConfigurationProperty>
A builder for
CfnApplicationPropsMixin.WorkerConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnApplicationPropsMixin.WorkerConfigurationProperty.getCpu()Sets the value ofCfnApplicationPropsMixin.WorkerConfigurationProperty.getDisk()Sets the value ofCfnApplicationPropsMixin.WorkerConfigurationProperty.getDiskType()Sets the value ofCfnApplicationPropsMixin.WorkerConfigurationProperty.getMemory()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cpu
@Stability(Stable) public CfnApplicationPropsMixin.WorkerConfigurationProperty.Builder cpu(String cpu) Sets the value ofCfnApplicationPropsMixin.WorkerConfigurationProperty.getCpu()- Parameters:
cpu- The CPU requirements of the worker configuration. Each worker can have 1, 2, 4, 8, or 16 vCPUs.- Returns:
this
-
disk
@Stability(Stable) public CfnApplicationPropsMixin.WorkerConfigurationProperty.Builder disk(String disk) Sets the value ofCfnApplicationPropsMixin.WorkerConfigurationProperty.getDisk()- Parameters:
disk- The disk requirements of the worker configuration.- Returns:
this
-
diskType
@Stability(Stable) public CfnApplicationPropsMixin.WorkerConfigurationProperty.Builder diskType(String diskType) Sets the value ofCfnApplicationPropsMixin.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
-
memory
@Stability(Stable) public CfnApplicationPropsMixin.WorkerConfigurationProperty.Builder memory(String memory) Sets the value ofCfnApplicationPropsMixin.WorkerConfigurationProperty.getMemory()- Parameters:
memory- The memory requirements of the worker configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplicationPropsMixin.WorkerConfigurationProperty>- Returns:
- a new instance of
CfnApplicationPropsMixin.WorkerConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-