Interface S3SetObjectLegalHoldOperation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<S3SetObjectLegalHoldOperation.Builder,
,S3SetObjectLegalHoldOperation> SdkBuilder<S3SetObjectLegalHoldOperation.Builder,
,S3SetObjectLegalHoldOperation> SdkPojo
- Enclosing class:
S3SetObjectLegalHoldOperation
@Mutable
@NotThreadSafe
public static interface S3SetObjectLegalHoldOperation.Builder
extends SdkPojo, CopyableBuilder<S3SetObjectLegalHoldOperation.Builder,S3SetObjectLegalHoldOperation>
-
Method Summary
Modifier and TypeMethodDescriptionlegalHold
(Consumer<S3ObjectLockLegalHold.Builder> legalHold) Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.legalHold
(S3ObjectLockLegalHold legalHold) Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
legalHold
Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.
- Parameters:
legalHold
- Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
legalHold
default S3SetObjectLegalHoldOperation.Builder legalHold(Consumer<S3ObjectLockLegalHold.Builder> legalHold) Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.
This is a convenience method that creates an instance of theS3ObjectLockLegalHold.Builder
avoiding the need to create one manually viaS3ObjectLockLegalHold.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolegalHold(S3ObjectLockLegalHold)
.- Parameters:
legalHold
- a consumer that will call methods onS3ObjectLockLegalHold.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-