#[non_exhaustive]pub struct UpdateSnaplockConfigurationBuilder { /* private fields */ }
Expand description
A builder for UpdateSnaplockConfiguration
.
Implementations§
source§impl UpdateSnaplockConfigurationBuilder
impl UpdateSnaplockConfigurationBuilder
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 write once, read many (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 write once, read many (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 write once, read many (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 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) -> UpdateSnaplockConfiguration
pub fn build(self) -> UpdateSnaplockConfiguration
Consumes the builder and constructs a UpdateSnaplockConfiguration
.
Trait Implementations§
source§impl Clone for UpdateSnaplockConfigurationBuilder
impl Clone for UpdateSnaplockConfigurationBuilder
source§fn clone(&self) -> UpdateSnaplockConfigurationBuilder
fn clone(&self) -> UpdateSnaplockConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateSnaplockConfigurationBuilder
impl Default for UpdateSnaplockConfigurationBuilder
source§fn default() -> UpdateSnaplockConfigurationBuilder
fn default() -> UpdateSnaplockConfigurationBuilder
source§impl PartialEq for UpdateSnaplockConfigurationBuilder
impl PartialEq for UpdateSnaplockConfigurationBuilder
source§fn eq(&self, other: &UpdateSnaplockConfigurationBuilder) -> bool
fn eq(&self, other: &UpdateSnaplockConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.