Struct aws_sdk_rbin::types::builders::RetentionPeriodBuilder
source · #[non_exhaustive]pub struct RetentionPeriodBuilder { /* private fields */ }Expand description
A builder for RetentionPeriod.
Implementations§
source§impl RetentionPeriodBuilder
impl RetentionPeriodBuilder
sourcepub fn retention_period_value(self, input: i32) -> Self
pub fn retention_period_value(self, input: i32) -> Self
The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
This field is required.sourcepub fn set_retention_period_value(self, input: Option<i32>) -> Self
pub fn set_retention_period_value(self, input: Option<i32>) -> Self
The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
sourcepub fn get_retention_period_value(&self) -> &Option<i32>
pub fn get_retention_period_value(&self) -> &Option<i32>
The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
sourcepub fn retention_period_unit(self, input: RetentionPeriodUnit) -> Self
pub fn retention_period_unit(self, input: RetentionPeriodUnit) -> Self
The unit of time in which the retention period is measured. Currently, only DAYS is supported.
sourcepub fn set_retention_period_unit(
self,
input: Option<RetentionPeriodUnit>
) -> Self
pub fn set_retention_period_unit( self, input: Option<RetentionPeriodUnit> ) -> Self
The unit of time in which the retention period is measured. Currently, only DAYS is supported.
sourcepub fn get_retention_period_unit(&self) -> &Option<RetentionPeriodUnit>
pub fn get_retention_period_unit(&self) -> &Option<RetentionPeriodUnit>
The unit of time in which the retention period is measured. Currently, only DAYS is supported.
sourcepub fn build(self) -> Result<RetentionPeriod, BuildError>
pub fn build(self) -> Result<RetentionPeriod, BuildError>
Consumes the builder and constructs a RetentionPeriod.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RetentionPeriodBuilder
impl Clone for RetentionPeriodBuilder
source§fn clone(&self) -> RetentionPeriodBuilder
fn clone(&self) -> RetentionPeriodBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RetentionPeriodBuilder
impl Debug for RetentionPeriodBuilder
source§impl Default for RetentionPeriodBuilder
impl Default for RetentionPeriodBuilder
source§fn default() -> RetentionPeriodBuilder
fn default() -> RetentionPeriodBuilder
source§impl PartialEq for RetentionPeriodBuilder
impl PartialEq for RetentionPeriodBuilder
source§fn eq(&self, other: &RetentionPeriodBuilder) -> bool
fn eq(&self, other: &RetentionPeriodBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RetentionPeriodBuilder
Auto Trait Implementations§
impl Freeze for RetentionPeriodBuilder
impl RefUnwindSafe for RetentionPeriodBuilder
impl Send for RetentionPeriodBuilder
impl Sync for RetentionPeriodBuilder
impl Unpin for RetentionPeriodBuilder
impl UnwindSafe for RetentionPeriodBuilder
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