Class S3ObjectLockLegalHold
- java.lang.Object
-
- software.amazon.awssdk.services.s3control.model.S3ObjectLockLegalHold
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<S3ObjectLockLegalHold.Builder,S3ObjectLockLegalHold>
@Generated("software.amazon.awssdk:codegen") public final class S3ObjectLockLegalHold extends Object implements SdkPojo, Serializable, ToCopyableBuilder<S3ObjectLockLegalHold.Builder,S3ObjectLockLegalHold>
Whether S3 Object Lock legal hold will be applied to objects in an S3 Batch Operations job.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceS3ObjectLockLegalHold.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static S3ObjectLockLegalHold.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends S3ObjectLockLegalHold.Builder>serializableBuilderClass()S3ObjectLockLegalHoldStatusstatus()The Object Lock legal hold status to be applied to all objects in the Batch Operations job.StringstatusAsString()The Object Lock legal hold status to be applied to all objects in the Batch Operations job.S3ObjectLockLegalHold.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
-
status
public final S3ObjectLockLegalHoldStatus status()
The Object Lock legal hold status 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,
statuswill returnS3ObjectLockLegalHoldStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The Object Lock legal hold status to be applied to all objects in the Batch Operations job.
- See Also:
S3ObjectLockLegalHoldStatus
-
statusAsString
public final String statusAsString()
The Object Lock legal hold status 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,
statuswill returnS3ObjectLockLegalHoldStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The Object Lock legal hold status to be applied to all objects in the Batch Operations job.
- See Also:
S3ObjectLockLegalHoldStatus
-
toBuilder
public S3ObjectLockLegalHold.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<S3ObjectLockLegalHold.Builder,S3ObjectLockLegalHold>
-
builder
public static S3ObjectLockLegalHold.Builder builder()
-
serializableBuilderClass
public static Class<? extends S3ObjectLockLegalHold.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.
-
-