public static class BucketInfo.LifecycleRule.LifecycleCondition.Builder
Builder for LifecycleCondition
.
Methods
build()
public BucketInfo.LifecycleRule.LifecycleCondition build()
Builds a LifecycleCondition
object. *
Returns | |
---|---|
Type | Description |
BucketInfo.LifecycleRule.LifecycleCondition |
setAge(Integer age)
public BucketInfo.LifecycleRule.LifecycleCondition.Builder setAge(Integer age)
Sets the age in days. This condition is satisfied when a Blob reaches the specified age (in days). When you specify the Age condition, you are specifying a Time to Live (TTL) for objects in a bucket with lifecycle management configured. The time when the Age condition is considered to be satisfied is calculated by adding the specified value to the object creation time.
Parameter | |
---|---|
Name | Description |
age | Integer |
Returns | |
---|---|
Type | Description |
BucketInfo.LifecycleRule.LifecycleCondition.Builder |
setCreatedBefore(DateTime createdBefore) (deprecated)
public BucketInfo.LifecycleRule.LifecycleCondition.Builder setCreatedBefore(DateTime createdBefore)
Deprecated. Use #setCreatedBeforeOffsetDateTime(OffsetDateTime)
Sets the date a Blob should be created before for an Action to be executed. Note that only the date will be considered, if the time is specified it will be truncated. This condition is satisfied when an object is created before midnight of the specified date in UTC.
P |
---|