Class LustreFileSystemProps.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.LustreFileSystemProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LustreFileSystemProps>
- Enclosing interface:
LustreFileSystemProps
@Stability(Stable)
public static final class LustreFileSystemProps.Builder
extends Object
implements software.amazon.jsii.Builder<LustreFileSystemProps>
A builder for
LustreFileSystemProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofFileSystemProps.getBackupId()
build()
Builds the configured instance.fileSystemTypeVersion
(FileSystemTypeVersion fileSystemTypeVersion) Sets the value ofLustreFileSystemProps.getFileSystemTypeVersion()
Sets the value ofFileSystemProps.getKmsKey()
lustreConfiguration
(LustreConfiguration lustreConfiguration) Sets the value ofLustreFileSystemProps.getLustreConfiguration()
removalPolicy
(RemovalPolicy removalPolicy) Sets the value ofFileSystemProps.getRemovalPolicy()
securityGroup
(ISecurityGroup securityGroup) Sets the value ofFileSystemProps.getSecurityGroup()
storageCapacityGiB
(Number storageCapacityGiB) Sets the value ofFileSystemProps.getStorageCapacityGiB()
storageType
(StorageType storageType) Sets the value ofFileSystemProps.getStorageType()
Sets the value ofFileSystemProps.getVpc()
Sets the value ofLustreFileSystemProps.getVpcSubnet()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lustreConfiguration
@Stability(Stable) public LustreFileSystemProps.Builder lustreConfiguration(LustreConfiguration lustreConfiguration) Sets the value ofLustreFileSystemProps.getLustreConfiguration()
- Parameters:
lustreConfiguration
- Additional configuration for FSx specific to Lustre. This parameter is required.- Returns:
this
-
vpcSubnet
Sets the value ofLustreFileSystemProps.getVpcSubnet()
- Parameters:
vpcSubnet
- The subnet that the file system will be accessible from. This parameter is required.- Returns:
this
-
fileSystemTypeVersion
@Stability(Stable) public LustreFileSystemProps.Builder fileSystemTypeVersion(FileSystemTypeVersion fileSystemTypeVersion) Sets the value ofLustreFileSystemProps.getFileSystemTypeVersion()
- Parameters:
fileSystemTypeVersion
- The Lustre version for the file system.- Returns:
this
-
storageCapacityGiB
@Stability(Stable) public LustreFileSystemProps.Builder storageCapacityGiB(Number storageCapacityGiB) Sets the value ofFileSystemProps.getStorageCapacityGiB()
- Parameters:
storageCapacityGiB
- The storage capacity of the file system being created. This parameter is required. For Windows file systems, valid values are 32 GiB to 65,536 GiB. For SCRATCH_1 deployment types, valid values are 1,200, 2,400, 3,600, then continuing in increments of 3,600 GiB. For SCRATCH_2, PERSISTENT_2 and PERSISTENT_1 deployment types using SSD storage type, the valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB. For PERSISTENT_1 HDD file systems, valid values are increments of 6000 GiB for 12 MB/s/TiB file systems and increments of 1800 GiB for 40 MB/s/TiB file systems.- Returns:
this
-
vpc
Sets the value ofFileSystemProps.getVpc()
- Parameters:
vpc
- The VPC to launch the file system in. This parameter is required.- Returns:
this
-
backupId
Sets the value ofFileSystemProps.getBackupId()
- Parameters:
backupId
- The ID of the backup. Specifies the backup to use if you're creating a file system from an existing backup.- Returns:
this
-
kmsKey
Sets the value ofFileSystemProps.getKmsKey()
- Parameters:
kmsKey
- The KMS key used for encryption to protect your data at rest.- Returns:
this
-
removalPolicy
Sets the value ofFileSystemProps.getRemovalPolicy()
- Parameters:
removalPolicy
- Policy to apply when the file system is removed from the stack.- Returns:
this
-
securityGroup
Sets the value ofFileSystemProps.getSecurityGroup()
- Parameters:
securityGroup
- Security Group to assign to this file system.- Returns:
this
-
storageType
Sets the value ofFileSystemProps.getStorageType()
- Parameters:
storageType
- The storage type for the file system that you're creating.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LustreFileSystemProps>
- Returns:
- a new instance of
LustreFileSystemProps
- Throws:
NullPointerException
- if any required attribute was not provided
-