Class S3SetObjectRetentionOperation
- java.lang.Object
-
- software.amazon.awssdk.services.s3control.model.S3SetObjectRetentionOperation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<S3SetObjectRetentionOperation.Builder,S3SetObjectRetentionOperation>
@Generated("software.amazon.awssdk:codegen") public final class S3SetObjectRetentionOperation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<S3SetObjectRetentionOperation.Builder,S3SetObjectRetentionOperation>
Contains the configuration parameters for the Object Lock retention action for an S3 Batch Operations job. Batch Operations passes every object to the underlying
PutObjectRetentionAPI operation. For more information, see Using S3 Object Lock retention with S3 Batch Operations in the Amazon S3 User Guide.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceS3SetObjectRetentionOperation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static S3SetObjectRetentionOperation.Builderbuilder()BooleanbypassGovernanceRetention()Indicates if the action should be applied to objects in the Batch Operations job even if they have Object LockGOVERNANCEtype in place.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()S3Retentionretention()Contains the Object Lock retention mode to be applied to all objects in the Batch Operations job.List<SdkField<?>>sdkFields()static Class<? extends S3SetObjectRetentionOperation.Builder>serializableBuilderClass()S3SetObjectRetentionOperation.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
-
bypassGovernanceRetention
public final Boolean bypassGovernanceRetention()
Indicates if the action should be applied to objects in the Batch Operations job even if they have Object Lock
GOVERNANCEtype in place.- Returns:
- Indicates if the action should be applied to objects in the Batch Operations job even if they have Object
Lock
GOVERNANCEtype in place.
-
retention
public final S3Retention retention()
Contains the Object Lock retention mode to be applied to all objects in the Batch Operations job. For more information, see Using S3 Object Lock retention with S3 Batch Operations in the Amazon S3 User Guide.
- Returns:
- Contains the Object Lock retention mode to be applied to all objects in the Batch Operations job. For more information, see Using S3 Object Lock retention with S3 Batch Operations in the Amazon S3 User Guide.
-
toBuilder
public S3SetObjectRetentionOperation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<S3SetObjectRetentionOperation.Builder,S3SetObjectRetentionOperation>
-
builder
public static S3SetObjectRetentionOperation.Builder builder()
-
serializableBuilderClass
public static Class<? extends S3SetObjectRetentionOperation.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.
-
-