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 Object Lock retention mode and period that you want to apply to new objects placed in the
specified bucket.
|
ObjectLockRule.Builder |
defaultRetention(DefaultRetention defaultRetention)
The default Object Lock retention mode and period that you want to apply to new objects placed in the
specified bucket.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildObjectLockRule.Builder defaultRetention(DefaultRetention defaultRetention)
The default Object Lock retention mode and period that you want to apply to new objects placed in the
specified bucket. Bucket settings require both a mode and a period. The period can be either
Days or Years but you must select one. You cannot specify Days and
Years at the same time.
defaultRetention - The default Object Lock retention mode and period that you want to apply to new objects placed in the
specified bucket. Bucket settings require both a mode and a period. The period can be either
Days or Years but you must select one. You cannot specify Days
and Years at the same time.default ObjectLockRule.Builder defaultRetention(Consumer<DefaultRetention.Builder> defaultRetention)
The default Object Lock retention mode and period that you want to apply to new objects placed in the
specified bucket. Bucket settings require both a mode and a period. The period can be either
Days or Years but you must select one. You cannot specify Days and
Years at the same time.
DefaultRetention.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 © 2022. All rights reserved.