public static final class Bucket.Lifecycle.Rule.Condition
extends com.google.api.client.json.GenericJson
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Bucket.Lifecycle.Rule.Condition() |
Modifier and Type | Method and Description |
---|---|
Bucket.Lifecycle.Rule.Condition |
clone() |
java.lang.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").
|
java.lang.Boolean |
getIsLive()
Relevant only for versioned objects.
|
java.lang.Integer |
getNumNewerVersions()
Relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition |
set(java.lang.String fieldName,
java.lang.Object value) |
Bucket.Lifecycle.Rule.Condition |
setAge(java.lang.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(java.lang.Boolean isLive)
Relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition |
setNumNewerVersions(java.lang.Integer numNewerVersions)
Relevant only for versioned objects.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.Integer getAge()
null
for nonepublic Bucket.Lifecycle.Rule.Condition setAge(java.lang.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 java.lang.Boolean getIsLive()
null
for nonepublic Bucket.Lifecycle.Rule.Condition setIsLive(java.lang.Boolean isLive)
isLive
- isLive or null
for nonepublic java.lang.Integer getNumNewerVersions()
null
for nonepublic Bucket.Lifecycle.Rule.Condition setNumNewerVersions(java.lang.Integer numNewerVersions)
numNewerVersions
- numNewerVersions or null
for nonepublic Bucket.Lifecycle.Rule.Condition set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Bucket.Lifecycle.Rule.Condition clone()
clone
in class com.google.api.client.json.GenericJson