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.
|
copyapplyMutation, buildObjectLockRule.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.BuilderdefaultRetention(DefaultRetention)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.