Class EmrCreateCluster.VolumeSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.VolumeSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrCreateCluster.VolumeSpecificationProperty>
- Enclosing interface:
EmrCreateCluster.VolumeSpecificationProperty
@Stability(Stable)
public static final class EmrCreateCluster.VolumeSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<EmrCreateCluster.VolumeSpecificationProperty>
A builder for
EmrCreateCluster.VolumeSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofEmrCreateCluster.VolumeSpecificationProperty.getIops()volumeSize(Size volumeSize) Sets the value ofEmrCreateCluster.VolumeSpecificationProperty.getVolumeSize()volumeType(EmrCreateCluster.EbsBlockDeviceVolumeType volumeType) Sets the value ofEmrCreateCluster.VolumeSpecificationProperty.getVolumeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
volumeSize
@Stability(Stable) public EmrCreateCluster.VolumeSpecificationProperty.Builder volumeSize(Size volumeSize) Sets the value ofEmrCreateCluster.VolumeSpecificationProperty.getVolumeSize()- Parameters:
volumeSize- The volume size. This parameter is required. If the volume type is EBS-optimized, the minimum value is 10GiB. Maximum size is 1TiB- Returns:
this
-
volumeType
@Stability(Stable) public EmrCreateCluster.VolumeSpecificationProperty.Builder volumeType(EmrCreateCluster.EbsBlockDeviceVolumeType volumeType) Sets the value ofEmrCreateCluster.VolumeSpecificationProperty.getVolumeType()- Parameters:
volumeType- The volume type. This parameter is required. Volume types supported are gp2, io1, standard.- Returns:
this
-
iops
Sets the value ofEmrCreateCluster.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<EmrCreateCluster.VolumeSpecificationProperty>- Returns:
- a new instance of
EmrCreateCluster.VolumeSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-