Class CfnFileSystem.DiskIopsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.CfnFileSystem.DiskIopsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFileSystem.DiskIopsConfigurationProperty>
- Enclosing interface:
CfnFileSystem.DiskIopsConfigurationProperty
@Stability(Stable)
public static final class CfnFileSystem.DiskIopsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFileSystem.DiskIopsConfigurationProperty>
A builder for
CfnFileSystem.DiskIopsConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnFileSystem.DiskIopsConfigurationProperty.getIops()
Sets the value ofCfnFileSystem.DiskIopsConfigurationProperty.getMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iops
Sets the value ofCfnFileSystem.DiskIopsConfigurationProperty.getIops()
- Parameters:
iops
- The total number of SSD IOPS provisioned for the file system. The minimum and maximum values for this property depend on the value ofHAPairs
andStorageCapacity
. The minimum value is calculated asStorageCapacity
* 3 *HAPairs
(3 IOPS per GB ofStorageCapacity
). The maximum value is calculated as 200,000 *HAPairs
.Amazon FSx responds with an HTTP status code 400 (Bad Request) if the value of
Iops
is outside of the minimum or maximum values.- Returns:
this
-
mode
Sets the value ofCfnFileSystem.DiskIopsConfigurationProperty.getMode()
- Parameters:
mode
- Specifies whether the file system is using theAUTOMATIC
setting of SSD IOPS of 3 IOPS per GB of storage capacity, or if it using aUSER_PROVISIONED
value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFileSystem.DiskIopsConfigurationProperty>
- Returns:
- a new instance of
CfnFileSystem.DiskIopsConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-