Class AwsS3BucketObjectLockConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AwsS3BucketObjectLockConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsS3BucketObjectLockConfiguration.Builder,AwsS3BucketObjectLockConfiguration>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsS3BucketObjectLockConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsS3BucketObjectLockConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringobjectLockEnabled()Indicates whether the bucket has an Object Lock configuration enabled.AwsS3BucketObjectLockConfigurationRuleDetailsrule()Specifies the Object Lock rule for the specified object.List<SdkField<?>>sdkFields()static Class<? extends AwsS3BucketObjectLockConfiguration.Builder>serializableBuilderClass()AwsS3BucketObjectLockConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
objectLockEnabled
public final String objectLockEnabled()
Indicates whether the bucket has an Object Lock configuration enabled.
- Returns:
- Indicates whether the bucket has an Object Lock configuration enabled.
-
rule
public final AwsS3BucketObjectLockConfigurationRuleDetails rule()
Specifies the Object Lock rule for the specified object.
- Returns:
- Specifies the Object Lock rule for the specified object.
-
toBuilder
public AwsS3BucketObjectLockConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsS3BucketObjectLockConfiguration.Builder,AwsS3BucketObjectLockConfiguration>
-
builder
public static AwsS3BucketObjectLockConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsS3BucketObjectLockConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-