Interface DefaultRetention.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DefaultRetention.Builder,,DefaultRetention> SdkBuilder<DefaultRetention.Builder,,DefaultRetention> SdkPojo
- Enclosing class:
DefaultRetention
-
Method Summary
Modifier and TypeMethodDescriptionThe number of days that you want to specify for the default retention period.default DefaultRetention.BuilderdefaultEventHold(Consumer<EventHoldDuration.Builder> defaultEventHold) The default event hold duration to be applied to new objects placed in the specified bucket.defaultEventHold(EventHoldDuration defaultEventHold) The default event hold duration to be applied to new objects placed in the specified bucket.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.
-
defaultEventHold
The default event hold duration to be applied to new objects placed in the specified bucket. When configured, new objects will automatically have an event hold enabled with this duration.
- Parameters:
defaultEventHold- The default event hold duration to be applied to new objects placed in the specified bucket. When configured, new objects will automatically have an event hold enabled with this duration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultEventHold
default DefaultRetention.Builder defaultEventHold(Consumer<EventHoldDuration.Builder> defaultEventHold) The default event hold duration to be applied to new objects placed in the specified bucket. When configured, new objects will automatically have an event hold enabled with this duration.
This is a convenience method that creates an instance of theEventHoldDuration.Builderavoiding the need to create one manually viaEventHoldDuration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefaultEventHold(EventHoldDuration).- Parameters:
defaultEventHold- a consumer that will call methods onEventHoldDuration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-