Class BucketInfo.LifecycleRule (2.40.0)

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’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: 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
Name Description
action BucketInfo.LifecycleRule.LifecycleAction
condition BucketInfo.LifecycleRule.LifecycleCondition

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getAction()

public BucketInfo.LifecycleRule.LifecycleAction getAction()
Returns
Type Description
BucketInfo.LifecycleRule.LifecycleAction

getCondition()

public BucketInfo.LifecycleRule.LifecycleCondition getCondition()
Returns
Type Description
BucketInfo.LifecycleRule.LifecycleCondition

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides