Class BucketInfo.LifecycleRule (2.9.2)

public static class BucketInfo.LifecycleRule implements Serializable

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\u2019t 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: Object Lifecycle Management

Inheritance

Object > BucketInfo.LifecycleRule

Implements

Serializable

Constructors

LifecycleRule(BucketInfo.LifecycleRule.LifecycleAction action, BucketInfo.LifecycleRule.LifecycleCondition condition)

public LifecycleRule(BucketInfo.LifecycleRule.LifecycleAction action, BucketInfo.LifecycleRule.LifecycleCondition condition)
Parameters
NameDescription
actionBucketInfo.LifecycleRule.LifecycleAction
conditionBucketInfo.LifecycleRule.LifecycleCondition

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAction()

public BucketInfo.LifecycleRule.LifecycleAction getAction()
Returns
TypeDescription
BucketInfo.LifecycleRule.LifecycleAction

getCondition()

public BucketInfo.LifecycleRule.LifecycleCondition getCondition()
Returns
TypeDescription
BucketInfo.LifecycleRule.LifecycleCondition

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides