Class CfnInstanceGroupConfig.VolumeSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.VolumeSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceGroupConfig.VolumeSpecificationProperty>
- Enclosing interface:
CfnInstanceGroupConfig.VolumeSpecificationProperty
@Stability(Stable)
public static final class CfnInstanceGroupConfig.VolumeSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceGroupConfig.VolumeSpecificationProperty>
A builder for
CfnInstanceGroupConfig.VolumeSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnInstanceGroupConfig.VolumeSpecificationProperty.getIops()
Sets the value ofCfnInstanceGroupConfig.VolumeSpecificationProperty.getSizeInGb()
volumeType
(String volumeType) Sets the value ofCfnInstanceGroupConfig.VolumeSpecificationProperty.getVolumeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sizeInGb
@Stability(Stable) public CfnInstanceGroupConfig.VolumeSpecificationProperty.Builder sizeInGb(Number sizeInGb) Sets the value ofCfnInstanceGroupConfig.VolumeSpecificationProperty.getSizeInGb()
- Parameters:
sizeInGb
- The volume size, in gibibytes (GiB). This parameter is required. This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10.- Returns:
this
-
volumeType
@Stability(Stable) public CfnInstanceGroupConfig.VolumeSpecificationProperty.Builder volumeType(String volumeType) Sets the value ofCfnInstanceGroupConfig.VolumeSpecificationProperty.getVolumeType()
- Parameters:
volumeType
- The volume type. This parameter is required. Volume types supported are gp3, gp2, io1, st1, sc1, and standard.- Returns:
this
-
iops
@Stability(Stable) public CfnInstanceGroupConfig.VolumeSpecificationProperty.Builder iops(Number iops) Sets the value ofCfnInstanceGroupConfig.VolumeSpecificationProperty.getIops()
- Parameters:
iops
- The number of I/O operations per second (IOPS) that the volume supports.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInstanceGroupConfig.VolumeSpecificationProperty>
- Returns:
- a new instance of
CfnInstanceGroupConfig.VolumeSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-