public static class BucketInfo.CreatedBeforeDeleteRule extends BucketInfo.DeleteRuleDeprecated. 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. See Also: Object Lifecycle Management
Constructors
CreatedBeforeDeleteRule(OffsetDateTime time) (deprecated)
public CreatedBeforeDeleteRule(OffsetDateTime time)Creates an CreatedBeforeDeleteRule object.
| Parameter | |
|---|---|
| Name | Description |
time |
OffsetDateTimeBlobs that have been created before midnight of the provided date meet the delete condition |
CreatedBeforeDeleteRule(long timeMillis) (deprecated)
public CreatedBeforeDeleteRule(long timeMillis)Deprecated. Use #CreatedBeforeDeleteRule(OffsetDateTime) instead
Creates an CreatedBeforeDeleteRule object.
| Parameter | |
|---|---|
| Name | Description |
timeMillis |
longa date in UTC. Blobs that have been created before midnight of the provided date meet the delete condition |
Methods
getTime() (deprecated)
public OffsetDateTime getTime()| Returns | |
|---|---|
| Type | Description |
OffsetDateTime |
|
getTimeMillis() (deprecated)
public long getTimeMillis()Deprecated. #getTime()
| Returns | |
|---|---|
| Type | Description |
long |
|