public static class RetentionRule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public RetentionRule.Builder id(String id)
Unique identifier for the retention rule.
id
- the value to setpublic RetentionRule.Builder displayName(String displayName)
User specified name for the retention rule.
displayName
- the value to setpublic RetentionRule.Builder duration(Duration duration)
public RetentionRule.Builder etag(String etag)
The entity tag (ETag) for the retention rule.
etag
- the value to setpublic 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.
timeRuleLocked
- the value to setpublic RetentionRule.Builder timeCreated(Date timeCreated)
The date and time that the retention rule was created as per RFC3339.
timeCreated
- the value to setpublic RetentionRule.Builder timeModified(Date timeModified)
The date and time that the retention rule was modified as per RFC3339.
timeModified
- the value to setpublic RetentionRule build()
public RetentionRule.Builder copy(RetentionRule model)
Copyright © 2016–2024. All rights reserved.