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 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.
See Also:
  • Constructor Details

    • CreatedBeforeDeleteRule

      @Deprecated public CreatedBeforeDeleteRule(long timeMillis)
      Creates an CreatedBeforeDeleteRule object.
      Parameters:
      timeMillis - a date in UTC. Blobs that have been created before midnight of the provided date meet the delete condition
    • CreatedBeforeDeleteRule

      public CreatedBeforeDeleteRule(OffsetDateTime time)
      Deprecated.
      Creates an CreatedBeforeDeleteRule object.
      Parameters:
      time - Blobs that have been created before midnight of the provided date meet the delete condition
  • Method Details