@Generated(value="com.ibm.cos.v2:codegen") public final class LifecycleExpiration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LifecycleExpiration.Builder,LifecycleExpiration>
Container for the expiration for the lifecycle of the object.
For more information see, Managing your storage lifecycle in the Amazon S3 User Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LifecycleExpiration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static LifecycleExpiration.Builder |
builder() |
Instant |
date()
Indicates at what date the object is to be moved or deleted.
|
Integer |
days()
Indicates the lifetime, in days, of the objects that are subject to the rule.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
Boolean |
expiredObjectDeleteMarker()
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Map<String,SdkField<?>> |
sdkFieldNameToField() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends LifecycleExpiration.Builder> |
serializableBuilderClass() |
LifecycleExpiration.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Instant date()
Indicates at what date the object is to be moved or deleted. The date value must conform to the ISO 8601 format. The time is always midnight UTC.
This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
public final Integer days()
Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
public final Boolean expiredObjectDeleteMarker()
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
public LifecycleExpiration.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<LifecycleExpiration.Builder,LifecycleExpiration>public static LifecycleExpiration.Builder builder()
public static Class<? extends LifecycleExpiration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojoSdkPojo class,
and is generated based on a service model.
If an SdkPojo class does not have any inherited fields, equalsBySdkFields
and equals are essentially the same.
equalsBySdkFields in interface SdkPojoobj - the object to be compared withpublic final String toString()
public final Map<String,SdkField<?>> sdkFieldNameToField()
sdkFieldNameToField in interface SdkPojoCopyright © 2026. All rights reserved.