Struct aws_sdk_fsx::types::SnaplockRetentionPeriod
source · #[non_exhaustive]pub struct SnaplockRetentionPeriod {
pub default_retention: Option<RetentionPeriod>,
pub minimum_retention: Option<RetentionPeriod>,
pub maximum_retention: Option<RetentionPeriod>,
}Expand description
The configuration to set the retention period of an FSx for ONTAP SnapLock volume. The retention period includes default, maximum, and minimum settings. For more information, see Working with the retention period in SnapLock.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.default_retention: 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.
minimum_retention: Option<RetentionPeriod>The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
maximum_retention: Option<RetentionPeriod>The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
Implementations§
source§impl SnaplockRetentionPeriod
impl SnaplockRetentionPeriod
sourcepub fn default_retention(&self) -> Option<&RetentionPeriod>
pub fn 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) -> Option<&RetentionPeriod>
pub fn 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) -> Option<&RetentionPeriod>
pub fn maximum_retention(&self) -> Option<&RetentionPeriod>
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
source§impl SnaplockRetentionPeriod
impl SnaplockRetentionPeriod
sourcepub fn builder() -> SnaplockRetentionPeriodBuilder
pub fn builder() -> SnaplockRetentionPeriodBuilder
Creates a new builder-style object to manufacture SnaplockRetentionPeriod.
Trait Implementations§
source§impl Clone for SnaplockRetentionPeriod
impl Clone for SnaplockRetentionPeriod
source§fn clone(&self) -> SnaplockRetentionPeriod
fn clone(&self) -> SnaplockRetentionPeriod
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SnaplockRetentionPeriod
impl Debug for SnaplockRetentionPeriod
source§impl PartialEq<SnaplockRetentionPeriod> for SnaplockRetentionPeriod
impl PartialEq<SnaplockRetentionPeriod> for SnaplockRetentionPeriod
source§fn eq(&self, other: &SnaplockRetentionPeriod) -> bool
fn eq(&self, other: &SnaplockRetentionPeriod) -> bool
self and other values to be equal, and is used
by ==.