Package com.google.cloud.storage
Class BucketInfo.LifecycleRule
java.lang.Object
com.google.cloud.storage.BucketInfo.LifecycleRule
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BucketInfo
Lifecycle rule for a bucket. Allows supported Actions, such as deleting and changing storage
class, to be executed when certain Conditions are met.
Versions 1.50.0-1.111.2 of this library don’t support the CustomTimeBefore, DaysSinceCustomTime, DaysSinceNoncurrentTime and NoncurrentTimeBefore lifecycle conditions. To read GCS objects with those lifecycle conditions, update your Java client library to the latest version.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
Base class for the Action to take when a Lifecycle Condition is met.static class
Condition for a Lifecycle rule, specifies under what criteria an Action should be executed.static class
-
Constructor Summary
ConstructorDescriptionLifecycleRule
(BucketInfo.LifecycleRule.LifecycleAction action, BucketInfo.LifecycleRule.LifecycleCondition condition) -
Method Summary
-
Constructor Details
-
LifecycleRule
public LifecycleRule(BucketInfo.LifecycleRule.LifecycleAction action, BucketInfo.LifecycleRule.LifecycleCondition condition)
-
-
Method Details