Struct aws_sdk_dlm::types::builders::RetentionArchiveTierBuilder
source · #[non_exhaustive]pub struct RetentionArchiveTierBuilder { /* private fields */ }
Expand description
A builder for RetentionArchiveTier
.
Implementations§
source§impl RetentionArchiveTierBuilder
impl RetentionArchiveTierBuilder
sourcepub fn count(self, input: i32) -> Self
pub fn count(self, input: i32) -> Self
The maximum number of snapshots to retain in the archive storage tier for each volume. The count must ensure that each snapshot remains in the archive tier for at least 90 days. For example, if the schedule creates snapshots every 30 days, you must specify a count of 3 or more to ensure that each snapshot is archived for at least 90 days.
sourcepub fn set_count(self, input: Option<i32>) -> Self
pub fn set_count(self, input: Option<i32>) -> Self
The maximum number of snapshots to retain in the archive storage tier for each volume. The count must ensure that each snapshot remains in the archive tier for at least 90 days. For example, if the schedule creates snapshots every 30 days, you must specify a count of 3 or more to ensure that each snapshot is archived for at least 90 days.
sourcepub fn get_count(&self) -> &Option<i32>
pub fn get_count(&self) -> &Option<i32>
The maximum number of snapshots to retain in the archive storage tier for each volume. The count must ensure that each snapshot remains in the archive tier for at least 90 days. For example, if the schedule creates snapshots every 30 days, you must specify a count of 3 or more to ensure that each snapshot is archived for at least 90 days.
sourcepub fn interval(self, input: i32) -> Self
pub fn interval(self, input: i32) -> Self
Specifies the period of time to retain snapshots in the archive tier. After this period expires, the snapshot is permanently deleted.
sourcepub fn set_interval(self, input: Option<i32>) -> Self
pub fn set_interval(self, input: Option<i32>) -> Self
Specifies the period of time to retain snapshots in the archive tier. After this period expires, the snapshot is permanently deleted.
sourcepub fn get_interval(&self) -> &Option<i32>
pub fn get_interval(&self) -> &Option<i32>
Specifies the period of time to retain snapshots in the archive tier. After this period expires, the snapshot is permanently deleted.
sourcepub fn interval_unit(self, input: RetentionIntervalUnitValues) -> Self
pub fn interval_unit(self, input: RetentionIntervalUnitValues) -> Self
The unit of time in which to measure the Interval. For example, to retain a snapshots in the archive tier for 6 months, specify Interval=6
and IntervalUnit=MONTHS
.
sourcepub fn set_interval_unit(
self,
input: Option<RetentionIntervalUnitValues>
) -> Self
pub fn set_interval_unit( self, input: Option<RetentionIntervalUnitValues> ) -> Self
The unit of time in which to measure the Interval. For example, to retain a snapshots in the archive tier for 6 months, specify Interval=6
and IntervalUnit=MONTHS
.
sourcepub fn get_interval_unit(&self) -> &Option<RetentionIntervalUnitValues>
pub fn get_interval_unit(&self) -> &Option<RetentionIntervalUnitValues>
The unit of time in which to measure the Interval. For example, to retain a snapshots in the archive tier for 6 months, specify Interval=6
and IntervalUnit=MONTHS
.
sourcepub fn build(self) -> RetentionArchiveTier
pub fn build(self) -> RetentionArchiveTier
Consumes the builder and constructs a RetentionArchiveTier
.
Trait Implementations§
source§impl Clone for RetentionArchiveTierBuilder
impl Clone for RetentionArchiveTierBuilder
source§fn clone(&self) -> RetentionArchiveTierBuilder
fn clone(&self) -> RetentionArchiveTierBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RetentionArchiveTierBuilder
impl Debug for RetentionArchiveTierBuilder
source§impl Default for RetentionArchiveTierBuilder
impl Default for RetentionArchiveTierBuilder
source§fn default() -> RetentionArchiveTierBuilder
fn default() -> RetentionArchiveTierBuilder
source§impl PartialEq for RetentionArchiveTierBuilder
impl PartialEq for RetentionArchiveTierBuilder
source§fn eq(&self, other: &RetentionArchiveTierBuilder) -> bool
fn eq(&self, other: &RetentionArchiveTierBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.