Struct aws_sdk_rbin::operation::get_rule::builders::GetRuleOutputBuilder
source · #[non_exhaustive]pub struct GetRuleOutputBuilder { /* private fields */ }
Expand description
A builder for GetRuleOutput
.
Implementations§
source§impl GetRuleOutputBuilder
impl GetRuleOutputBuilder
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 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.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The resource type retained by 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 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.
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.
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 get_status(&self) -> &Option<RuleStatus>
pub fn get_status(&self) -> &Option<RuleStatus>
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 get_lock_configuration(&self) -> &Option<LockConfiguration>
pub fn get_lock_configuration(&self) -> &Option<LockConfiguration>
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 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 lock_end_time(self, input: DateTime) -> Self
pub fn lock_end_time(self, input: DateTime) -> Self
The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
sourcepub fn set_lock_end_time(self, input: Option<DateTime>) -> Self
pub fn set_lock_end_time(self, input: Option<DateTime>) -> Self
The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
sourcepub fn get_lock_end_time(&self) -> &Option<DateTime>
pub fn get_lock_end_time(&self) -> &Option<DateTime>
The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
sourcepub fn rule_arn(self, input: impl Into<String>) -> Self
pub fn rule_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the retention rule.
sourcepub fn set_rule_arn(self, input: Option<String>) -> Self
pub fn set_rule_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the retention rule.
sourcepub fn get_rule_arn(&self) -> &Option<String>
pub fn get_rule_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the retention rule.
sourcepub fn build(self) -> GetRuleOutput
pub fn build(self) -> GetRuleOutput
Consumes the builder and constructs a GetRuleOutput
.
Trait Implementations§
source§impl Clone for GetRuleOutputBuilder
impl Clone for GetRuleOutputBuilder
source§fn clone(&self) -> GetRuleOutputBuilder
fn clone(&self) -> GetRuleOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetRuleOutputBuilder
impl Debug for GetRuleOutputBuilder
source§impl Default for GetRuleOutputBuilder
impl Default for GetRuleOutputBuilder
source§fn default() -> GetRuleOutputBuilder
fn default() -> GetRuleOutputBuilder
source§impl PartialEq for GetRuleOutputBuilder
impl PartialEq for GetRuleOutputBuilder
source§fn eq(&self, other: &GetRuleOutputBuilder) -> bool
fn eq(&self, other: &GetRuleOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetRuleOutputBuilder
Auto Trait Implementations§
impl Freeze for GetRuleOutputBuilder
impl RefUnwindSafe for GetRuleOutputBuilder
impl Send for GetRuleOutputBuilder
impl Sync for GetRuleOutputBuilder
impl Unpin for GetRuleOutputBuilder
impl UnwindSafe for GetRuleOutputBuilder
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