public static final class Bucket.Lifecycle.Rule.Condition
extends com.google.api.client.json.GenericJson
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Condition() |
| Modifier and Type | Method and Description |
|---|---|
Bucket.Lifecycle.Rule.Condition |
clone() |
Integer |
getAge()
Age of an object (in days).
|
com.google.api.client.util.DateTime |
getCreatedBefore()
A date in RFC 3339 format with only the date part (for instance, "2013-01-15").
|
Boolean |
getIsLive()
Relevant only for versioned objects.
|
String |
getMatchesPattern()
A regular expression that satisfies the RE2 syntax.
|
List<String> |
getMatchesStorageClass()
Objects having any of the storage classes specified by this condition will be matched.
|
Integer |
getNumNewerVersions()
Relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition |
set(String fieldName,
Object value) |
Bucket.Lifecycle.Rule.Condition |
setAge(Integer age)
Age of an object (in days).
|
Bucket.Lifecycle.Rule.Condition |
setCreatedBefore(com.google.api.client.util.DateTime createdBefore)
A date in RFC 3339 format with only the date part (for instance, "2013-01-15").
|
Bucket.Lifecycle.Rule.Condition |
setIsLive(Boolean isLive)
Relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition |
setMatchesPattern(String matchesPattern)
A regular expression that satisfies the RE2 syntax.
|
Bucket.Lifecycle.Rule.Condition |
setMatchesStorageClass(List<String> matchesStorageClass)
Objects having any of the storage classes specified by this condition will be matched.
|
Bucket.Lifecycle.Rule.Condition |
setNumNewerVersions(Integer numNewerVersions)
Relevant only for versioned objects.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Integer getAge()
null for nonepublic Bucket.Lifecycle.Rule.Condition setAge(Integer age)
age - age or null for nonepublic com.google.api.client.util.DateTime getCreatedBefore()
null for nonepublic Bucket.Lifecycle.Rule.Condition setCreatedBefore(com.google.api.client.util.DateTime createdBefore)
createdBefore - createdBefore or null for nonepublic Boolean getIsLive()
null for nonepublic Bucket.Lifecycle.Rule.Condition setIsLive(Boolean isLive)
isLive - isLive or null for nonepublic String getMatchesPattern()
null for nonepublic Bucket.Lifecycle.Rule.Condition setMatchesPattern(String matchesPattern)
matchesPattern - matchesPattern or null for nonepublic List<String> getMatchesStorageClass()
null for nonepublic Bucket.Lifecycle.Rule.Condition setMatchesStorageClass(List<String> matchesStorageClass)
matchesStorageClass - matchesStorageClass or null for nonepublic Integer getNumNewerVersions()
null for nonepublic Bucket.Lifecycle.Rule.Condition setNumNewerVersions(Integer numNewerVersions)
numNewerVersions - numNewerVersions or null for nonepublic Bucket.Lifecycle.Rule.Condition set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Bucket.Lifecycle.Rule.Condition clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2018 Google. All rights reserved.