Struct aws_sdk_dlm::types::builders::DeprecateRuleBuilder
source · #[non_exhaustive]pub struct DeprecateRuleBuilder { /* private fields */ }
Expand description
A builder for DeprecateRule
.
Implementations§
source§impl DeprecateRuleBuilder
impl DeprecateRuleBuilder
sourcepub fn count(self, input: i32) -> Self
pub fn count(self, input: i32) -> Self
If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate. The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.
sourcepub fn set_count(self, input: Option<i32>) -> Self
pub fn set_count(self, input: Option<i32>) -> Self
If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate. The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.
sourcepub fn get_count(&self) -> &Option<i32>
pub fn get_count(&self) -> &Option<i32>
If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate. The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.
sourcepub fn interval(self, input: i32) -> Self
pub fn interval(self, input: i32) -> Self
If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule. The period must be less than or equal to the schedule's 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
If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule. The period must be less than or equal to the schedule's 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>
If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule. The period must be less than or equal to the schedule's 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.
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.
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.
sourcepub fn build(self) -> DeprecateRule
pub fn build(self) -> DeprecateRule
Consumes the builder and constructs a DeprecateRule
.
Trait Implementations§
source§impl Clone for DeprecateRuleBuilder
impl Clone for DeprecateRuleBuilder
source§fn clone(&self) -> DeprecateRuleBuilder
fn clone(&self) -> DeprecateRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeprecateRuleBuilder
impl Debug for DeprecateRuleBuilder
source§impl Default for DeprecateRuleBuilder
impl Default for DeprecateRuleBuilder
source§fn default() -> DeprecateRuleBuilder
fn default() -> DeprecateRuleBuilder
source§impl PartialEq for DeprecateRuleBuilder
impl PartialEq for DeprecateRuleBuilder
source§fn eq(&self, other: &DeprecateRuleBuilder) -> bool
fn eq(&self, other: &DeprecateRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeprecateRuleBuilder
Auto Trait Implementations§
impl Freeze for DeprecateRuleBuilder
impl RefUnwindSafe for DeprecateRuleBuilder
impl Send for DeprecateRuleBuilder
impl Sync for DeprecateRuleBuilder
impl Unpin for DeprecateRuleBuilder
impl UnwindSafe for DeprecateRuleBuilder
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