Class CfnInstanceFleetConfig.VolumeSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnInstanceFleetConfig.VolumeSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceFleetConfig.VolumeSpecificationProperty>
- Enclosing interface:
CfnInstanceFleetConfig.VolumeSpecificationProperty
@Stability(Stable)
public static final class CfnInstanceFleetConfig.VolumeSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceFleetConfig.VolumeSpecificationProperty>
A builder for
CfnInstanceFleetConfig.VolumeSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnInstanceFleetConfig.VolumeSpecificationProperty.getIops()
Sets the value ofCfnInstanceFleetConfig.VolumeSpecificationProperty.getSizeInGb()
throughput
(Number throughput) Sets the value ofCfnInstanceFleetConfig.VolumeSpecificationProperty.getThroughput()
volumeType
(String volumeType) Sets the value ofCfnInstanceFleetConfig.VolumeSpecificationProperty.getVolumeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sizeInGb
@Stability(Stable) public CfnInstanceFleetConfig.VolumeSpecificationProperty.Builder sizeInGb(Number sizeInGb) Sets the value ofCfnInstanceFleetConfig.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 CfnInstanceFleetConfig.VolumeSpecificationProperty.Builder volumeType(String volumeType) Sets the value ofCfnInstanceFleetConfig.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
@Stability(Stable) public CfnInstanceFleetConfig.VolumeSpecificationProperty.Builder iops(Number iops) Sets the value ofCfnInstanceFleetConfig.VolumeSpecificationProperty.getIops()
- Parameters:
iops
- The number of I/O operations per second (IOPS) that the volume supports.- Returns:
this
-
throughput
@Stability(Stable) public CfnInstanceFleetConfig.VolumeSpecificationProperty.Builder throughput(Number throughput) Sets the value ofCfnInstanceFleetConfig.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<CfnInstanceFleetConfig.VolumeSpecificationProperty>
- Returns:
- a new instance of
CfnInstanceFleetConfig.VolumeSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-