Class FileSystemProps.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.FileSystemProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FileSystemProps>
- Enclosing interface:
FileSystemProps
@Stability(Stable)
public static final class FileSystemProps.Builder
extends Object
implements software.amazon.jsii.Builder<FileSystemProps>
A builder for
FileSystemProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofFileSystemProps.getBackupId()
build()
Builds the configured instance.Sets the value ofFileSystemProps.getKmsKey()
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()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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<FileSystemProps>
- Returns:
- a new instance of
FileSystemProps
- Throws:
NullPointerException
- if any required attribute was not provided
-