#[non_exhaustive]pub struct CrossRegionCopyDeprecateRuleBuilder { /* private fields */ }
Expand description
A builder for CrossRegionCopyDeprecateRule
.
Implementations§
source§impl CrossRegionCopyDeprecateRuleBuilder
impl CrossRegionCopyDeprecateRuleBuilder
sourcepub fn interval(self, input: i32) -> Self
pub fn interval(self, input: i32) -> Self
The period after which to deprecate the cross-Region AMI copies. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.
sourcepub fn set_interval(self, input: Option<i32>) -> Self
pub fn set_interval(self, input: Option<i32>) -> Self
The period after which to deprecate the cross-Region AMI copies. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.
sourcepub fn get_interval(&self) -> &Option<i32>
pub fn get_interval(&self) -> &Option<i32>
The period after which to deprecate the cross-Region AMI copies. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.
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 deprecate a cross-Region AMI copy after 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 in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after 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 in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after 3 months, specify Interval=3
and IntervalUnit=MONTHS
.
sourcepub fn build(self) -> CrossRegionCopyDeprecateRule
pub fn build(self) -> CrossRegionCopyDeprecateRule
Consumes the builder and constructs a CrossRegionCopyDeprecateRule
.
Trait Implementations§
source§impl Clone for CrossRegionCopyDeprecateRuleBuilder
impl Clone for CrossRegionCopyDeprecateRuleBuilder
source§fn clone(&self) -> CrossRegionCopyDeprecateRuleBuilder
fn clone(&self) -> CrossRegionCopyDeprecateRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CrossRegionCopyDeprecateRuleBuilder
impl Default for CrossRegionCopyDeprecateRuleBuilder
source§fn default() -> CrossRegionCopyDeprecateRuleBuilder
fn default() -> CrossRegionCopyDeprecateRuleBuilder
source§impl PartialEq for CrossRegionCopyDeprecateRuleBuilder
impl PartialEq for CrossRegionCopyDeprecateRuleBuilder
source§fn eq(&self, other: &CrossRegionCopyDeprecateRuleBuilder) -> bool
fn eq(&self, other: &CrossRegionCopyDeprecateRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CrossRegionCopyDeprecateRuleBuilder
Auto Trait Implementations§
impl Freeze for CrossRegionCopyDeprecateRuleBuilder
impl RefUnwindSafe for CrossRegionCopyDeprecateRuleBuilder
impl Send for CrossRegionCopyDeprecateRuleBuilder
impl Sync for CrossRegionCopyDeprecateRuleBuilder
impl Unpin for CrossRegionCopyDeprecateRuleBuilder
impl UnwindSafe for CrossRegionCopyDeprecateRuleBuilder
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