public static final class Bucket.RetentionPolicy
extends com.google.api.client.json.GenericJson
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
RetentionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
Bucket.RetentionPolicy |
clone() |
com.google.api.client.util.DateTime |
getEffectiveTime()
Server-determined value that indicates the time from which policy was enforced and effective.
|
java.lang.Boolean |
getIsLocked()
Once locked, an object retention policy cannot be modified.
|
java.lang.Long |
getRetentionPeriod()
The duration in seconds that objects need to be retained.
|
Bucket.RetentionPolicy |
set(java.lang.String fieldName,
java.lang.Object value) |
Bucket.RetentionPolicy |
setEffectiveTime(com.google.api.client.util.DateTime effectiveTime)
Server-determined value that indicates the time from which policy was enforced and effective.
|
Bucket.RetentionPolicy |
setIsLocked(java.lang.Boolean isLocked)
Once locked, an object retention policy cannot be modified.
|
Bucket.RetentionPolicy |
setRetentionPeriod(java.lang.Long retentionPeriod)
The duration in seconds that objects need to be retained.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic com.google.api.client.util.DateTime getEffectiveTime()
null for nonepublic Bucket.RetentionPolicy setEffectiveTime(com.google.api.client.util.DateTime effectiveTime)
effectiveTime - effectiveTime or null for nonepublic java.lang.Boolean getIsLocked()
null for nonepublic Bucket.RetentionPolicy setIsLocked(java.lang.Boolean isLocked)
isLocked - isLocked or null for nonepublic java.lang.Long getRetentionPeriod()
null for nonepublic Bucket.RetentionPolicy setRetentionPeriod(java.lang.Long retentionPeriod)
retentionPeriod - retentionPeriod or null for nonepublic Bucket.RetentionPolicy set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Bucket.RetentionPolicy clone()
clone in class com.google.api.client.json.GenericJson