Class RetentionRule.Builder
- java.lang.Object
- 
- com.oracle.bmc.objectstorage.model.RetentionRule.Builder
 
- 
- Enclosing class:
- RetentionRule
 
 public static class RetentionRule.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RetentionRulebuild()RetentionRule.Buildercopy(RetentionRule model)RetentionRule.BuilderdisplayName(String displayName)User specified name for the retention rule.RetentionRule.Builderduration(Duration duration)RetentionRule.Builderetag(String etag)The entity tag (ETag) for the retention rule.RetentionRule.Builderid(String id)Unique identifier for the retention rule.RetentionRule.BuildertimeCreated(Date timeCreated)The date and time that the retention rule was created as per RFC3339.RetentionRule.BuildertimeModified(Date timeModified)The date and time that the retention rule was modified as per RFC3339.RetentionRule.BuildertimeRuleLocked(Date timeRuleLocked)The date and time as per RFC 3339 after which this rule becomes locked.
 
- 
- 
- 
Method Detail- 
idpublic RetentionRule.Builder id(String id) Unique identifier for the retention rule.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic RetentionRule.Builder displayName(String displayName) User specified name for the retention rule.- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
durationpublic RetentionRule.Builder duration(Duration duration) 
 - 
etagpublic RetentionRule.Builder etag(String etag) The entity tag (ETag) for the retention rule.- Parameters:
- etag- the value to set
- Returns:
- this builder
 
 - 
timeRuleLockedpublic RetentionRule.Builder timeRuleLocked(Date timeRuleLocked) The date and time as per RFC 3339 after which this rule becomes locked.and can only be deleted by deleting the bucket. - Parameters:
- timeRuleLocked- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic RetentionRule.Builder timeCreated(Date timeCreated) The date and time that the retention rule was created as per RFC3339.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeModifiedpublic RetentionRule.Builder timeModified(Date timeModified) The date and time that the retention rule was modified as per RFC3339.- Parameters:
- timeModified- the value to set
- Returns:
- this builder
 
 - 
buildpublic RetentionRule build() 
 - 
copypublic RetentionRule.Builder copy(RetentionRule model) 
 
- 
 
-