Struct aws_sdk_fsx::types::AutocommitPeriod
source · #[non_exhaustive]pub struct AutocommitPeriod {
pub type: Option<AutocommitPeriodType>,
pub value: Option<i32>,
}
Expand description
Sets the autocommit period of files in an FSx for ONTAP SnapLock volume, which determines how long the files must remain unmodified before they're automatically transitioned to the write once, read many (WORM) state.
For more information, see Autocommit.
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<AutocommitPeriodType>
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to NONE
disables autocommit. The default value is NONE
.
value: Option<i32>
Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. The following ranges are valid:
-
Minutes
: 5 - 65,535 -
Hours
: 1 - 65,535 -
Days
: 1 - 3,650 -
Months
: 1 - 120 -
Years
: 1 - 10
Implementations§
source§impl AutocommitPeriod
impl AutocommitPeriod
sourcepub fn type(&self) -> Option<&AutocommitPeriodType>
pub fn type(&self) -> Option<&AutocommitPeriodType>
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to NONE
disables autocommit. The default value is NONE
.
source§impl AutocommitPeriod
impl AutocommitPeriod
sourcepub fn builder() -> AutocommitPeriodBuilder
pub fn builder() -> AutocommitPeriodBuilder
Creates a new builder-style object to manufacture AutocommitPeriod
.
Trait Implementations§
source§impl Clone for AutocommitPeriod
impl Clone for AutocommitPeriod
source§fn clone(&self) -> AutocommitPeriod
fn clone(&self) -> AutocommitPeriod
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutocommitPeriod
impl Debug for AutocommitPeriod
source§impl PartialEq for AutocommitPeriod
impl PartialEq for AutocommitPeriod
source§fn eq(&self, other: &AutocommitPeriod) -> bool
fn eq(&self, other: &AutocommitPeriod) -> bool
self
and other
values to be equal, and is used
by ==
.