public static interface CreateRuleResponse.Builder extends RbinResponse.Builder, SdkPojo, CopyableBuilder<CreateRuleResponse.Builder,CreateRuleResponse>
| Modifier and Type | Method and Description |
|---|---|
CreateRuleResponse.Builder |
description(String description)
The retention rule description.
|
CreateRuleResponse.Builder |
identifier(String identifier)
The unique ID of the retention rule.
|
CreateRuleResponse.Builder |
resourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
|
CreateRuleResponse.Builder |
resourceTags(Consumer<ResourceTag.Builder>... resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
|
CreateRuleResponse.Builder |
resourceTags(ResourceTag... resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
|
CreateRuleResponse.Builder |
resourceType(ResourceType resourceType)
The resource type retained by the retention rule.
|
CreateRuleResponse.Builder |
resourceType(String resourceType)
The resource type retained by the retention rule.
|
default CreateRuleResponse.Builder |
retentionPeriod(Consumer<RetentionPeriod.Builder> retentionPeriod)
Sets the value of the RetentionPeriod property for this object.
|
CreateRuleResponse.Builder |
retentionPeriod(RetentionPeriod retentionPeriod)
Sets the value of the RetentionPeriod property for this object.
|
CreateRuleResponse.Builder |
status(RuleStatus status)
The state of the retention rule.
|
CreateRuleResponse.Builder |
status(String status)
The state of the retention rule.
|
CreateRuleResponse.Builder |
tags(Collection<Tag> tags)
Information about the tags assigned to the retention rule.
|
CreateRuleResponse.Builder |
tags(Consumer<Tag.Builder>... tags)
Information about the tags assigned to the retention rule.
|
CreateRuleResponse.Builder |
tags(Tag... tags)
Information about the tags assigned to the retention rule.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateRuleResponse.Builder identifier(String identifier)
The unique ID of the retention rule.
identifier - The unique ID of the retention rule.CreateRuleResponse.Builder retentionPeriod(RetentionPeriod retentionPeriod)
retentionPeriod - The new value for the RetentionPeriod property for this object.default CreateRuleResponse.Builder retentionPeriod(Consumer<RetentionPeriod.Builder> retentionPeriod)
RetentionPeriod.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)CreateRuleResponse.Builder description(String description)
The retention rule description.
description - The retention rule description.CreateRuleResponse.Builder tags(Collection<Tag> tags)
Information about the tags assigned to the retention rule.
tags - Information about the tags assigned to the retention rule.CreateRuleResponse.Builder tags(Tag... tags)
Information about the tags assigned to the retention rule.
tags - Information about the tags assigned to the retention rule.CreateRuleResponse.Builder tags(Consumer<Tag.Builder>... tags)
Information about the tags assigned 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) CreateRuleResponse.Builder resourceType(String resourceType)
The resource type retained by the retention rule.
resourceType - The resource type retained by the retention rule.ResourceType,
ResourceTypeCreateRuleResponse.Builder resourceType(ResourceType resourceType)
The resource type retained by the retention rule.
resourceType - The resource type retained by the retention rule.ResourceType,
ResourceTypeCreateRuleResponse.Builder resourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
resourceTags - Information about the resource tags used to identify resources that are retained by the retention
rule.CreateRuleResponse.Builder resourceTags(ResourceTag... resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
resourceTags - Information about the resource tags used to identify resources that are retained by the retention
rule.CreateRuleResponse.Builder resourceTags(Consumer<ResourceTag.Builder>... resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
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) CreateRuleResponse.Builder status(String status)
The state of the retention rule. Only retention rules that are in the available state retain
resources.
status - The state of the retention rule. Only retention rules that are in the available state
retain resources.RuleStatus,
RuleStatusCreateRuleResponse.Builder status(RuleStatus status)
The state of the retention rule. Only retention rules that are in the available state retain
resources.
status - The state of the retention rule. Only retention rules that are in the available state
retain resources.RuleStatus,
RuleStatusCopyright © 2022. All rights reserved.