Struct aws_sdk_fsx::types::RetentionPeriod
source · #[non_exhaustive]pub struct RetentionPeriod {
pub type: Option<RetentionPeriodType>,
pub value: Option<i32>,
}
Expand description
Specifies the retention period of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Files can't be deleted or modified during the retention period.
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.type: Option<RetentionPeriodType>
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of the valid types. If you set it to INFINITE
, the files are retained forever. If you set it to UNSPECIFIED
, the files are retained until you set an explicit retention period.
value: Option<i32>
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can't set a value for INFINITE
or UNSPECIFIED
. For all other options, the following ranges are valid:
-
Seconds
: 0 - 65,535 -
Minutes
: 0 - 65,535 -
Hours
: 0 - 24 -
Days
: 0 - 365 -
Months
: 0 - 12 -
Years
: 0 - 100
Implementations§
source§impl RetentionPeriod
impl RetentionPeriod
sourcepub fn type(&self) -> Option<&RetentionPeriodType>
pub fn type(&self) -> Option<&RetentionPeriodType>
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of the valid types. If you set it to INFINITE
, the files are retained forever. If you set it to UNSPECIFIED
, the files are retained until you set an explicit retention period.
sourcepub fn value(&self) -> Option<i32>
pub fn value(&self) -> Option<i32>
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can't set a value for INFINITE
or UNSPECIFIED
. For all other options, the following ranges are valid:
-
Seconds
: 0 - 65,535 -
Minutes
: 0 - 65,535 -
Hours
: 0 - 24 -
Days
: 0 - 365 -
Months
: 0 - 12 -
Years
: 0 - 100
source§impl RetentionPeriod
impl RetentionPeriod
sourcepub fn builder() -> RetentionPeriodBuilder
pub fn builder() -> RetentionPeriodBuilder
Creates a new builder-style object to manufacture RetentionPeriod
.
Trait Implementations§
source§impl Clone for RetentionPeriod
impl Clone for RetentionPeriod
source§fn clone(&self) -> RetentionPeriod
fn clone(&self) -> RetentionPeriod
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RetentionPeriod
impl Debug for RetentionPeriod
source§impl PartialEq for RetentionPeriod
impl PartialEq for RetentionPeriod
source§fn eq(&self, other: &RetentionPeriod) -> bool
fn eq(&self, other: &RetentionPeriod) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RetentionPeriod
Auto Trait Implementations§
impl Freeze for RetentionPeriod
impl RefUnwindSafe for RetentionPeriod
impl Send for RetentionPeriod
impl Sync for RetentionPeriod
impl Unpin for RetentionPeriod
impl UnwindSafe for RetentionPeriod
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