public static interface ObjectLockConfiguration.Builder extends SdkPojo, CopyableBuilder<ObjectLockConfiguration.Builder,ObjectLockConfiguration>
Modifier and Type | Method and Description |
---|---|
ObjectLockConfiguration.Builder |
objectLockEnabled(ObjectLockEnabled objectLockEnabled)
Indicates whether this bucket has an Object Lock configuration enabled.
|
ObjectLockConfiguration.Builder |
objectLockEnabled(String objectLockEnabled)
Indicates whether this bucket has an Object Lock configuration enabled.
|
default ObjectLockConfiguration.Builder |
rule(Consumer<ObjectLockRule.Builder> rule)
The Object Lock rule in place for the specified object.
|
ObjectLockConfiguration.Builder |
rule(ObjectLockRule rule)
The Object Lock rule in place for the specified object.
|
copy
applyMutation, build
ObjectLockConfiguration.Builder objectLockEnabled(String objectLockEnabled)
Indicates whether this bucket has an Object Lock configuration enabled.
objectLockEnabled
- Indicates whether this bucket has an Object Lock configuration enabled.ObjectLockEnabled
,
ObjectLockEnabled
ObjectLockConfiguration.Builder objectLockEnabled(ObjectLockEnabled objectLockEnabled)
Indicates whether this bucket has an Object Lock configuration enabled.
objectLockEnabled
- Indicates whether this bucket has an Object Lock configuration enabled.ObjectLockEnabled
,
ObjectLockEnabled
ObjectLockConfiguration.Builder rule(ObjectLockRule rule)
The Object Lock rule in place for the specified object.
rule
- The Object Lock rule in place for the specified object.default ObjectLockConfiguration.Builder rule(Consumer<ObjectLockRule.Builder> rule)
The Object Lock rule in place for the specified object.
This is a convenience that creates an instance of theObjectLockRule.Builder
avoiding the need to
create one manually via ObjectLockRule.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to rule(ObjectLockRule)
.rule
- a consumer that will call methods on ObjectLockRule.Builder
rule(ObjectLockRule)
Copyright © 2019. All rights reserved.