Class BucketInfo.CreatedBeforeDeleteRule (2.1.10)

public static class BucketInfo.CreatedBeforeDeleteRule extends BucketInfo.DeleteRule

(deprecated) Use a LifecycleRule with an action DeleteLifecycleAction and a condition LifecycleCondition.Builder.setCreatedBefore instead.

Delete rule class for blobs in the bucket that have been created before a certain date.

Inheritance

java.lang.Object > BucketInfo.DeleteRule > BucketInfo.CreatedBeforeDeleteRule

Constructors

CreatedBeforeDeleteRule(long timeMillis) (deprecated)

public CreatedBeforeDeleteRule(long timeMillis)

Creates an CreatedBeforeDeleteRule object.

Parameter
NameDescription
timeMillislong

a date in UTC. Blobs that have been created before midnight of the provided date meet the delete condition

Methods

getTimeMillis() (deprecated)

public long getTimeMillis()
Returns
TypeDescription
long