Interface GetObjectLegalHoldResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetObjectLegalHoldResponse.Builder,GetObjectLegalHoldResponse>,S3Response.Builder,SdkBuilder<GetObjectLegalHoldResponse.Builder,GetObjectLegalHoldResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetObjectLegalHoldResponse
@Mutable @NotThreadSafe public static interface GetObjectLegalHoldResponse.Builder extends S3Response.Builder, SdkPojo, CopyableBuilder<GetObjectLegalHoldResponse.Builder,GetObjectLegalHoldResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetObjectLegalHoldResponse.BuilderlegalHold(Consumer<ObjectLockLegalHold.Builder> legalHold)The current legal hold status for the specified object.GetObjectLegalHoldResponse.BuilderlegalHold(ObjectLockLegalHold legalHold)The current legal hold status for the specified object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.s3.model.S3Response.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
legalHold
GetObjectLegalHoldResponse.Builder legalHold(ObjectLockLegalHold legalHold)
The current legal hold status for the specified object.
- Parameters:
legalHold- The current legal hold status for the specified object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
legalHold
default GetObjectLegalHoldResponse.Builder legalHold(Consumer<ObjectLockLegalHold.Builder> legalHold)
The current legal hold status for the specified object.
This is a convenience method that creates an instance of theObjectLockLegalHold.Builderavoiding the need to create one manually viaObjectLockLegalHold.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolegalHold(ObjectLockLegalHold).- Parameters:
legalHold- a consumer that will call methods onObjectLockLegalHold.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
legalHold(ObjectLockLegalHold)
-
-