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 ==
.