Interface AwsS3BucketObjectLockConfigurationRuleDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsS3BucketObjectLockConfigurationRuleDetails.Builder,
,AwsS3BucketObjectLockConfigurationRuleDetails> SdkBuilder<AwsS3BucketObjectLockConfigurationRuleDetails.Builder,
,AwsS3BucketObjectLockConfigurationRuleDetails> SdkPojo
- Enclosing class:
AwsS3BucketObjectLockConfigurationRuleDetails
@Mutable
@NotThreadSafe
public static interface AwsS3BucketObjectLockConfigurationRuleDetails.Builder
extends SdkPojo, CopyableBuilder<AwsS3BucketObjectLockConfigurationRuleDetails.Builder,AwsS3BucketObjectLockConfigurationRuleDetails>
-
Method Summary
Modifier and TypeMethodDescriptiondefaultRetention
(Consumer<AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails.Builder> defaultRetention) The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket.The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket.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, sdkFieldNameToField, sdkFields
-
Method Details
-
defaultRetention
AwsS3BucketObjectLockConfigurationRuleDetails.Builder defaultRetention(AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails defaultRetention) The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket.
- Parameters:
defaultRetention
- The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultRetention
default AwsS3BucketObjectLockConfigurationRuleDetails.Builder defaultRetention(Consumer<AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails.Builder> defaultRetention) The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket.
This is a convenience method that creates an instance of theAwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails.Builder
avoiding the need to create one manually viaAwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefaultRetention(AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails)
.- Parameters:
defaultRetention
- a consumer that will call methods onAwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-