public static interface CreateRuleRequest.Builder extends RbinRequest.Builder, SdkPojo, CopyableBuilder<CreateRuleRequest.Builder,CreateRuleRequest>
| Modifier and Type | Method and Description |
|---|---|
CreateRuleRequest.Builder |
description(String description)
The retention rule description.
|
default CreateRuleRequest.Builder |
lockConfiguration(Consumer<LockConfiguration.Builder> lockConfiguration)
Information about the retention rule lock configuration.
|
CreateRuleRequest.Builder |
lockConfiguration(LockConfiguration lockConfiguration)
Information about the retention rule lock configuration.
|
CreateRuleRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateRuleRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateRuleRequest.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.
|
CreateRuleRequest.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.
|
CreateRuleRequest.Builder |
resourceTags(ResourceTag... resourceTags)
Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention
rule.
|
CreateRuleRequest.Builder |
resourceType(ResourceType resourceType)
The resource type to be retained by the retention rule.
|
CreateRuleRequest.Builder |
resourceType(String resourceType)
The resource type to be retained by the retention rule.
|
default CreateRuleRequest.Builder |
retentionPeriod(Consumer<RetentionPeriod.Builder> retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
|
CreateRuleRequest.Builder |
retentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
|
CreateRuleRequest.Builder |
tags(Collection<Tag> tags)
Information about the tags to assign to the retention rule.
|
CreateRuleRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
Information about the tags to assign to the retention rule.
|
CreateRuleRequest.Builder |
tags(Tag... tags)
Information about the tags to assign to the retention rule.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateRuleRequest.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 CreateRuleRequest.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)CreateRuleRequest.Builder description(String description)
The retention rule description.
description - The retention rule description.CreateRuleRequest.Builder tags(Collection<Tag> tags)
Information about the tags to assign to the retention rule.
tags - Information about the tags to assign to the retention rule.CreateRuleRequest.Builder tags(Tag... tags)
Information about the tags to assign to the retention rule.
tags - Information about the tags to assign to the retention rule.CreateRuleRequest.Builder tags(Consumer<Tag.Builder>... tags)
Information about the tags to assign to the retention rule.
This is a convenience method that creates an instance of theTag.Builder avoiding the need to create one manually via
Tag.builder().
When the Consumer completes, SdkBuilder.build()
is called immediately and its result is passed to #tags(List.
tags - a consumer that will call methods on Tag.Builder#tags(java.util.Collection) CreateRuleRequest.Builder resourceType(String resourceType)
The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots and EBS-backed
AMIs are supported. To retain snapshots, specify EBS_SNAPSHOT. To retain EBS-backed AMIs,
specify EC2_IMAGE.
resourceType - The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots and
EBS-backed AMIs are supported. To retain snapshots, specify EBS_SNAPSHOT. To retain
EBS-backed AMIs, specify EC2_IMAGE.ResourceType,
ResourceTypeCreateRuleRequest.Builder resourceType(ResourceType resourceType)
The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots and EBS-backed
AMIs are supported. To retain snapshots, specify EBS_SNAPSHOT. To retain EBS-backed AMIs,
specify EC2_IMAGE.
resourceType - The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots and
EBS-backed AMIs are supported. To retain snapshots, specify EBS_SNAPSHOT. To retain
EBS-backed AMIs, specify EC2_IMAGE.ResourceType,
ResourceTypeCreateRuleRequest.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.
CreateRuleRequest.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.
CreateRuleRequest.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) CreateRuleRequest.Builder lockConfiguration(LockConfiguration lockConfiguration)
Information about the retention rule lock configuration.
lockConfiguration - Information about the retention rule lock configuration.default CreateRuleRequest.Builder lockConfiguration(Consumer<LockConfiguration.Builder> lockConfiguration)
Information about the retention rule lock configuration.
This is a convenience method that creates an instance of theLockConfiguration.Builder avoiding the
need to create one manually via LockConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to lockConfiguration(LockConfiguration).
lockConfiguration - a consumer that will call methods on LockConfiguration.BuilderlockConfiguration(LockConfiguration)CreateRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.