Interface AwsS3BucketObjectLockConfigurationRuleDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsS3BucketObjectLockConfigurationRuleDetails.Builder,AwsS3BucketObjectLockConfigurationRuleDetails>,SdkBuilder<AwsS3BucketObjectLockConfigurationRuleDetails.Builder,AwsS3BucketObjectLockConfigurationRuleDetails>,SdkPojo
- Enclosing class:
- AwsS3BucketObjectLockConfigurationRuleDetails
public static interface AwsS3BucketObjectLockConfigurationRuleDetails.Builder extends SdkPojo, CopyableBuilder<AwsS3BucketObjectLockConfigurationRuleDetails.Builder,AwsS3BucketObjectLockConfigurationRuleDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AwsS3BucketObjectLockConfigurationRuleDetails.BuilderdefaultRetention(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.AwsS3BucketObjectLockConfigurationRuleDetails.BuilderdefaultRetention(AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails defaultRetention)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 Detail
-
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.Builderavoiding the need to create one manually viaAwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails.builder().When the
Consumercompletes,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:
defaultRetention(AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails)
-
-