public static interface GetObjectLegalHoldResponse.Builder extends S3Response.Builder, SdkPojo, CopyableBuilder<GetObjectLegalHoldResponse.Builder,GetObjectLegalHoldResponse>
| Modifier and Type | Method and Description |
|---|---|
default GetObjectLegalHoldResponse.Builder |
legalHold(Consumer<ObjectLockLegalHold.Builder> legalHold)
The current Legal Hold status for the specified object.
|
GetObjectLegalHoldResponse.Builder |
legalHold(ObjectLockLegalHold legalHold)
The current Legal Hold status for the specified object.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponsecopyapplyMutation, buildGetObjectLegalHoldResponse.Builder legalHold(ObjectLockLegalHold legalHold)
The current Legal Hold status for the specified object.
legalHold - The current Legal Hold status for the specified object.default GetObjectLegalHoldResponse.Builder legalHold(Consumer<ObjectLockLegalHold.Builder> legalHold)
The current Legal Hold status for the specified object.
This is a convenience that creates an instance of theObjectLockLegalHold.Builder avoiding the need
to create one manually via ObjectLockLegalHold.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to legalHold(ObjectLockLegalHold).legalHold - a consumer that will call methods on ObjectLockLegalHold.BuilderlegalHold(ObjectLockLegalHold)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.