Interface AwsS3BucketObjectLockConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsS3BucketObjectLockConfiguration.Builder,
,AwsS3BucketObjectLockConfiguration> SdkBuilder<AwsS3BucketObjectLockConfiguration.Builder,
,AwsS3BucketObjectLockConfiguration> SdkPojo
- Enclosing class:
AwsS3BucketObjectLockConfiguration
public static interface AwsS3BucketObjectLockConfiguration.Builder
extends SdkPojo, CopyableBuilder<AwsS3BucketObjectLockConfiguration.Builder,AwsS3BucketObjectLockConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionobjectLockEnabled
(String objectLockEnabled) Indicates whether the bucket has an Object Lock configuration enabled.Specifies the Object Lock rule for the specified object.Specifies the Object Lock rule for the specified object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
objectLockEnabled
Indicates whether the bucket has an Object Lock configuration enabled.
- Parameters:
objectLockEnabled
- Indicates whether the bucket has an Object Lock configuration enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
Specifies the Object Lock rule for the specified object.
- Parameters:
rule
- Specifies the Object Lock rule for the specified object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
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 viaAwsS3BucketObjectLockConfigurationRuleDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torule(AwsS3BucketObjectLockConfigurationRuleDetails)
.- Parameters:
rule
- a consumer that will call methods onAwsS3BucketObjectLockConfigurationRuleDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-