Interface UpdateRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateRuleRequest.Builder,,UpdateRuleRequest> RbinRequest.Builder,SdkBuilder<UpdateRuleRequest.Builder,,UpdateRuleRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) The retention rule description.identifier(String identifier) The unique ID of the retention rule.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resourceTags(Collection<ResourceTag> resourceTags) Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule.resourceTags(Consumer<ResourceTag.Builder>... resourceTags) Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule.resourceTags(ResourceTag... resourceTags) Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule.resourceType(String resourceType) resourceType(ResourceType resourceType) default UpdateRuleRequest.BuilderretentionPeriod(Consumer<RetentionPeriod.Builder> retentionPeriod) Information about the retention period for which the retention rule is to retain resources.retentionPeriod(RetentionPeriod retentionPeriod) Information about the retention period for which the retention rule is to retain resources.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.rbin.model.RbinRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
identifier
The unique ID of the retention rule.
- Parameters:
identifier- The unique ID of the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionPeriod
Information about the retention period for which the retention rule is to retain resources.
- Parameters:
retentionPeriod- Information about the retention period for which the retention rule is to retain resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionPeriod
default UpdateRuleRequest.Builder retentionPeriod(Consumer<RetentionPeriod.Builder> retentionPeriod) Information about the retention period for which the retention rule is to retain resources.
This is a convenience method that creates an instance of theRetentionPeriod.Builderavoiding the need to create one manually viaRetentionPeriod.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretentionPeriod(RetentionPeriod).- Parameters:
retentionPeriod- a consumer that will call methods onRetentionPeriod.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The retention rule description.
- Parameters:
description- The retention rule description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
This parameter is currently not supported. You can't update a retention rule's resource type after creation.
- Parameters:
resourceType-This parameter is currently not supported. You can't update a retention rule's resource type after creation.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
This parameter is currently not supported. You can't update a retention rule's resource type after creation.
- Parameters:
resourceType-This parameter is currently not supported. You can't update a retention rule's resource type after creation.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceTags
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.
- Parameters:
resourceTags- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTags
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.
- Parameters:
resourceTags- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTags
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.
This is a convenience method that creates an instance of theResourceTag.Builderavoiding the need to create one manually viaResourceTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceTags(List<ResourceTag>).- Parameters:
resourceTags- a consumer that will call methods onResourceTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-