Struct aws_sdk_fsx::types::builders::SnaplockRetentionPeriodBuilder
source · #[non_exhaustive]pub struct SnaplockRetentionPeriodBuilder { /* private fields */ }
Expand description
A builder for SnaplockRetentionPeriod
.
Implementations§
source§impl SnaplockRetentionPeriodBuilder
impl SnaplockRetentionPeriodBuilder
sourcepub fn default_retention(self, input: RetentionPeriod) -> Self
pub fn default_retention(self, input: RetentionPeriod) -> Self
The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period.
This field is required.sourcepub fn set_default_retention(self, input: Option<RetentionPeriod>) -> Self
pub fn set_default_retention(self, input: Option<RetentionPeriod>) -> Self
The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period.
sourcepub fn get_default_retention(&self) -> &Option<RetentionPeriod>
pub fn get_default_retention(&self) -> &Option<RetentionPeriod>
The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period.
sourcepub fn minimum_retention(self, input: RetentionPeriod) -> Self
pub fn minimum_retention(self, input: RetentionPeriod) -> Self
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
This field is required.sourcepub fn set_minimum_retention(self, input: Option<RetentionPeriod>) -> Self
pub fn set_minimum_retention(self, input: Option<RetentionPeriod>) -> Self
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
sourcepub fn get_minimum_retention(&self) -> &Option<RetentionPeriod>
pub fn get_minimum_retention(&self) -> &Option<RetentionPeriod>
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
sourcepub fn maximum_retention(self, input: RetentionPeriod) -> Self
pub fn maximum_retention(self, input: RetentionPeriod) -> Self
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
This field is required.sourcepub fn set_maximum_retention(self, input: Option<RetentionPeriod>) -> Self
pub fn set_maximum_retention(self, input: Option<RetentionPeriod>) -> Self
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
sourcepub fn get_maximum_retention(&self) -> &Option<RetentionPeriod>
pub fn get_maximum_retention(&self) -> &Option<RetentionPeriod>
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
sourcepub fn build(self) -> SnaplockRetentionPeriod
pub fn build(self) -> SnaplockRetentionPeriod
Consumes the builder and constructs a SnaplockRetentionPeriod
.
Trait Implementations§
source§impl Clone for SnaplockRetentionPeriodBuilder
impl Clone for SnaplockRetentionPeriodBuilder
source§fn clone(&self) -> SnaplockRetentionPeriodBuilder
fn clone(&self) -> SnaplockRetentionPeriodBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SnaplockRetentionPeriodBuilder
impl Default for SnaplockRetentionPeriodBuilder
source§fn default() -> SnaplockRetentionPeriodBuilder
fn default() -> SnaplockRetentionPeriodBuilder
source§impl PartialEq for SnaplockRetentionPeriodBuilder
impl PartialEq for SnaplockRetentionPeriodBuilder
source§fn eq(&self, other: &SnaplockRetentionPeriodBuilder) -> bool
fn eq(&self, other: &SnaplockRetentionPeriodBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.