Class BucketInfo.LifecycleRule.LifecycleCondition

java.lang.Object
com.google.cloud.storage.BucketInfo.LifecycleRule.LifecycleCondition
All Implemented Interfaces:
Serializable
Enclosing class:
BucketInfo.LifecycleRule

public static class BucketInfo.LifecycleRule.LifecycleCondition extends Object implements Serializable
Condition for a Lifecycle rule, specifies under what criteria an Action should be executed.
See Also:
  • Method Details

    • toBuilder

    • newBuilder

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAge

      public Integer getAge()
    • getCreatedBefore

      @Deprecated public com.google.api.client.util.DateTime getCreatedBefore()
    • getCreatedBeforeOffsetDateTime

      public OffsetDateTime getCreatedBeforeOffsetDateTime()
      Returns the date and offset from UTC for this condition. If a time other than 00:00:00.000 is present in the value, GCS will truncate to 00:00:00.000.
    • getNumberOfNewerVersions

      public Integer getNumberOfNewerVersions()
    • getIsLive

      public Boolean getIsLive()
    • getMatchesStorageClass

      public List<StorageClass> getMatchesStorageClass()
    • getDaysSinceNoncurrentTime

      public Integer getDaysSinceNoncurrentTime()
      Returns the number of days elapsed since the noncurrent timestamp of an object.
    • getNoncurrentTimeBefore

      @Deprecated public com.google.api.client.util.DateTime getNoncurrentTimeBefore()
      Returns the date in RFC 3339 format with only the date part (for instance, "2013-01-15").
    • getNoncurrentTimeBeforeOffsetDateTime

      public OffsetDateTime getNoncurrentTimeBeforeOffsetDateTime()
      Returns the date and offset from UTC for this condition. If a time other than 00:00:00.000 is present in the value, GCS will truncate to 00:00:00.000.
    • getCustomTimeBefore

      @Deprecated public com.google.api.client.util.DateTime getCustomTimeBefore()
      Returns the date in RFC 3339 format with only the date part (for instance, "2013-01-15").
    • getCustomTimeBeforeOffsetDateTime

      public OffsetDateTime getCustomTimeBeforeOffsetDateTime()
      Returns the date and offset from UTC for this condition. If a time other than 00:00:00.000 is present in the value, GCS will truncate to 00:00:00.000.
    • getDaysSinceCustomTime

      public Integer getDaysSinceCustomTime()
      Returns the number of days elapsed since the user-specified timestamp set on an object.
    • getMatchesPrefix

      public List<String> getMatchesPrefix()
    • getMatchesSuffix

      public List<String> getMatchesSuffix()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object