Class RetentionRule.Builder
- java.lang.Object
-
- com.oracle.bmc.objectstorage.model.RetentionRule.Builder
-
- Enclosing class:
- RetentionRule
public static class RetentionRule.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetentionRule
build()
RetentionRule.Builder
copy(RetentionRule model)
RetentionRule.Builder
displayName(String displayName)
User specified name for the retention rule.RetentionRule.Builder
duration(Duration duration)
RetentionRule.Builder
etag(String etag)
The entity tag (ETag) for the retention rule.RetentionRule.Builder
id(String id)
Unique identifier for the retention rule.RetentionRule.Builder
timeCreated(Date timeCreated)
The date and time that the retention rule was created as per RFC3339.RetentionRule.Builder
timeModified(Date timeModified)
The date and time that the retention rule was modified as per RFC3339.RetentionRule.Builder
timeRuleLocked(Date timeRuleLocked)
The date and time as per RFC 3339 after which this rule becomes locked.
-
-
-
Method Detail
-
id
public RetentionRule.Builder id(String id)
Unique identifier for the retention rule.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public RetentionRule.Builder displayName(String displayName)
User specified name for the retention rule.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
duration
public RetentionRule.Builder duration(Duration duration)
-
etag
public RetentionRule.Builder etag(String etag)
The entity tag (ETag) for the retention rule.- Parameters:
etag
- the value to set- Returns:
- this builder
-
timeRuleLocked
public 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
-
timeCreated
public 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
-
timeModified
public 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
-
build
public RetentionRule build()
-
copy
public RetentionRule.Builder copy(RetentionRule model)
-
-