Class CfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.emr.CfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty>
- Enclosing interface:
CfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty
@Stability(Stable)
public static final class CfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty.getIops()throughput(Number throughput) volumeType(String volumeType)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iops
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty.Builder iops(Number iops) Sets the value ofCfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty.getIops()- Parameters:
iops- The number of I/O operations per second (IOPS) that the volume supports.- Returns:
this
-
sizeInGb
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty.Builder sizeInGb(Number sizeInGb) - Parameters:
sizeInGb- The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10.- Returns:
this
-
throughput
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty.Builder throughput(Number throughput) - 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
-
volumeType
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty.Builder volumeType(String volumeType) - Parameters:
volumeType- The volume type. Volume types supported are gp3, gp2, io1, st1, sc1, and standard.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty>- Returns:
- a new instance of
CfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-