Struct aws_sdk_rbin::operation::update_rule::builders::UpdateRuleInputBuilder
source · #[non_exhaustive]pub struct UpdateRuleInputBuilder { /* private fields */ }
Expand description
A builder for UpdateRuleInput
.
Implementations§
source§impl UpdateRuleInputBuilder
impl UpdateRuleInputBuilder
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.
This field is required.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 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 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
This parameter is currently not supported. You can't update a retention rule's resource type after creation.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
This parameter is currently not supported. You can't update a retention rule's resource type after creation.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
This parameter is currently not supported. You can't update a retention rule's resource type after creation.
Appends an item to resource_tags
.
To override the contents of this collection use set_resource_tags
.
Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.
Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.
Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.
sourcepub fn build(self) -> Result<UpdateRuleInput, BuildError>
pub fn build(self) -> Result<UpdateRuleInput, BuildError>
Consumes the builder and constructs a UpdateRuleInput
.
source§impl UpdateRuleInputBuilder
impl UpdateRuleInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateRuleOutput, SdkError<UpdateRuleError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateRuleOutput, SdkError<UpdateRuleError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateRuleInputBuilder
impl Clone for UpdateRuleInputBuilder
source§fn clone(&self) -> UpdateRuleInputBuilder
fn clone(&self) -> UpdateRuleInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateRuleInputBuilder
impl Debug for UpdateRuleInputBuilder
source§impl Default for UpdateRuleInputBuilder
impl Default for UpdateRuleInputBuilder
source§fn default() -> UpdateRuleInputBuilder
fn default() -> UpdateRuleInputBuilder
source§impl PartialEq for UpdateRuleInputBuilder
impl PartialEq for UpdateRuleInputBuilder
source§fn eq(&self, other: &UpdateRuleInputBuilder) -> bool
fn eq(&self, other: &UpdateRuleInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.