Class RetentionRuleDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.objectstorage.model.RetentionRuleDetails.Builder
-
- Enclosing class:
- RetentionRuleDetails
public static class RetentionRuleDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetentionRuleDetailsbuild()RetentionRuleDetails.Buildercopy(RetentionRuleDetails model)RetentionRuleDetails.BuilderdisplayName(String displayName)A user-specified name for the retention rule.RetentionRuleDetails.Builderduration(Duration duration)RetentionRuleDetails.BuildertimeRuleLocked(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.
-
-
-
Method Detail
-
displayName
public RetentionRuleDetails.Builder displayName(String displayName)
A user-specified name for the retention rule.Names can be helpful in identifying retention rules. Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
duration
public RetentionRuleDetails.Builder duration(Duration duration)
-
timeRuleLocked
public RetentionRuleDetails.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.
- Parameters:
timeRuleLocked- the value to set- Returns:
- this builder
-
build
public RetentionRuleDetails build()
-
copy
public RetentionRuleDetails.Builder copy(RetentionRuleDetails model)
-
-