Interface DefaultRetention.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DefaultRetention.Builder,,DefaultRetention> SdkBuilder<DefaultRetention.Builder,,DefaultRetention> SdkPojo
- Enclosing class:
DefaultRetention
@Mutable
@NotThreadSafe
public static interface DefaultRetention.Builder
extends SdkPojo, CopyableBuilder<DefaultRetention.Builder,DefaultRetention>
-
Method Summary
Modifier and TypeMethodDescriptionThe number of days that you want to specify for the default retention period.The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.mode(ObjectLockRetentionMode mode) The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.The number of years that you want to specify for the default retention period.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
mode
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with either
DaysorYears.- Parameters:
mode- The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with eitherDaysorYears.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mode
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with either
DaysorYears.- Parameters:
mode- The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with eitherDaysorYears.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
days
The number of days that you want to specify for the default retention period. Must be used with
Mode.- Parameters:
days- The number of days that you want to specify for the default retention period. Must be used withMode.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
years
The number of years that you want to specify for the default retention period. Must be used with
Mode.- Parameters:
years- The number of years that you want to specify for the default retention period. Must be used withMode.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-