public static final class StorageObject.Retention
extends com.google.api.client.json.GenericJson
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Retention() |
Modifier and Type | Method and Description |
---|---|
StorageObject.Retention |
clone() |
String |
getMode()
The bucket's object retention mode, can only be Unlocked or Locked.
|
com.google.api.client.util.DateTime |
getRetainUntilTime()
A time in RFC 3339 format until which object retention protects this object.
|
StorageObject.Retention |
set(String fieldName,
Object value) |
StorageObject.Retention |
setMode(String mode)
The bucket's object retention mode, can only be Unlocked or Locked.
|
StorageObject.Retention |
setRetainUntilTime(com.google.api.client.util.DateTime retainUntilTime)
A time in RFC 3339 format until which object retention protects this object.
|
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 String getMode()
null
for nonepublic StorageObject.Retention setMode(String mode)
mode
- mode or null
for nonepublic com.google.api.client.util.DateTime getRetainUntilTime()
null
for nonepublic StorageObject.Retention setRetainUntilTime(com.google.api.client.util.DateTime retainUntilTime)
retainUntilTime
- retainUntilTime or null
for nonepublic StorageObject.Retention set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public StorageObject.Retention clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.