public static final class FileSystemProps.Builder
extends java.lang.Object
FileSystemProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FileSystemProps.Builder |
backupId(java.lang.String backupId)
Sets the value of
FileSystemProps.getBackupId() |
FileSystemProps |
build()
Builds the configured instance.
|
FileSystemProps.Builder |
kmsKey(IKey kmsKey)
Sets the value of
FileSystemProps.getKmsKey() |
FileSystemProps.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
FileSystemProps.getRemovalPolicy() |
FileSystemProps.Builder |
securityGroup(ISecurityGroup securityGroup)
Sets the value of
FileSystemProps.getSecurityGroup() |
FileSystemProps.Builder |
storageCapacityGiB(java.lang.Number storageCapacityGiB)
Sets the value of
FileSystemProps.getStorageCapacityGiB() |
FileSystemProps.Builder |
vpc(IVpc vpc)
Sets the value of
FileSystemProps.getVpc() |
public FileSystemProps.Builder storageCapacityGiB(java.lang.Number storageCapacityGiB)
FileSystemProps.getStorageCapacityGiB()
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.this
public FileSystemProps.Builder vpc(IVpc vpc)
FileSystemProps.getVpc()
vpc
- The VPC to launch the file system in. This parameter is required.this
public FileSystemProps.Builder backupId(java.lang.String backupId)
FileSystemProps.getBackupId()
backupId
- The ID of the backup.
Specifies the backup to use if you're creating a file system from an existing backup.this
public FileSystemProps.Builder kmsKey(IKey kmsKey)
FileSystemProps.getKmsKey()
kmsKey
- The KMS key used for encryption to protect your data at rest.this
public FileSystemProps.Builder removalPolicy(RemovalPolicy removalPolicy)
FileSystemProps.getRemovalPolicy()
removalPolicy
- Policy to apply when the file system is removed from the stack.this
public FileSystemProps.Builder securityGroup(ISecurityGroup securityGroup)
FileSystemProps.getSecurityGroup()
securityGroup
- Security Group to assign to this file system.this
public FileSystemProps build()
FileSystemProps
java.lang.NullPointerException
- if any required attribute was not provided