#[non_exhaustive]pub struct CreateSnaplockConfigurationBuilder { /* private fields */ }
Expand description
A builder for CreateSnaplockConfiguration
.
Implementations§
source§impl CreateSnaplockConfigurationBuilder
impl CreateSnaplockConfigurationBuilder
sourcepub fn audit_log_volume(self, input: bool) -> Self
pub fn audit_log_volume(self, input: bool) -> Self
Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is false
. If you set AuditLogVolume
to true
, the SnapLock volume is created as an audit log volume. The minimum retention period for an audit log volume is six months.
For more information, see SnapLock audit log volumes.
sourcepub fn set_audit_log_volume(self, input: Option<bool>) -> Self
pub fn set_audit_log_volume(self, input: Option<bool>) -> Self
Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is false
. If you set AuditLogVolume
to true
, the SnapLock volume is created as an audit log volume. The minimum retention period for an audit log volume is six months.
For more information, see SnapLock audit log volumes.
sourcepub fn get_audit_log_volume(&self) -> &Option<bool>
pub fn get_audit_log_volume(&self) -> &Option<bool>
Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is false
. If you set AuditLogVolume
to true
, the SnapLock volume is created as an audit log volume. The minimum retention period for an audit log volume is six months.
For more information, see SnapLock audit log volumes.
sourcepub fn autocommit_period(self, input: AutocommitPeriod) -> Self
pub fn autocommit_period(self, input: AutocommitPeriod) -> Self
The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume.
sourcepub fn set_autocommit_period(self, input: Option<AutocommitPeriod>) -> Self
pub fn set_autocommit_period(self, input: Option<AutocommitPeriod>) -> Self
The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume.
sourcepub fn get_autocommit_period(&self) -> &Option<AutocommitPeriod>
pub fn get_autocommit_period(&self) -> &Option<AutocommitPeriod>
The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume.
sourcepub fn privileged_delete(self, input: PrivilegedDelete) -> Self
pub fn privileged_delete(self, input: PrivilegedDelete) -> Self
Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Enabling privileged delete allows SnapLock administrators to delete WORM files even if they have active retention periods. PERMANENTLY_DISABLED
is a terminal state. If privileged delete is permanently disabled on a SnapLock volume, you can't re-enable it. The default value is DISABLED
.
For more information, see Privileged delete.
sourcepub fn set_privileged_delete(self, input: Option<PrivilegedDelete>) -> Self
pub fn set_privileged_delete(self, input: Option<PrivilegedDelete>) -> Self
Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Enabling privileged delete allows SnapLock administrators to delete WORM files even if they have active retention periods. PERMANENTLY_DISABLED
is a terminal state. If privileged delete is permanently disabled on a SnapLock volume, you can't re-enable it. The default value is DISABLED
.
For more information, see Privileged delete.
sourcepub fn get_privileged_delete(&self) -> &Option<PrivilegedDelete>
pub fn get_privileged_delete(&self) -> &Option<PrivilegedDelete>
Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Enabling privileged delete allows SnapLock administrators to delete WORM files even if they have active retention periods. PERMANENTLY_DISABLED
is a terminal state. If privileged delete is permanently disabled on a SnapLock volume, you can't re-enable it. The default value is DISABLED
.
For more information, see Privileged delete.
sourcepub fn retention_period(self, input: SnaplockRetentionPeriod) -> Self
pub fn retention_period(self, input: SnaplockRetentionPeriod) -> Self
Specifies the retention period of an FSx for ONTAP SnapLock volume.
sourcepub fn set_retention_period(
self,
input: Option<SnaplockRetentionPeriod>
) -> Self
pub fn set_retention_period( self, input: Option<SnaplockRetentionPeriod> ) -> Self
Specifies the retention period of an FSx for ONTAP SnapLock volume.
sourcepub fn get_retention_period(&self) -> &Option<SnaplockRetentionPeriod>
pub fn get_retention_period(&self) -> &Option<SnaplockRetentionPeriod>
Specifies the retention period of an FSx for ONTAP SnapLock volume.
sourcepub fn snaplock_type(self, input: SnaplockType) -> Self
pub fn snaplock_type(self, input: SnaplockType) -> Self
Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. You can choose one of the following retention modes:
-
COMPLIANCE
: Files transitioned to write once, read many (WORM) on a Compliance volume can't be deleted until their retention periods expire. This retention mode is used to address government or industry-specific mandates or to protect against ransomware attacks. For more information, see SnapLock Compliance. -
ENTERPRISE
: Files transitioned to WORM on an Enterprise volume can be deleted by authorized users before their retention periods expire using privileged delete. This retention mode is used to advance an organization's data integrity and internal compliance or to test retention settings before using SnapLock Compliance. For more information, see SnapLock Enterprise.
sourcepub fn set_snaplock_type(self, input: Option<SnaplockType>) -> Self
pub fn set_snaplock_type(self, input: Option<SnaplockType>) -> Self
Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. You can choose one of the following retention modes:
-
COMPLIANCE
: Files transitioned to write once, read many (WORM) on a Compliance volume can't be deleted until their retention periods expire. This retention mode is used to address government or industry-specific mandates or to protect against ransomware attacks. For more information, see SnapLock Compliance. -
ENTERPRISE
: Files transitioned to WORM on an Enterprise volume can be deleted by authorized users before their retention periods expire using privileged delete. This retention mode is used to advance an organization's data integrity and internal compliance or to test retention settings before using SnapLock Compliance. For more information, see SnapLock Enterprise.
sourcepub fn get_snaplock_type(&self) -> &Option<SnaplockType>
pub fn get_snaplock_type(&self) -> &Option<SnaplockType>
Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. You can choose one of the following retention modes:
-
COMPLIANCE
: Files transitioned to write once, read many (WORM) on a Compliance volume can't be deleted until their retention periods expire. This retention mode is used to address government or industry-specific mandates or to protect against ransomware attacks. For more information, see SnapLock Compliance. -
ENTERPRISE
: Files transitioned to WORM on an Enterprise volume can be deleted by authorized users before their retention periods expire using privileged delete. This retention mode is used to advance an organization's data integrity and internal compliance or to test retention settings before using SnapLock Compliance. For more information, see SnapLock Enterprise.
sourcepub fn volume_append_mode_enabled(self, input: bool) -> Self
pub fn volume_append_mode_enabled(self, input: bool) -> Self
Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. Volume-append mode allows you to create WORM-appendable files and write data to them incrementally. The default value is false
.
For more information, see Volume-append mode.
sourcepub fn set_volume_append_mode_enabled(self, input: Option<bool>) -> Self
pub fn set_volume_append_mode_enabled(self, input: Option<bool>) -> Self
Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. Volume-append mode allows you to create WORM-appendable files and write data to them incrementally. The default value is false
.
For more information, see Volume-append mode.
sourcepub fn get_volume_append_mode_enabled(&self) -> &Option<bool>
pub fn get_volume_append_mode_enabled(&self) -> &Option<bool>
Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. Volume-append mode allows you to create WORM-appendable files and write data to them incrementally. The default value is false
.
For more information, see Volume-append mode.
sourcepub fn build(self) -> CreateSnaplockConfiguration
pub fn build(self) -> CreateSnaplockConfiguration
Consumes the builder and constructs a CreateSnaplockConfiguration
.
Trait Implementations§
source§impl Clone for CreateSnaplockConfigurationBuilder
impl Clone for CreateSnaplockConfigurationBuilder
source§fn clone(&self) -> CreateSnaplockConfigurationBuilder
fn clone(&self) -> CreateSnaplockConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateSnaplockConfigurationBuilder
impl Default for CreateSnaplockConfigurationBuilder
source§fn default() -> CreateSnaplockConfigurationBuilder
fn default() -> CreateSnaplockConfigurationBuilder
source§impl PartialEq for CreateSnaplockConfigurationBuilder
impl PartialEq for CreateSnaplockConfigurationBuilder
source§fn eq(&self, other: &CreateSnaplockConfigurationBuilder) -> bool
fn eq(&self, other: &CreateSnaplockConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.