@Generated(value="software.amazon.awssdk:codegen") public final class AwsS3BucketObjectLockConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsS3BucketObjectLockConfiguration.Builder,AwsS3BucketObjectLockConfiguration>
The container element for S3 Object Lock configuration parameters. In Amazon S3, Object Lock can help prevent objects from being deleted or overwritten for a fixed amount of time or indefinitely.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsS3BucketObjectLockConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AwsS3BucketObjectLockConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
objectLockEnabled()
Indicates whether the bucket has an Object Lock configuration enabled.
|
AwsS3BucketObjectLockConfigurationRuleDetails |
rule()
Specifies the Object Lock rule for the specified object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsS3BucketObjectLockConfiguration.Builder> |
serializableBuilderClass() |
AwsS3BucketObjectLockConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String objectLockEnabled()
Indicates whether the bucket has an Object Lock configuration enabled.
public final AwsS3BucketObjectLockConfigurationRuleDetails rule()
Specifies the Object Lock rule for the specified object.
public AwsS3BucketObjectLockConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsS3BucketObjectLockConfiguration.Builder,AwsS3BucketObjectLockConfiguration>public static AwsS3BucketObjectLockConfiguration.Builder builder()
public static Class<? extends AwsS3BucketObjectLockConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.