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
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofFileSystemProps.getBackupId()
build()
Builds the configured instance.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()
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
-
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 and PERSISTENT_1 types, valid values are 1,200, 2,400, then continuing in increments of 2,400 GiB.- 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
-
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
-