#[non_exhaustive]pub struct CreateRuleOutputBuilder { /* private fields */ }Expand description
A builder for CreateRuleOutput.
Implementations§
source§impl CreateRuleOutputBuilder
 
impl CreateRuleOutputBuilder
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 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 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.
Appends an item to tags.
To override the contents of this collection use set_tags.
Information about the tags assigned to the retention rule.
Information about the tags assigned to the retention rule.
sourcepub fn resource_type(self, input: ResourceType) -> Self
 
pub fn resource_type(self, input: ResourceType) -> Self
The resource type retained by the retention rule.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
 
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The resource type retained by the retention rule.
Appends an item to resource_tags.
To override the contents of this collection use set_resource_tags.
Information about the resource tags used to identify resources that are retained by the retention rule.
Information about the resource tags used to identify resources that are retained by the retention rule.
sourcepub fn status(self, input: RuleStatus) -> Self
 
pub fn status(self, input: RuleStatus) -> Self
The state of the retention rule. Only retention rules that are in the available state retain resources.
sourcepub fn set_status(self, input: Option<RuleStatus>) -> Self
 
pub fn set_status(self, input: Option<RuleStatus>) -> Self
The state of the retention rule. Only retention rules that are in the available state retain resources.
sourcepub fn lock_configuration(self, input: LockConfiguration) -> Self
 
pub fn lock_configuration(self, input: LockConfiguration) -> Self
Information about the retention rule lock configuration.
sourcepub fn set_lock_configuration(self, input: Option<LockConfiguration>) -> Self
 
pub fn set_lock_configuration(self, input: Option<LockConfiguration>) -> Self
Information about the retention rule lock configuration.
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 thelockedandunlockedstates 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 thelockedandunlockedstates only; it can never transition back tonull.
sourcepub fn build(self) -> CreateRuleOutput
 
pub fn build(self) -> CreateRuleOutput
Consumes the builder and constructs a CreateRuleOutput.
Trait Implementations§
source§impl Clone for CreateRuleOutputBuilder
 
impl Clone for CreateRuleOutputBuilder
source§fn clone(&self) -> CreateRuleOutputBuilder
 
fn clone(&self) -> CreateRuleOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateRuleOutputBuilder
 
impl Debug for CreateRuleOutputBuilder
source§impl Default for CreateRuleOutputBuilder
 
impl Default for CreateRuleOutputBuilder
source§fn default() -> CreateRuleOutputBuilder
 
fn default() -> CreateRuleOutputBuilder
source§impl PartialEq<CreateRuleOutputBuilder> for CreateRuleOutputBuilder
 
impl PartialEq<CreateRuleOutputBuilder> for CreateRuleOutputBuilder
source§fn eq(&self, other: &CreateRuleOutputBuilder) -> bool
 
fn eq(&self, other: &CreateRuleOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.