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