public static final class Bucket.Lifecycle.Rule.Condition extends GenericJson
GenericData.Flags
AbstractMap.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).
|
DateTime |
getCreatedBefore()
A date in RFC 3339 format with only the date part (for instance, "2013-01-15").
|
DateTime |
getCustomTimeBefore()
A date in RFC 3339 format with only the date part (for instance, "2013-01-15").
|
Integer |
getDaysSinceCustomTime()
Number of days elapsed since the user-specified timestamp set on an object.
|
Integer |
getDaysSinceNoncurrentTime()
Number of days elapsed since the noncurrent timestamp of an object.
|
Boolean |
getIsLive()
Relevant only for versioned objects.
|
String |
getMatchesPattern()
A regular expression that satisfies the RE2 syntax.
|
List<String> |
getMatchesPrefix()
List of object name prefixes.
|
List<String> |
getMatchesStorageClass()
Objects having any of the storage classes specified by this condition will be matched.
|
List<String> |
getMatchesSuffix()
List of object name suffixes.
|
DateTime |
getNoncurrentTimeBefore()
A date in RFC 3339 format with only the date part (for instance, "2013-01-15").
|
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(DateTime createdBefore)
A date in RFC 3339 format with only the date part (for instance, "2013-01-15").
|
Bucket.Lifecycle.Rule.Condition |
setCustomTimeBefore(DateTime customTimeBefore)
A date in RFC 3339 format with only the date part (for instance, "2013-01-15").
|
Bucket.Lifecycle.Rule.Condition |
setDaysSinceCustomTime(Integer daysSinceCustomTime)
Number of days elapsed since the user-specified timestamp set on an object.
|
Bucket.Lifecycle.Rule.Condition |
setDaysSinceNoncurrentTime(Integer daysSinceNoncurrentTime)
Number of days elapsed since the noncurrent timestamp of an object.
|
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 |
setMatchesPrefix(List<String> matchesPrefix)
List of object name prefixes.
|
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 |
setMatchesSuffix(List<String> matchesSuffix)
List of object name suffixes.
|
Bucket.Lifecycle.Rule.Condition |
setNoncurrentTimeBefore(DateTime noncurrentTimeBefore)
A date in RFC 3339 format with only the date part (for instance, "2013-01-15").
|
Bucket.Lifecycle.Rule.Condition |
setNumNewerVersions(Integer numNewerVersions)
Relevant only for versioned objects.
|
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 Integer getAge()
null
for nonepublic Bucket.Lifecycle.Rule.Condition setAge(Integer age)
age
- age or null
for nonepublic DateTime getCreatedBefore()
null
for nonepublic Bucket.Lifecycle.Rule.Condition setCreatedBefore(DateTime createdBefore)
createdBefore
- createdBefore or null
for nonepublic DateTime getCustomTimeBefore()
null
for nonepublic Bucket.Lifecycle.Rule.Condition setCustomTimeBefore(DateTime customTimeBefore)
customTimeBefore
- customTimeBefore or null
for nonepublic Integer getDaysSinceCustomTime()
null
for nonepublic Bucket.Lifecycle.Rule.Condition setDaysSinceCustomTime(Integer daysSinceCustomTime)
daysSinceCustomTime
- daysSinceCustomTime or null
for nonepublic Integer getDaysSinceNoncurrentTime()
null
for nonepublic Bucket.Lifecycle.Rule.Condition setDaysSinceNoncurrentTime(Integer daysSinceNoncurrentTime)
daysSinceNoncurrentTime
- daysSinceNoncurrentTime 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> getMatchesPrefix()
null
for nonepublic Bucket.Lifecycle.Rule.Condition setMatchesPrefix(List<String> matchesPrefix)
matchesPrefix
- matchesPrefix or null
for nonepublic List<String> getMatchesStorageClass()
null
for nonepublic Bucket.Lifecycle.Rule.Condition setMatchesStorageClass(List<String> matchesStorageClass)
matchesStorageClass
- matchesStorageClass or null
for nonepublic List<String> getMatchesSuffix()
null
for nonepublic Bucket.Lifecycle.Rule.Condition setMatchesSuffix(List<String> matchesSuffix)
matchesSuffix
- matchesSuffix or null
for nonepublic DateTime getNoncurrentTimeBefore()
null
for nonepublic Bucket.Lifecycle.Rule.Condition setNoncurrentTimeBefore(DateTime noncurrentTimeBefore)
noncurrentTimeBefore
- noncurrentTimeBefore 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 GenericJson
public Bucket.Lifecycle.Rule.Condition clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.