Class EmrCreateCluster.EbsBlockDeviceConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.EbsBlockDeviceConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrCreateCluster.EbsBlockDeviceConfigProperty>
- Enclosing interface:
- EmrCreateCluster.EbsBlockDeviceConfigProperty
@Stability(Stable)
public static final class EmrCreateCluster.EbsBlockDeviceConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<EmrCreateCluster.EbsBlockDeviceConfigProperty>
A builder for
EmrCreateCluster.EbsBlockDeviceConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.volumeSpecification
(EmrCreateCluster.VolumeSpecificationProperty volumeSpecification) Sets the value ofEmrCreateCluster.EbsBlockDeviceConfigProperty.getVolumeSpecification()
volumesPerInstance
(Number volumesPerInstance) Sets the value ofEmrCreateCluster.EbsBlockDeviceConfigProperty.getVolumesPerInstance()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
volumeSpecification
@Stability(Stable) public EmrCreateCluster.EbsBlockDeviceConfigProperty.Builder volumeSpecification(EmrCreateCluster.VolumeSpecificationProperty volumeSpecification) Sets the value ofEmrCreateCluster.EbsBlockDeviceConfigProperty.getVolumeSpecification()
- Parameters:
volumeSpecification
- EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster. This parameter is required.- Returns:
this
-
volumesPerInstance
@Stability(Stable) public EmrCreateCluster.EbsBlockDeviceConfigProperty.Builder volumesPerInstance(Number volumesPerInstance) Sets the value ofEmrCreateCluster.EbsBlockDeviceConfigProperty.getVolumesPerInstance()
- Parameters:
volumesPerInstance
- Number of EBS volumes with a specific volume configuration that will be associated with every instance in the instance group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmrCreateCluster.EbsBlockDeviceConfigProperty>
- Returns:
- a new instance of
EmrCreateCluster.EbsBlockDeviceConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-