public static interface UpdateRuleRequest.Builder extends RbinRequest.Builder, SdkPojo, CopyableBuilder<UpdateRuleRequest.Builder,UpdateRuleRequest>
| Modifier and Type | Method and Description |
|---|---|
UpdateRuleRequest.Builder |
description(String description)
The retention rule description.
|
UpdateRuleRequest.Builder |
identifier(String identifier)
The unique ID of the retention rule.
|
UpdateRuleRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
UpdateRuleRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
UpdateRuleRequest.Builder |
resourceTags(Collection<ResourceTag> resourceTags)
Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention
rule.
|
UpdateRuleRequest.Builder |
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.
|
UpdateRuleRequest.Builder |
resourceTags(ResourceTag... resourceTags)
Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention
rule.
|
UpdateRuleRequest.Builder |
resourceType(ResourceType resourceType)
|
UpdateRuleRequest.Builder |
resourceType(String resourceType)
|
default UpdateRuleRequest.Builder |
retentionPeriod(Consumer<RetentionPeriod.Builder> retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
|
UpdateRuleRequest.Builder |
retentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildUpdateRuleRequest.Builder identifier(String identifier)
The unique ID of the retention rule.
identifier - The unique ID of the retention rule.UpdateRuleRequest.Builder retentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
retentionPeriod - Information about the retention period for which the retention rule is to retain resources.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.Builder avoiding the
need to create one manually via RetentionPeriod.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to retentionPeriod(RetentionPeriod).
retentionPeriod - a consumer that will call methods on RetentionPeriod.BuilderretentionPeriod(RetentionPeriod)UpdateRuleRequest.Builder description(String description)
The retention rule description.
description - The retention rule description.UpdateRuleRequest.Builder resourceType(String resourceType)
This parameter is currently not supported. You can't update a retention rule's resource type after creation.
resourceType - This parameter is currently not supported. You can't update a retention rule's resource type after creation.
ResourceType,
ResourceTypeUpdateRuleRequest.Builder resourceType(ResourceType resourceType)
This parameter is currently not supported. You can't update a retention rule's resource type after creation.
resourceType - This parameter is currently not supported. You can't update a retention rule's resource type after creation.
ResourceType,
ResourceTypeUpdateRuleRequest.Builder resourceTags(Collection<ResourceTag> 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.
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.
UpdateRuleRequest.Builder resourceTags(ResourceTag... 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.
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.
UpdateRuleRequest.Builder 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. 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.Builder avoiding the need to create one
manually via ResourceTag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #resourceTags(List.
resourceTags - a consumer that will call methods on
ResourceTag.Builder#resourceTags(java.util.Collection) UpdateRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderUpdateRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.