public static interface AwsS3BucketObjectLockConfiguration.Builder extends SdkPojo, CopyableBuilder<AwsS3BucketObjectLockConfiguration.Builder,AwsS3BucketObjectLockConfiguration>
| Modifier and Type | Method and Description |
|---|---|
AwsS3BucketObjectLockConfiguration.Builder |
objectLockEnabled(String objectLockEnabled)
Indicates whether the bucket has an Object Lock configuration enabled.
|
AwsS3BucketObjectLockConfiguration.Builder |
rule(AwsS3BucketObjectLockConfigurationRuleDetails rule)
Specifies the Object Lock rule for the specified object.
|
default AwsS3BucketObjectLockConfiguration.Builder |
rule(Consumer<AwsS3BucketObjectLockConfigurationRuleDetails.Builder> rule)
Specifies the Object Lock rule for the specified object.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAwsS3BucketObjectLockConfiguration.Builder objectLockEnabled(String objectLockEnabled)
Indicates whether the bucket has an Object Lock configuration enabled.
objectLockEnabled - Indicates whether the bucket has an Object Lock configuration enabled.AwsS3BucketObjectLockConfiguration.Builder rule(AwsS3BucketObjectLockConfigurationRuleDetails rule)
Specifies the Object Lock rule for the specified object.
rule - Specifies the Object Lock rule for the specified object.default AwsS3BucketObjectLockConfiguration.Builder rule(Consumer<AwsS3BucketObjectLockConfigurationRuleDetails.Builder> rule)
Specifies the Object Lock rule for the specified object.
This is a convenience method that creates an instance of theAwsS3BucketObjectLockConfigurationRuleDetails.Builder avoiding the need to create one manually via
AwsS3BucketObjectLockConfigurationRuleDetails.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to rule(AwsS3BucketObjectLockConfigurationRuleDetails).
rule - a consumer that will call methods on AwsS3BucketObjectLockConfigurationRuleDetails.Builderrule(AwsS3BucketObjectLockConfigurationRuleDetails)Copyright © 2023. All rights reserved.