public static final class Bucket.RetentionPolicy
extends com.google.api.client.json.GenericJson
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 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.
|
Boolean |
getIsLocked()
Once locked, an object retention policy cannot be modified.
|
Long |
getRetentionPeriod()
The duration in seconds that objects need to be retained.
|
Bucket.RetentionPolicy |
set(String fieldName,
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(Boolean isLocked)
Once locked, an object retention policy cannot be modified.
|
Bucket.RetentionPolicy |
setRetentionPeriod(Long retentionPeriod)
The duration in seconds that objects need to be retained.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic 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 Boolean getIsLocked()
null for nonepublic Bucket.RetentionPolicy setIsLocked(Boolean isLocked)
isLocked - isLocked or null for nonepublic Long getRetentionPeriod()
null for nonepublic Bucket.RetentionPolicy setRetentionPeriod(Long retentionPeriod)
retentionPeriod - retentionPeriod or null for nonepublic Bucket.RetentionPolicy set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Bucket.RetentionPolicy clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.