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, responseMetadatasdkHttpResponse, sdkHttpResponsecopyapplyMutation, buildGetObjectRetentionResponse.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.Builderretention(ObjectLockRetention)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.