@Generated(value="software.amazon.awssdk:codegen") public final class LifecycleExpiration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LifecycleExpiration.Builder,LifecycleExpiration>
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 |
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() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends LifecycleExpiration.Builder> |
serializableBuilderClass() |
LifecycleExpiration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public Instant date()
Indicates at what date the object is to be moved or deleted. Should be in GMT ISO 8601 Format.
public 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 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.
public LifecycleExpiration.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<LifecycleExpiration.Builder,LifecycleExpiration>
public static LifecycleExpiration.Builder builder()
public static Class<? extends LifecycleExpiration.Builder> serializableBuilderClass()
public String toString()
Copyright © 2019. All rights reserved.