Class BucketInfo.LifecycleRule.LifecycleCondition (2.20.1)

public static class BucketInfo.LifecycleRule.LifecycleCondition implements Serializable

Condition for a Lifecycle rule, specifies under what criteria an Action should be executed. See Also: Object Lifecycle Management

Inheritance

Object > BucketInfo.LifecycleRule.LifecycleCondition

Implements

Serializable

Static Methods

newBuilder()

public static BucketInfo.LifecycleRule.LifecycleCondition.Builder newBuilder()
Returns
TypeDescription
BucketInfo.LifecycleRule.LifecycleCondition.Builder

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getAge()

public Integer getAge()
Returns
TypeDescription
Integer

getCreatedBefore() (deprecated)

public DateTime getCreatedBefore()
Returns
TypeDescription
com.google.api.client.util.DateTime

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.

Returns
TypeDescription
OffsetDateTime

getCustomTimeBefore() (deprecated)

public DateTime getCustomTimeBefore()

Deprecated. Use #getCustomTimeBeforeOffsetDateTime()

Returns the date in RFC 3339 format with only the date part (for instance, "2013-01-15").

Returns
TypeDescription
com.google.api.client.util.DateTime

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.

Returns
TypeDescription
OffsetDateTime

getDaysSinceCustomTime()

public Integer getDaysSinceCustomTime()

Returns the number of days elapsed since the user-specified timestamp set on an object.

Returns
TypeDescription
Integer

getDaysSinceNoncurrentTime()

public Integer getDaysSinceNoncurrentTime()

Returns the number of days elapsed since the noncurrent timestamp of an object.

Returns
TypeDescription
Integer

getIsLive()

public Boolean getIsLive()
Returns
TypeDescription
Boolean

getMatchesPrefix()

public List<String> getMatchesPrefix()
Returns
TypeDescription
List<String>

getMatchesStorageClass()

public List<StorageClass> getMatchesStorageClass()
Returns
TypeDescription
List<StorageClass>

getMatchesSuffix()

public List<String> getMatchesSuffix()
Returns
TypeDescription
List<String>

getNoncurrentTimeBefore() (deprecated)

public DateTime getNoncurrentTimeBefore()

Deprecated. Use #getNoncurrentTimeBeforeOffsetDateTime()

Returns the date in RFC 3339 format with only the date part (for instance, "2013-01-15").

Returns
TypeDescription
com.google.api.client.util.DateTime

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.

Returns
TypeDescription
OffsetDateTime

getNumberOfNewerVersions()

public Integer getNumberOfNewerVersions()
Returns
TypeDescription
Integer

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public BucketInfo.LifecycleRule.LifecycleCondition.Builder toBuilder()
Returns
TypeDescription
BucketInfo.LifecycleRule.LifecycleCondition.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides