Struct aws_sdk_dlm::types::builders::RetainRuleBuilder
source · #[non_exhaustive]pub struct RetainRuleBuilder { /* private fields */ }
Expand description
A builder for RetainRule
.
Implementations§
source§impl RetainRuleBuilder
impl RetainRuleBuilder
sourcepub fn count(self, input: i32) -> Self
pub fn count(self, input: i32) -> Self
The number of snapshots to retain for each volume, up to a maximum of 1000. For example if you want to retain a maximum of three snapshots, specify 3
. When the fourth snapshot is created, the oldest retained snapshot is deleted, or it is moved to the archive tier if you have specified an ArchiveRule.
sourcepub fn set_count(self, input: Option<i32>) -> Self
pub fn set_count(self, input: Option<i32>) -> Self
The number of snapshots to retain for each volume, up to a maximum of 1000. For example if you want to retain a maximum of three snapshots, specify 3
. When the fourth snapshot is created, the oldest retained snapshot is deleted, or it is moved to the archive tier if you have specified an ArchiveRule.
sourcepub fn get_count(&self) -> &Option<i32>
pub fn get_count(&self) -> &Option<i32>
The number of snapshots to retain for each volume, up to a maximum of 1000. For example if you want to retain a maximum of three snapshots, specify 3
. When the fourth snapshot is created, the oldest retained snapshot is deleted, or it is moved to the archive tier if you have specified an ArchiveRule.
sourcepub fn interval(self, input: i32) -> Self
pub fn interval(self, input: i32) -> Self
The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
sourcepub fn set_interval(self, input: Option<i32>) -> Self
pub fn set_interval(self, input: Option<i32>) -> Self
The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
sourcepub fn get_interval(&self) -> &Option<i32>
pub fn get_interval(&self) -> &Option<i32>
The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
sourcepub fn interval_unit(self, input: RetentionIntervalUnitValues) -> Self
pub fn interval_unit(self, input: RetentionIntervalUnitValues) -> Self
The unit of time for time-based retention. For example, to retain snapshots for 3 months, specify Interval=3
and IntervalUnit=MONTHS
. Once the snapshot has been retained for 3 months, it is deleted, or it is moved to the archive tier if you have specified an ArchiveRule.
sourcepub fn set_interval_unit(
self,
input: Option<RetentionIntervalUnitValues>
) -> Self
pub fn set_interval_unit( self, input: Option<RetentionIntervalUnitValues> ) -> Self
The unit of time for time-based retention. For example, to retain snapshots for 3 months, specify Interval=3
and IntervalUnit=MONTHS
. Once the snapshot has been retained for 3 months, it is deleted, or it is moved to the archive tier if you have specified an ArchiveRule.
sourcepub fn get_interval_unit(&self) -> &Option<RetentionIntervalUnitValues>
pub fn get_interval_unit(&self) -> &Option<RetentionIntervalUnitValues>
The unit of time for time-based retention. For example, to retain snapshots for 3 months, specify Interval=3
and IntervalUnit=MONTHS
. Once the snapshot has been retained for 3 months, it is deleted, or it is moved to the archive tier if you have specified an ArchiveRule.
sourcepub fn build(self) -> RetainRule
pub fn build(self) -> RetainRule
Consumes the builder and constructs a RetainRule
.
Trait Implementations§
source§impl Clone for RetainRuleBuilder
impl Clone for RetainRuleBuilder
source§fn clone(&self) -> RetainRuleBuilder
fn clone(&self) -> RetainRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RetainRuleBuilder
impl Debug for RetainRuleBuilder
source§impl Default for RetainRuleBuilder
impl Default for RetainRuleBuilder
source§fn default() -> RetainRuleBuilder
fn default() -> RetainRuleBuilder
source§impl PartialEq for RetainRuleBuilder
impl PartialEq for RetainRuleBuilder
source§fn eq(&self, other: &RetainRuleBuilder) -> bool
fn eq(&self, other: &RetainRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RetainRuleBuilder
Auto Trait Implementations§
impl Freeze for RetainRuleBuilder
impl RefUnwindSafe for RetainRuleBuilder
impl Send for RetainRuleBuilder
impl Sync for RetainRuleBuilder
impl Unpin for RetainRuleBuilder
impl UnwindSafe for RetainRuleBuilder
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