Interface ObjectLockRetention.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ObjectLockRetention.Builder,,ObjectLockRetention> SdkBuilder<ObjectLockRetention.Builder,,ObjectLockRetention> SdkPojo
- Enclosing class:
ObjectLockRetention
-
Method Summary
Modifier and TypeMethodDescriptionThe event hold status for the object.eventHold(ObjectLockEventHold eventHold) The event hold status for the object.default ObjectLockRetention.BuildereventHoldDuration(Consumer<EventHoldDuration.Builder> eventHoldDuration) The event hold duration for the object.eventHoldDuration(EventHoldDuration eventHoldDuration) The event hold duration for the object.Indicates the Retention mode for the specified object.mode(ObjectLockRetentionMode mode) Indicates the Retention mode for the specified object.retainUntilDate(Instant retainUntilDate) The date on which this Object Lock Retention will expire.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
Indicates the Retention mode for the specified object.
- Parameters:
mode- Indicates the Retention mode for the specified object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mode
Indicates the Retention mode for the specified object.
- Parameters:
mode- Indicates the Retention mode for the specified object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
retainUntilDate
The date on which this Object Lock Retention will expire.
- Parameters:
retainUntilDate- The date on which this Object Lock Retention will expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventHold
The event hold status for the object. Set to
ONto enable an event hold orOFFto disable it.- Parameters:
eventHold- The event hold status for the object. Set toONto enable an event hold orOFFto disable it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventHold
The event hold status for the object. Set to
ONto enable an event hold orOFFto disable it.- Parameters:
eventHold- The event hold status for the object. Set toONto enable an event hold orOFFto disable it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventHoldDuration
The event hold duration for the object. Specifies how long the object remains protected after the event hold is released.
- Parameters:
eventHoldDuration- The event hold duration for the object. Specifies how long the object remains protected after the event hold is released.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventHoldDuration
default ObjectLockRetention.Builder eventHoldDuration(Consumer<EventHoldDuration.Builder> eventHoldDuration) The event hold duration for the object. Specifies how long the object remains protected after the event hold is released.
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 toeventHoldDuration(EventHoldDuration).- Parameters:
eventHoldDuration- 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:
-