public static class UpdateRetentionRuleDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UpdateRetentionRuleDetails |
build() |
UpdateRetentionRuleDetails.Builder |
copy(UpdateRetentionRuleDetails model) |
UpdateRetentionRuleDetails.Builder |
displayName(String displayName)
A user-specified name for the retention rule.
|
UpdateRetentionRuleDetails.Builder |
duration(Duration duration) |
UpdateRetentionRuleDetails.Builder |
timeRuleLocked(Date timeRuleLocked)
The date and time as per RFC 3339 after which this
rule is locked and can only be deleted by deleting the bucket.
|
public UpdateRetentionRuleDetails.Builder displayName(String displayName)
A user-specified name for the retention rule. Names can be helpful in identifying retention rules. Avoid entering confidential information.
displayName
- the value to setpublic UpdateRetentionRuleDetails.Builder duration(Duration duration)
public UpdateRetentionRuleDetails.Builder timeRuleLocked(Date timeRuleLocked)
The date and time as per RFC 3339 after which this rule is locked and can only be deleted by deleting the bucket. Once a rule is locked, only increases in the duration are allowed and no other properties can be changed. This property cannot be updated for rules that are in a locked state. Specifying it when a duration is not specified is considered an error.
timeRuleLocked
- the value to setpublic UpdateRetentionRuleDetails build()
public UpdateRetentionRuleDetails.Builder copy(UpdateRetentionRuleDetails model)
Copyright © 2016–2024. All rights reserved.