Class BucketInfo.LifecycleRule (2.2.3)

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.

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 obj)

public boolean equals(Object obj)
Parameter
Name Description
obj 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