Interface CreateRuleRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateRuleRequest.Builder,CreateRuleRequest>,RbinRequest.Builder,SdkBuilder<CreateRuleRequest.Builder,CreateRuleRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateRuleRequest
public static interface CreateRuleRequest.Builder extends RbinRequest.Builder, SdkPojo, CopyableBuilder<CreateRuleRequest.Builder,CreateRuleRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateRuleRequest.Builderdescription(String description)The retention rule description.default CreateRuleRequest.BuilderlockConfiguration(Consumer<LockConfiguration.Builder> lockConfiguration)Information about the retention rule lock configuration.CreateRuleRequest.BuilderlockConfiguration(LockConfiguration lockConfiguration)Information about the retention rule lock configuration.CreateRuleRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateRuleRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateRuleRequest.BuilderresourceTags(Collection<ResourceTag> resourceTags)Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule.CreateRuleRequest.BuilderresourceTags(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.BuilderresourceTags(ResourceTag... resourceTags)Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule.CreateRuleRequest.BuilderresourceType(String resourceType)The resource type to be retained by the retention rule.CreateRuleRequest.BuilderresourceType(ResourceType resourceType)The resource type to be retained by the retention rule.default CreateRuleRequest.BuilderretentionPeriod(Consumer<RetentionPeriod.Builder> retentionPeriod)Information about the retention period for which the retention rule is to retain resources.CreateRuleRequest.BuilderretentionPeriod(RetentionPeriod retentionPeriod)Information about the retention period for which the retention rule is to retain resources.CreateRuleRequest.Buildertags(Collection<Tag> tags)Information about the tags to assign to the retention rule.CreateRuleRequest.Buildertags(Consumer<Tag.Builder>... tags)Information about the tags to assign to the retention rule.CreateRuleRequest.Buildertags(Tag... tags)Information about the tags to assign to the retention rule.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.rbin.model.RbinRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
retentionPeriod
CreateRuleRequest.Builder retentionPeriod(RetentionPeriod 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 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.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:
retentionPeriod(RetentionPeriod)
-
description
CreateRuleRequest.Builder description(String 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.
-
tags
CreateRuleRequest.Builder tags(Collection<Tag> tags)
Information about the tags to assign to the retention rule.
- Parameters:
tags- Information about the tags to assign to the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateRuleRequest.Builder tags(Tag... tags)
Information about the tags to assign to the retention rule.
- Parameters:
tags- Information about the tags to assign to the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
resourceType
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, specifyEC2_IMAGE.- Parameters:
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, specifyEBS_SNAPSHOT. To retain EBS-backed AMIs, specifyEC2_IMAGE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
resourceType
CreateRuleRequest.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, specifyEC2_IMAGE.- Parameters:
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, specifyEBS_SNAPSHOT. To retain EBS-backed AMIs, specifyEC2_IMAGE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
resourceTags
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. 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
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.
- 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
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.Builderavoiding the need to create one manually viaResourceTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resourceTags(List.) - 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:
#resourceTags(java.util.Collection)
-
lockConfiguration
CreateRuleRequest.Builder lockConfiguration(LockConfiguration lockConfiguration)
Information about the retention rule lock configuration.
- Parameters:
lockConfiguration- Information about the retention rule lock configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lockConfiguration
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.Builderavoiding the need to create one manually viaLockConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolockConfiguration(LockConfiguration).- Parameters:
lockConfiguration- a consumer that will call methods onLockConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
lockConfiguration(LockConfiguration)
-
overrideConfiguration
CreateRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-