public static interface GetObjectRetentionResponse.Builder extends S3Response.Builder, SdkPojo, CopyableBuilder<GetObjectRetentionResponse.Builder,GetObjectRetentionResponse>
Modifier and Type | Method and Description |
---|---|
default GetObjectRetentionResponse.Builder |
retention(Consumer<ObjectLockRetention.Builder> retention)
The container element for an object's retention settings.
|
GetObjectRetentionResponse.Builder |
retention(ObjectLockRetention retention)
The container element for an object's retention settings.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
GetObjectRetentionResponse.Builder retention(ObjectLockRetention retention)
The container element for an object's retention settings.
retention
- The container element for an object's retention settings.default GetObjectRetentionResponse.Builder retention(Consumer<ObjectLockRetention.Builder> retention)
The container element for an object's retention settings.
This is a convenience that creates an instance of theObjectLockRetention.Builder
avoiding the need
to create one manually via ObjectLockRetention.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to retention(ObjectLockRetention)
.retention
- a consumer that will call methods on ObjectLockRetention.Builder
retention(ObjectLockRetention)
Copyright © 2020. All rights reserved.