public static interface ObjectLockRule.Builder extends SdkPojo, CopyableBuilder<ObjectLockRule.Builder,ObjectLockRule>
Modifier and Type | Method and Description |
---|---|
default ObjectLockRule.Builder |
defaultRetention(Consumer<DefaultRetention.Builder> defaultRetention)
The default retention period that you want to apply to new objects placed in the specified bucket.
|
ObjectLockRule.Builder |
defaultRetention(DefaultRetention defaultRetention)
The default retention period that you want to apply to new objects placed in the specified bucket.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
ObjectLockRule.Builder defaultRetention(DefaultRetention defaultRetention)
The default retention period that you want to apply to new objects placed in the specified bucket.
defaultRetention
- The default retention period that you want to apply to new objects placed in the specified bucket.default ObjectLockRule.Builder defaultRetention(Consumer<DefaultRetention.Builder> defaultRetention)
The default retention period that you want to apply to new objects placed in the specified bucket.
This is a convenience that creates an instance of theDefaultRetention.Builder
avoiding the need to
create one manually via DefaultRetention.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to defaultRetention(DefaultRetention)
.defaultRetention
- a consumer that will call methods on DefaultRetention.Builder
defaultRetention(DefaultRetention)
Copyright © 2019. All rights reserved.