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 |
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 |
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 build()
LifecycleCondition
object. *Copyright © 2019 Google LLC. All rights reserved.