public static final class Bucket.RetentionPolicy extends GenericJson
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
RetentionPolicy() |
Modifier and Type | Method and Description |
---|---|
Bucket.RetentionPolicy |
clone() |
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(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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public DateTime getEffectiveTime()
null
for nonepublic Bucket.RetentionPolicy setEffectiveTime(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 GenericJson
public Bucket.RetentionPolicy clone()
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.