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 for SnaplockRetentionPeriod
impl PartialEq 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 ==
.impl StructuralPartialEq for SnaplockRetentionPeriod
Auto Trait Implementations§
impl Freeze for SnaplockRetentionPeriod
impl RefUnwindSafe for SnaplockRetentionPeriod
impl Send for SnaplockRetentionPeriod
impl Sync for SnaplockRetentionPeriod
impl Unpin for SnaplockRetentionPeriod
impl UnwindSafe for SnaplockRetentionPeriod
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more