Interface S3SetObjectLegalHoldOperation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<S3SetObjectLegalHoldOperation.Builder,S3SetObjectLegalHoldOperation>,SdkBuilder<S3SetObjectLegalHoldOperation.Builder,S3SetObjectLegalHoldOperation>,SdkPojo
- Enclosing class:
- S3SetObjectLegalHoldOperation
public static interface S3SetObjectLegalHoldOperation.Builder extends SdkPojo, CopyableBuilder<S3SetObjectLegalHoldOperation.Builder,S3SetObjectLegalHoldOperation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default S3SetObjectLegalHoldOperation.BuilderlegalHold(Consumer<S3ObjectLockLegalHold.Builder> legalHold)Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.S3SetObjectLegalHoldOperation.BuilderlegalHold(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, sdkFields
-
-
-
-
Method Detail
-
legalHold
S3SetObjectLegalHoldOperation.Builder legalHold(S3ObjectLockLegalHold 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.Builderavoiding the need to create one manually viaS3ObjectLockLegalHold.builder().When the
Consumercompletes,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:
legalHold(S3ObjectLockLegalHold)
-
-