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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnCluster.VolumeSpecificationProperty.getIops()
Sets the value ofCfnCluster.VolumeSpecificationProperty.getSizeInGb()
throughput
(Number throughput) Sets the value ofCfnCluster.VolumeSpecificationProperty.getThroughput()
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
-
throughput
@Stability(Stable) public CfnCluster.VolumeSpecificationProperty.Builder throughput(Number throughput) Sets the value ofCfnCluster.VolumeSpecificationProperty.getThroughput()
- Parameters:
throughput
- The throughput, in mebibyte per second (MiB/s). This optional parameter can be a number from 125 - 1000 and is valid only for gp3 volumes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.VolumeSpecificationProperty>
- Returns:
- a new instance of
CfnCluster.VolumeSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-