Struct aws_sdk_rbin::types::builders::RuleSummaryBuilder
source · #[non_exhaustive]pub struct RuleSummaryBuilder { /* private fields */ }
Expand description
A builder for RuleSummary
.
Implementations§
source§impl RuleSummaryBuilder
impl RuleSummaryBuilder
sourcepub fn identifier(self, input: impl Into<String>) -> Self
pub fn identifier(self, input: impl Into<String>) -> Self
The unique ID of the retention rule.
sourcepub fn set_identifier(self, input: Option<String>) -> Self
pub fn set_identifier(self, input: Option<String>) -> Self
The unique ID of the retention rule.
sourcepub fn get_identifier(&self) -> &Option<String>
pub fn get_identifier(&self) -> &Option<String>
The unique ID of the retention rule.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The retention rule description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The retention rule description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The retention rule description.
sourcepub fn retention_period(self, input: RetentionPeriod) -> Self
pub fn retention_period(self, input: RetentionPeriod) -> Self
Information about the retention period for which the retention rule is to retain resources.
sourcepub fn set_retention_period(self, input: Option<RetentionPeriod>) -> Self
pub fn set_retention_period(self, input: Option<RetentionPeriod>) -> Self
Information about the retention period for which the retention rule is to retain resources.
sourcepub fn get_retention_period(&self) -> &Option<RetentionPeriod>
pub fn get_retention_period(&self) -> &Option<RetentionPeriod>
Information about the retention period for which the retention rule is to retain resources.
sourcepub fn lock_state(self, input: LockState) -> Self
pub fn lock_state(self, input: LockState) -> Self
The lock state for the retention rule.
-
locked
- The retention rule is locked and can't be modified or deleted. -
pending_unlock
- The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired. -
unlocked
- The retention rule is unlocked and it can be modified or deleted by any user with the required permissions. -
null
- The retention rule has never been locked. Once a retention rule has been locked, it can transition between thelocked
andunlocked
states only; it can never transition back tonull
.
sourcepub fn set_lock_state(self, input: Option<LockState>) -> Self
pub fn set_lock_state(self, input: Option<LockState>) -> Self
The lock state for the retention rule.
-
locked
- The retention rule is locked and can't be modified or deleted. -
pending_unlock
- The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired. -
unlocked
- The retention rule is unlocked and it can be modified or deleted by any user with the required permissions. -
null
- The retention rule has never been locked. Once a retention rule has been locked, it can transition between thelocked
andunlocked
states only; it can never transition back tonull
.
sourcepub fn get_lock_state(&self) -> &Option<LockState>
pub fn get_lock_state(&self) -> &Option<LockState>
The lock state for the retention rule.
-
locked
- The retention rule is locked and can't be modified or deleted. -
pending_unlock
- The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired. -
unlocked
- The retention rule is unlocked and it can be modified or deleted by any user with the required permissions. -
null
- The retention rule has never been locked. Once a retention rule has been locked, it can transition between thelocked
andunlocked
states only; it can never transition back tonull
.
sourcepub fn build(self) -> RuleSummary
pub fn build(self) -> RuleSummary
Consumes the builder and constructs a RuleSummary
.
Trait Implementations§
source§impl Clone for RuleSummaryBuilder
impl Clone for RuleSummaryBuilder
source§fn clone(&self) -> RuleSummaryBuilder
fn clone(&self) -> RuleSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleSummaryBuilder
impl Debug for RuleSummaryBuilder
source§impl Default for RuleSummaryBuilder
impl Default for RuleSummaryBuilder
source§fn default() -> RuleSummaryBuilder
fn default() -> RuleSummaryBuilder
source§impl PartialEq<RuleSummaryBuilder> for RuleSummaryBuilder
impl PartialEq<RuleSummaryBuilder> for RuleSummaryBuilder
source§fn eq(&self, other: &RuleSummaryBuilder) -> bool
fn eq(&self, other: &RuleSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.