Class CfnFileCacheProps.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.CfnFileCacheProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFileCacheProps>
- Enclosing interface:
CfnFileCacheProps
@Stability(Stable)
public static final class CfnFileCacheProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFileCacheProps>
A builder for
CfnFileCacheProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.copyTagsToDataRepositoryAssociations(Boolean copyTagsToDataRepositoryAssociations) Sets the value ofCfnFileCacheProps.getCopyTagsToDataRepositoryAssociations()copyTagsToDataRepositoryAssociations(IResolvable copyTagsToDataRepositoryAssociations) Sets the value ofCfnFileCacheProps.getCopyTagsToDataRepositoryAssociations()dataRepositoryAssociations(List<? extends Object> dataRepositoryAssociations) Sets the value ofCfnFileCacheProps.getDataRepositoryAssociations()dataRepositoryAssociations(IResolvable dataRepositoryAssociations) Sets the value ofCfnFileCacheProps.getDataRepositoryAssociations()fileCacheType(String fileCacheType) Sets the value ofCfnFileCacheProps.getFileCacheType()fileCacheTypeVersion(String fileCacheTypeVersion) Sets the value ofCfnFileCacheProps.getFileCacheTypeVersion()Sets the value ofCfnFileCacheProps.getKmsKeyId()lustreConfiguration(IResolvable lustreConfiguration) Sets the value ofCfnFileCacheProps.getLustreConfiguration()lustreConfiguration(CfnFileCache.LustreConfigurationProperty lustreConfiguration) Sets the value ofCfnFileCacheProps.getLustreConfiguration()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnFileCacheProps.getSecurityGroupIds()storageCapacity(Number storageCapacity) Sets the value ofCfnFileCacheProps.getStorageCapacity()Sets the value ofCfnFileCacheProps.getSubnetIds()Sets the value ofCfnFileCacheProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fileCacheType
Sets the value ofCfnFileCacheProps.getFileCacheType()- Parameters:
fileCacheType- The type of cache, which must be LUSTRE. This parameter is required.- Returns:
this
-
fileCacheTypeVersion
@Stability(Stable) public CfnFileCacheProps.Builder fileCacheTypeVersion(String fileCacheTypeVersion) Sets the value ofCfnFileCacheProps.getFileCacheTypeVersion()- Parameters:
fileCacheTypeVersion- The Lustre version of the cache, which must be 2.12. This parameter is required.- Returns:
this
-
storageCapacity
Sets the value ofCfnFileCacheProps.getStorageCapacity()- Parameters:
storageCapacity- The storage capacity of the cache in gibibytes (GiB). This parameter is required.- Returns:
this
-
subnetIds
Sets the value ofCfnFileCacheProps.getSubnetIds()- Parameters:
subnetIds- A list of subnet IDs for the cache. This parameter is required.- Returns:
this
-
copyTagsToDataRepositoryAssociations
@Stability(Stable) public CfnFileCacheProps.Builder copyTagsToDataRepositoryAssociations(Boolean copyTagsToDataRepositoryAssociations) Sets the value ofCfnFileCacheProps.getCopyTagsToDataRepositoryAssociations()- Parameters:
copyTagsToDataRepositoryAssociations- Whether tags should be copied to data repository associations.- Returns:
this
-
copyTagsToDataRepositoryAssociations
@Stability(Stable) public CfnFileCacheProps.Builder copyTagsToDataRepositoryAssociations(IResolvable copyTagsToDataRepositoryAssociations) Sets the value ofCfnFileCacheProps.getCopyTagsToDataRepositoryAssociations()- Parameters:
copyTagsToDataRepositoryAssociations- Whether tags should be copied to data repository associations.- Returns:
this
-
dataRepositoryAssociations
@Stability(Stable) public CfnFileCacheProps.Builder dataRepositoryAssociations(IResolvable dataRepositoryAssociations) Sets the value ofCfnFileCacheProps.getDataRepositoryAssociations()- Parameters:
dataRepositoryAssociations- Data repository associations for the cache.- Returns:
this
-
dataRepositoryAssociations
@Stability(Stable) public CfnFileCacheProps.Builder dataRepositoryAssociations(List<? extends Object> dataRepositoryAssociations) Sets the value ofCfnFileCacheProps.getDataRepositoryAssociations()- Parameters:
dataRepositoryAssociations- Data repository associations for the cache.- Returns:
this
-
kmsKeyId
Sets the value ofCfnFileCacheProps.getKmsKeyId()- Parameters:
kmsKeyId- The KMS key ID for encrypting data.- Returns:
this
-
lustreConfiguration
@Stability(Stable) public CfnFileCacheProps.Builder lustreConfiguration(IResolvable lustreConfiguration) Sets the value ofCfnFileCacheProps.getLustreConfiguration()- Parameters:
lustreConfiguration- the value to be set.- Returns:
this
-
lustreConfiguration
@Stability(Stable) public CfnFileCacheProps.Builder lustreConfiguration(CfnFileCache.LustreConfigurationProperty lustreConfiguration) Sets the value ofCfnFileCacheProps.getLustreConfiguration()- Parameters:
lustreConfiguration- the value to be set.- Returns:
this
-
securityGroupIds
Sets the value ofCfnFileCacheProps.getSecurityGroupIds()- Parameters:
securityGroupIds- A list of security group IDs for the cache.- Returns:
this
-
tags
Sets the value ofCfnFileCacheProps.getTags()- Parameters:
tags- Tags to associate with the file cache.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFileCacheProps>- Returns:
- a new instance of
CfnFileCacheProps - Throws:
NullPointerException- if any required attribute was not provided
-