Struct aws_sdk_fsx::types::builders::AutocommitPeriodBuilder
source · #[non_exhaustive]pub struct AutocommitPeriodBuilder { /* private fields */ }
Expand description
A builder for AutocommitPeriod
.
Implementations§
source§impl AutocommitPeriodBuilder
impl AutocommitPeriodBuilder
sourcepub fn type(self, input: AutocommitPeriodType) -> Self
pub fn type(self, input: AutocommitPeriodType) -> Self
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
.
sourcepub fn set_type(self, input: Option<AutocommitPeriodType>) -> Self
pub fn set_type(self, input: Option<AutocommitPeriodType>) -> Self
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
.
sourcepub fn get_type(&self) -> &Option<AutocommitPeriodType>
pub fn get_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
.
sourcepub fn value(self, input: i32) -> Self
pub fn value(self, input: i32) -> Self
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
sourcepub fn set_value(self, input: Option<i32>) -> Self
pub fn set_value(self, input: Option<i32>) -> Self
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
sourcepub fn get_value(&self) -> &Option<i32>
pub fn get_value(&self) -> &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
sourcepub fn build(self) -> AutocommitPeriod
pub fn build(self) -> AutocommitPeriod
Consumes the builder and constructs a AutocommitPeriod
.
Trait Implementations§
source§impl Clone for AutocommitPeriodBuilder
impl Clone for AutocommitPeriodBuilder
source§fn clone(&self) -> AutocommitPeriodBuilder
fn clone(&self) -> AutocommitPeriodBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutocommitPeriodBuilder
impl Debug for AutocommitPeriodBuilder
source§impl Default for AutocommitPeriodBuilder
impl Default for AutocommitPeriodBuilder
source§fn default() -> AutocommitPeriodBuilder
fn default() -> AutocommitPeriodBuilder
source§impl PartialEq for AutocommitPeriodBuilder
impl PartialEq for AutocommitPeriodBuilder
source§fn eq(&self, other: &AutocommitPeriodBuilder) -> bool
fn eq(&self, other: &AutocommitPeriodBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.