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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AwsS3BucketObjectLockConfiguration.BuilderobjectLockEnabled(String objectLockEnabled)Indicates whether the bucket has an Object Lock configuration enabled.default AwsS3BucketObjectLockConfiguration.Builderrule(Consumer<AwsS3BucketObjectLockConfigurationRuleDetails.Builder> rule)Specifies the Object Lock rule for the specified object.AwsS3BucketObjectLockConfiguration.Builderrule(AwsS3BucketObjectLockConfigurationRuleDetails rule)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 Detail
-
objectLockEnabled
AwsS3BucketObjectLockConfiguration.Builder objectLockEnabled(String 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
AwsS3BucketObjectLockConfiguration.Builder rule(AwsS3BucketObjectLockConfigurationRuleDetails 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.Builderavoiding the need to create one manually viaAwsS3BucketObjectLockConfigurationRuleDetails.builder().When the
Consumercompletes,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:
rule(AwsS3BucketObjectLockConfigurationRuleDetails)
-
-