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)
Specifies the Object Lock rule for the specified object.
|
ObjectLockConfiguration.Builder |
rule(ObjectLockRule rule)
Specifies the Object Lock rule for the specified object.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildObjectLockConfiguration.Builder objectLockEnabled(String objectLockEnabled)
Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled
when you apply ObjectLockConfiguration to a bucket.
objectLockEnabled - Indicates whether this bucket has an Object Lock configuration enabled. Enable
ObjectLockEnabled when you apply ObjectLockConfiguration to a bucket.ObjectLockEnabled,
ObjectLockEnabledObjectLockConfiguration.Builder objectLockEnabled(ObjectLockEnabled objectLockEnabled)
Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled
when you apply ObjectLockConfiguration to a bucket.
objectLockEnabled - Indicates whether this bucket has an Object Lock configuration enabled. Enable
ObjectLockEnabled when you apply ObjectLockConfiguration to a bucket.ObjectLockEnabled,
ObjectLockEnabledObjectLockConfiguration.Builder rule(ObjectLockRule rule)
Specifies the Object Lock rule for the specified object. Enable the this rule when you apply
ObjectLockConfiguration to a 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.
rule - Specifies the Object Lock rule for the specified object. Enable the this rule when you apply
ObjectLockConfiguration to a 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 ObjectLockConfiguration.Builder rule(Consumer<ObjectLockRule.Builder> rule)
Specifies the Object Lock rule for the specified object. Enable the this rule when you apply
ObjectLockConfiguration to a 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.
ObjectLockRule.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.Builderrule(ObjectLockRule)Copyright © 2022. All rights reserved.