public static class BucketInfo.LifecycleRule.LifecycleCondition.Builder extends Object
LifecycleCondition
.Modifier and Type | Method and Description |
---|---|
BucketInfo.LifecycleRule.LifecycleCondition |
build()
Builds a
LifecycleCondition object. |
BucketInfo.LifecycleRule.LifecycleCondition.Builder |
setAge(Integer age)
Sets the age in days.
|
BucketInfo.LifecycleRule.LifecycleCondition.Builder |
setCreatedBefore(com.google.api.client.util.DateTime createdBefore)
Sets the date a Blob should be created before for an Action to be executed.
|
BucketInfo.LifecycleRule.LifecycleCondition.Builder |
setCustomTimeBefore(com.google.api.client.util.DateTime customTimeBefore)
Sets the date in RFC 3339 format with only the date part (for instance, "2013-01-15").
|
BucketInfo.LifecycleRule.LifecycleCondition.Builder |
setDaysSinceCustomTime(Integer daysSinceCustomTime)
Sets the number of days elapsed since the user-specified timestamp set on an object.
|
BucketInfo.LifecycleRule.LifecycleCondition.Builder |
setDaysSinceNoncurrentTime(Integer daysSinceNoncurrentTime)
Sets the number of days elapsed since the noncurrent timestamp of an object.
|
BucketInfo.LifecycleRule.LifecycleCondition.Builder |
setIsLive(Boolean live)
Sets an isLive Boolean condition.
|
BucketInfo.LifecycleRule.LifecycleCondition.Builder |
setMatchesStorageClass(List<StorageClass> matchesStorageClass)
Sets a list of Storage Classes for a objects that satisfy the condition to execute the
Action.
|
BucketInfo.LifecycleRule.LifecycleCondition.Builder |
setNoncurrentTimeBefore(com.google.api.client.util.DateTime noncurrentTimeBefore)
Sets the date in RFC 3339 format with only the date part (for instance, "2013-01-15").
|
BucketInfo.LifecycleRule.LifecycleCondition.Builder |
setNumberOfNewerVersions(Integer numberOfNewerVersions)
Sets the number of newer versions a Blob should have for an Action to be executed.
|
public BucketInfo.LifecycleRule.LifecycleCondition.Builder setAge(Integer age)
public BucketInfo.LifecycleRule.LifecycleCondition.Builder setCreatedBefore(com.google.api.client.util.DateTime createdBefore)
public BucketInfo.LifecycleRule.LifecycleCondition.Builder setNumberOfNewerVersions(Integer numberOfNewerVersions)
public BucketInfo.LifecycleRule.LifecycleCondition.Builder setIsLive(Boolean live)
public BucketInfo.LifecycleRule.LifecycleCondition.Builder setMatchesStorageClass(List<StorageClass> matchesStorageClass)
public BucketInfo.LifecycleRule.LifecycleCondition.Builder setDaysSinceNoncurrentTime(Integer daysSinceNoncurrentTime)
public BucketInfo.LifecycleRule.LifecycleCondition.Builder setNoncurrentTimeBefore(com.google.api.client.util.DateTime noncurrentTimeBefore)
public BucketInfo.LifecycleRule.LifecycleCondition.Builder setCustomTimeBefore(com.google.api.client.util.DateTime customTimeBefore)
public BucketInfo.LifecycleRule.LifecycleCondition.Builder setDaysSinceCustomTime(Integer daysSinceCustomTime)
public BucketInfo.LifecycleRule.LifecycleCondition build()
LifecycleCondition
object. *Copyright © 2022 Google LLC. All rights reserved.