Interface RuleSummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RuleSummary.Builder,
,RuleSummary> SdkBuilder<RuleSummary.Builder,
,RuleSummary> SdkPojo
- Enclosing class:
RuleSummary
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The retention rule description.identifier
(String identifier) The unique ID of the retention rule.[Region-level retention rules only] The lock state for the retention rule.[Region-level retention rules only] The lock state for the retention rule.default RuleSummary.Builder
retentionPeriod
(Consumer<RetentionPeriod.Builder> retentionPeriod) Information about the retention period for which the retention rule is to retain resources.retentionPeriod
(RetentionPeriod retentionPeriod) Information about the retention period for which the retention rule is to retain resources.The Amazon Resource Name (ARN) of the retention rule.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
identifier
The unique ID of the retention rule.
- Parameters:
identifier
- The unique ID of the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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
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 viaRetentionPeriod.builder()
.When the
Consumer
completes,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:
-
lockState
[Region-level retention rules only] 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 thelocked
andunlocked
states only; it can never transition back tonull
.
- Parameters:
lockState
- [Region-level retention rules only] 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 thelocked
andunlocked
states only; it can never transition back tonull
.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
lockState
[Region-level retention rules only] 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 thelocked
andunlocked
states only; it can never transition back tonull
.
- Parameters:
lockState
- [Region-level retention rules only] 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 thelocked
andunlocked
states only; it can never transition back tonull
.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
ruleArn
The Amazon Resource Name (ARN) of the retention rule.
- Parameters:
ruleArn
- The Amazon Resource Name (ARN) of the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-