Class CfnCluster.VolumeSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.VolumeSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.VolumeSpecificationProperty>
- Enclosing interface:
- CfnCluster.VolumeSpecificationProperty
@Stability(Stable)
public static final class CfnCluster.VolumeSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.VolumeSpecificationProperty>
A builder for
CfnCluster.VolumeSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCluster.VolumeSpecificationProperty.getIops()Sets the value ofCfnCluster.VolumeSpecificationProperty.getSizeInGb()volumeType(String volumeType) Sets the value ofCfnCluster.VolumeSpecificationProperty.getVolumeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sizeInGb
Sets the value ofCfnCluster.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 CfnCluster.VolumeSpecificationProperty.Builder volumeType(String volumeType) Sets the value ofCfnCluster.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
Sets the value ofCfnCluster.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.VolumeSpecificationProperty>- Returns:
- a new instance of
CfnCluster.VolumeSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-