Class CfnVolumePropsMixin.OntapConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.fsx.CfnVolumePropsMixin.OntapConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumePropsMixin.OntapConfigurationProperty>
- Enclosing interface:
CfnVolumePropsMixin.OntapConfigurationProperty
@Stability(Stable)
public static final class CfnVolumePropsMixin.OntapConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumePropsMixin.OntapConfigurationProperty>
A builder for
CfnVolumePropsMixin.OntapConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregateConfiguration(CfnVolumePropsMixin.AggregateConfigurationProperty aggregateConfiguration) aggregateConfiguration(IResolvable aggregateConfiguration) build()Builds the configured instance.copyTagsToBackups(String copyTagsToBackups) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getCopyTagsToBackups()junctionPath(String junctionPath) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getJunctionPath()ontapVolumeType(String ontapVolumeType) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getOntapVolumeType()securityStyle(String securityStyle) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getSecurityStyle()sizeInBytes(String sizeInBytes) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getSizeInBytes()sizeInMegabytes(String sizeInMegabytes) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getSizeInMegabytes()snaplockConfiguration(CfnVolumePropsMixin.SnaplockConfigurationProperty snaplockConfiguration) snaplockConfiguration(IResolvable snaplockConfiguration) snapshotPolicy(String snapshotPolicy) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getSnapshotPolicy()storageEfficiencyEnabled(String storageEfficiencyEnabled) storageVirtualMachineId(String storageVirtualMachineId) tieringPolicy(CfnVolumePropsMixin.TieringPolicyProperty tieringPolicy) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getTieringPolicy()tieringPolicy(IResolvable tieringPolicy) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getTieringPolicy()volumeStyle(String volumeStyle) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getVolumeStyle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregateConfiguration
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder aggregateConfiguration(IResolvable aggregateConfiguration) - Parameters:
aggregateConfiguration- Used to specify the configuration options for an FSx for ONTAP volume's storage aggregate or aggregates.- Returns:
this
-
aggregateConfiguration
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder aggregateConfiguration(CfnVolumePropsMixin.AggregateConfigurationProperty aggregateConfiguration) - Parameters:
aggregateConfiguration- Used to specify the configuration options for an FSx for ONTAP volume's storage aggregate or aggregates.- Returns:
this
-
copyTagsToBackups
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder copyTagsToBackups(String copyTagsToBackups) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getCopyTagsToBackups()- Parameters:
copyTagsToBackups- A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to false. If it's set to true, all tags for the volume are copied to all automatic and user-initiated backups where the user doesn't specify tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the volume, regardless of this value.- Returns:
this
-
junctionPath
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder junctionPath(String junctionPath) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getJunctionPath()- Parameters:
junctionPath- Specifies the location in the SVM's namespace where the volume is mounted. This parameter is required. TheJunctionPathmust have a leading forward slash, such as/vol3.- Returns:
this
-
ontapVolumeType
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder ontapVolumeType(String ontapVolumeType) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getOntapVolumeType()- Parameters:
ontapVolumeType- Specifies the type of volume you are creating. Valid values are the following:.RWspecifies a read/write volume.RWis the default.DPspecifies a data-protection volume. ADPvolume is read-only and can be used as the destination of a NetApp SnapMirror relationship.
For more information, see Volume types in the Amazon FSx for NetApp ONTAP User Guide.
- Returns:
this
-
securityStyle
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder securityStyle(String securityStyle) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getSecurityStyle()- Parameters:
securityStyle- Specifies the security style for the volume. If a volume's security style is not specified, it is automatically set to the root volume's security style. The security style determines the type of permissions that FSx for ONTAP uses to control data access. Specify one of the following values:UNIXif the file system is managed by a UNIX administrator, the majority of users are NFS clients, and an application accessing the data uses a UNIX user as the service account.NTFSif the file system is managed by a Windows administrator, the majority of users are SMB clients, and an application accessing the data uses a Windows user as the service account.MIXEDThis is an advanced setting. For more information, see the topic What the security styles and their effects are in the NetApp Documentation Center.
For more information, see Volume security style in the FSx for ONTAP User Guide.
- Returns:
this
-
sizeInBytes
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder sizeInBytes(String sizeInBytes) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getSizeInBytes()- Parameters:
sizeInBytes- Specifies the configured size of the volume, in bytes.- Returns:
this
-
sizeInMegabytes
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder sizeInMegabytes(String sizeInMegabytes) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getSizeInMegabytes()- Parameters:
sizeInMegabytes- UseSizeInBytesinstead. Specifies the size of the volume, in megabytes (MB), that you are creating.- Returns:
this
-
snaplockConfiguration
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder snaplockConfiguration(IResolvable snaplockConfiguration) - Parameters:
snaplockConfiguration- The SnapLock configuration object for an FSx for ONTAP SnapLock volume.- Returns:
this
-
snaplockConfiguration
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder snaplockConfiguration(CfnVolumePropsMixin.SnaplockConfigurationProperty snaplockConfiguration) - Parameters:
snaplockConfiguration- The SnapLock configuration object for an FSx for ONTAP SnapLock volume.- Returns:
this
-
snapshotPolicy
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder snapshotPolicy(String snapshotPolicy) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getSnapshotPolicy()- Parameters:
snapshotPolicy- Specifies the snapshot policy for the volume. There are three built-in snapshot policies:.default: This is the default policy. A maximum of six hourly snapshots taken five minutes past the hour. A maximum of two daily snapshots taken Monday through Saturday at 10 minutes after midnight. A maximum of two weekly snapshots taken every Sunday at 15 minutes after midnight.default-1weekly: This policy is the same as thedefaultpolicy except that it only retains one snapshot from the weekly schedule.none: This policy does not take any snapshots. This policy can be assigned to volumes to prevent automatic snapshots from being taken.
You can also provide the name of a custom policy that you created with the ONTAP CLI or REST API.
For more information, see Snapshot policies in the Amazon FSx for NetApp ONTAP User Guide.
- Returns:
this
-
storageEfficiencyEnabled
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder storageEfficiencyEnabled(String storageEfficiencyEnabled) - Parameters:
storageEfficiencyEnabled- Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume, or set to false to disable them.StorageEfficiencyEnabledis required when creating aRWvolume (OntapVolumeTypeset toRW).- Returns:
this
-
storageVirtualMachineId
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder storageVirtualMachineId(String storageVirtualMachineId) - Parameters:
storageVirtualMachineId- Specifies the ONTAP SVM in which to create the volume.- Returns:
this
-
tieringPolicy
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder tieringPolicy(IResolvable tieringPolicy) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getTieringPolicy()- Parameters:
tieringPolicy- Describes the data tiering policy for an ONTAP volume. When enabled, Amazon FSx for ONTAP's intelligent tiering automatically transitions a volume's data between the file system's primary storage and capacity pool storage based on your access patterns.Valid tiering policies are the following:
SNAPSHOT_ONLY- (Default value) moves cold snapshots to the capacity pool storage tier.AUTO- moves cold user data and snapshots to the capacity pool storage tier based on your access patterns.ALL- moves all user data blocks in both the active file system and Snapshot copies to the storage pool tier.NONE- keeps a volume's data in the primary storage tier, preventing it from being moved to the capacity pool tier.
- Returns:
this
-
tieringPolicy
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder tieringPolicy(CfnVolumePropsMixin.TieringPolicyProperty tieringPolicy) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getTieringPolicy()- Parameters:
tieringPolicy- Describes the data tiering policy for an ONTAP volume. When enabled, Amazon FSx for ONTAP's intelligent tiering automatically transitions a volume's data between the file system's primary storage and capacity pool storage based on your access patterns.Valid tiering policies are the following:
SNAPSHOT_ONLY- (Default value) moves cold snapshots to the capacity pool storage tier.AUTO- moves cold user data and snapshots to the capacity pool storage tier based on your access patterns.ALL- moves all user data blocks in both the active file system and Snapshot copies to the storage pool tier.NONE- keeps a volume's data in the primary storage tier, preventing it from being moved to the capacity pool tier.
- Returns:
this
-
volumeStyle
@Stability(Stable) public CfnVolumePropsMixin.OntapConfigurationProperty.Builder volumeStyle(String volumeStyle) Sets the value ofCfnVolumePropsMixin.OntapConfigurationProperty.getVolumeStyle()- Parameters:
volumeStyle- Use to specify the style of an ONTAP volume. FSx for ONTAP offers two styles of volumes that you can use for different purposes, FlexVol and FlexGroup volumes. For more information, see Volume styles in the Amazon FSx for NetApp ONTAP User Guide.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumePropsMixin.OntapConfigurationProperty>- Returns:
- a new instance of
CfnVolumePropsMixin.OntapConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-