public static interface GetRuleResponse.Builder extends RbinResponse.Builder, SdkPojo, CopyableBuilder<GetRuleResponse.Builder,GetRuleResponse>
| Modifier and Type | Method and Description |
|---|---|
GetRuleResponse.Builder |
description(String description)
The retention rule description.
|
GetRuleResponse.Builder |
identifier(String identifier)
The unique ID of the retention rule.
|
default GetRuleResponse.Builder |
lockConfiguration(Consumer<LockConfiguration.Builder> lockConfiguration)
Information about the retention rule lock configuration.
|
GetRuleResponse.Builder |
lockConfiguration(LockConfiguration lockConfiguration)
Information about the retention rule lock configuration.
|
GetRuleResponse.Builder |
lockEndTime(Instant lockEndTime)
The date and time at which the unlock delay is set to expire.
|
GetRuleResponse.Builder |
lockState(LockState lockState)
The lock state for the retention rule.
|
GetRuleResponse.Builder |
lockState(String lockState)
The lock state for the retention rule.
|
GetRuleResponse.Builder |
resourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
|
GetRuleResponse.Builder |
resourceTags(Consumer<ResourceTag.Builder>... resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
|
GetRuleResponse.Builder |
resourceTags(ResourceTag... resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
|
GetRuleResponse.Builder |
resourceType(ResourceType resourceType)
The resource type retained by the retention rule.
|
GetRuleResponse.Builder |
resourceType(String resourceType)
The resource type retained by the retention rule.
|
default GetRuleResponse.Builder |
retentionPeriod(Consumer<RetentionPeriod.Builder> retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
|
GetRuleResponse.Builder |
retentionPeriod(RetentionPeriod retentionPeriod)
Information about the retention period for which the retention rule is to retain resources.
|
GetRuleResponse.Builder |
status(RuleStatus status)
The state of the retention rule.
|
GetRuleResponse.Builder |
status(String status)
The state of the retention rule.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetRuleResponse.Builder identifier(String identifier)
The unique ID of the retention rule.
identifier - The unique ID of the retention rule.GetRuleResponse.Builder description(String description)
The retention rule description.
description - The retention rule description.GetRuleResponse.Builder resourceType(String resourceType)
The resource type retained by the retention rule.
resourceType - The resource type retained by the retention rule.ResourceType,
ResourceTypeGetRuleResponse.Builder resourceType(ResourceType resourceType)
The resource type retained by the retention rule.
resourceType - The resource type retained by the retention rule.ResourceType,
ResourceTypeGetRuleResponse.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 GetRuleResponse.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)GetRuleResponse.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.GetRuleResponse.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.GetRuleResponse.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) GetRuleResponse.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,
RuleStatusGetRuleResponse.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,
RuleStatusGetRuleResponse.Builder lockConfiguration(LockConfiguration lockConfiguration)
Information about the retention rule lock configuration.
lockConfiguration - Information about the retention rule lock configuration.default GetRuleResponse.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)GetRuleResponse.Builder lockState(String lockState)
The lock state for the retention rule.
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock delay
period. The retention rule can be modified or deleted only after the unlock delay period has expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the
required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked, it can
transition between the locked and unlocked states only; it can never transition
back to null.
lockState - The lock state for the retention rule.
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock
delay period. The retention rule can be modified or deleted only after the unlock delay period has
expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user
with the required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked,
it can transition between the locked and unlocked states only; it can never
transition back to null.
LockState,
LockStateGetRuleResponse.Builder lockState(LockState lockState)
The lock state for the retention rule.
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock delay
period. The retention rule can be modified or deleted only after the unlock delay period has expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the
required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked, it can
transition between the locked and unlocked states only; it can never transition
back to null.
lockState - The lock state for the retention rule.
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock
delay period. The retention rule can be modified or deleted only after the unlock delay period has
expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user
with the required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked,
it can transition between the locked and unlocked states only; it can never
transition back to null.
LockState,
LockStateGetRuleResponse.Builder lockEndTime(Instant lockEndTime)
The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
lockEndTime - The date and time at which the unlock delay is set to expire. Only returned for retention rules that
have been unlocked and that are still within the unlock delay period.Copyright © 2023. All rights reserved.