#[non_exhaustive]pub struct CrossRegionCopyRetainRuleBuilder { /* private fields */ }
Expand description
A builder for CrossRegionCopyRetainRule
.
Implementations§
source§impl CrossRegionCopyRetainRuleBuilder
impl CrossRegionCopyRetainRuleBuilder
sourcepub fn interval(self, input: i32) -> Self
pub fn interval(self, input: i32) -> Self
The amount of time to retain a cross-Region snapshot or AMI copy. 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 a cross-Region snapshot or AMI copy. 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 a cross-Region snapshot or AMI copy. 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 a cross-Region copy for 3 months, specify Interval=3
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 for time-based retention. For example, to retain a cross-Region copy for 3 months, specify Interval=3
and IntervalUnit=MONTHS
.
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 a cross-Region copy for 3 months, specify Interval=3
and IntervalUnit=MONTHS
.
sourcepub fn build(self) -> CrossRegionCopyRetainRule
pub fn build(self) -> CrossRegionCopyRetainRule
Consumes the builder and constructs a CrossRegionCopyRetainRule
.
Trait Implementations§
source§impl Clone for CrossRegionCopyRetainRuleBuilder
impl Clone for CrossRegionCopyRetainRuleBuilder
source§fn clone(&self) -> CrossRegionCopyRetainRuleBuilder
fn clone(&self) -> CrossRegionCopyRetainRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CrossRegionCopyRetainRuleBuilder
impl Default for CrossRegionCopyRetainRuleBuilder
source§fn default() -> CrossRegionCopyRetainRuleBuilder
fn default() -> CrossRegionCopyRetainRuleBuilder
source§impl PartialEq for CrossRegionCopyRetainRuleBuilder
impl PartialEq for CrossRegionCopyRetainRuleBuilder
source§fn eq(&self, other: &CrossRegionCopyRetainRuleBuilder) -> bool
fn eq(&self, other: &CrossRegionCopyRetainRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.