Package com.google.cloud.storage
Class BucketInfo.CreatedBeforeDeleteRule
java.lang.Object
com.google.cloud.storage.BucketInfo.DeleteRule
com.google.cloud.storage.BucketInfo.CreatedBeforeDeleteRule
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BucketInfo
Deprecated.
Delete rule class for blobs in the bucket that have been created before a certain date.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.cloud.storage.BucketInfo.DeleteRule
BucketInfo.DeleteRule.Type
-
Constructor Summary
ConstructorDescriptionCreatedBeforeDeleteRule
(long timeMillis) Deprecated.UseCreatedBeforeDeleteRule(OffsetDateTime)
insteadDeprecated.Creates anCreatedBeforeDeleteRule
object. -
Method Summary
Methods inherited from class com.google.cloud.storage.BucketInfo.DeleteRule
equals, getType, hashCode
-
Constructor Details
-
CreatedBeforeDeleteRule
Deprecated.UseCreatedBeforeDeleteRule(OffsetDateTime)
insteadCreates anCreatedBeforeDeleteRule
object.- Parameters:
timeMillis
- a date in UTC. Blobs that have been created before midnight of the provided date meet the delete condition
-
CreatedBeforeDeleteRule
Deprecated.Creates anCreatedBeforeDeleteRule
object.- Parameters:
time
- Blobs that have been created before midnight of the provided date meet the delete condition
-
-
Method Details
-
getTimeMillis
Deprecated. -
getTime
Deprecated.
-
LifecycleRule
with an actionDeleteLifecycleAction
and a conditionLifecycleCondition.Builder.setCreatedBefore
instead.