@Generated(value="software.amazon.awssdk:codegen") public final class S3Retention extends Object implements SdkPojo, Serializable, ToCopyableBuilder<S3Retention.Builder,S3Retention>
Contains the S3 Object Lock retention mode to be applied to all objects in the S3 Batch Operations job. If you don't
provide Mode and RetainUntilDate data types in your operation, you will remove the
retention from your objects. For more information, see Using S3 Object Lock retention
with S3 Batch Operations in the Amazon S3 User Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
S3Retention.Builder |
| Modifier and Type | Method and Description |
|---|---|
static S3Retention.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
S3ObjectLockRetentionMode |
mode()
The Object Lock retention mode to be applied to all objects in the Batch Operations job.
|
String |
modeAsString()
The Object Lock retention mode to be applied to all objects in the Batch Operations job.
|
Instant |
retainUntilDate()
The date when the applied Object Lock retention will expire on all objects set by the Batch Operations job.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends S3Retention.Builder> |
serializableBuilderClass() |
S3Retention.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Instant retainUntilDate()
The date when the applied Object Lock retention will expire on all objects set by the Batch Operations job.
public final S3ObjectLockRetentionMode mode()
The Object Lock retention mode to be applied to all objects in the Batch Operations job.
If the service returns an enum value that is not available in the current SDK version, mode will return
S3ObjectLockRetentionMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
modeAsString().
S3ObjectLockRetentionModepublic final String modeAsString()
The Object Lock retention mode to be applied to all objects in the Batch Operations job.
If the service returns an enum value that is not available in the current SDK version, mode will return
S3ObjectLockRetentionMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
modeAsString().
S3ObjectLockRetentionModepublic S3Retention.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<S3Retention.Builder,S3Retention>public static S3Retention.Builder builder()
public static Class<? extends S3Retention.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.