Interface S3Retention.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<S3Retention.Builder,,S3Retention> SdkBuilder<S3Retention.Builder,,S3Retention> SdkPojo
- Enclosing class:
S3Retention
-
Method Summary
Modifier and TypeMethodDescriptionThe event hold status to be applied to all objects in the Batch Operations job.eventHold(S3ObjectLockRetentionEventHold eventHold) The event hold status to be applied to all objects in the Batch Operations job.default S3Retention.BuildereventHoldDuration(Consumer<S3ObjectLockRetentionEventHoldDuration.Builder> eventHoldDuration) The event hold duration to be applied to all objects in the Batch Operations job.eventHoldDuration(S3ObjectLockRetentionEventHoldDuration eventHoldDuration) The event hold duration to be applied to all objects in the Batch Operations job.The Object Lock retention mode to be applied to all objects in the Batch Operations job.The Object Lock retention mode to be applied to all objects in the Batch Operations job.retainUntilDate(Instant retainUntilDate) The date when the applied Object Lock retention will expire on all objects set by the Batch Operations job.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
-
retainUntilDate
The date when the applied Object Lock retention will expire on all objects set by the Batch Operations job.
- Parameters:
retainUntilDate- The date when the applied Object Lock retention will expire on all objects set by the Batch Operations job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mode
The Object Lock retention mode to be applied to all objects in the Batch Operations job.
- Parameters:
mode- The Object Lock retention mode to be applied to all objects in the Batch Operations job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mode
The Object Lock retention mode to be applied to all objects in the Batch Operations job.
- Parameters:
mode- The Object Lock retention mode to be applied to all objects in the Batch Operations job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventHold
The event hold status to be applied to all objects in the Batch Operations job. Set to
ONto enable an event hold orOFFto disable it.- Parameters:
eventHold- The event hold status to be applied to all objects in the Batch Operations job. 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 to be applied to all objects in the Batch Operations job. Set to
ONto enable an event hold orOFFto disable it.- Parameters:
eventHold- The event hold status to be applied to all objects in the Batch Operations job. 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 to be applied to all objects in the Batch Operations job. The duration specifies how long the object remains protected after the event hold is released.
- Parameters:
eventHoldDuration- The event hold duration to be applied to all objects in the Batch Operations job. The duration 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 S3Retention.Builder eventHoldDuration(Consumer<S3ObjectLockRetentionEventHoldDuration.Builder> eventHoldDuration) The event hold duration to be applied to all objects in the Batch Operations job. The duration specifies how long the object remains protected after the event hold is released.
This is a convenience method that creates an instance of theS3ObjectLockRetentionEventHoldDuration.Builderavoiding the need to create one manually viaS3ObjectLockRetentionEventHoldDuration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeventHoldDuration(S3ObjectLockRetentionEventHoldDuration).- Parameters:
eventHoldDuration- a consumer that will call methods onS3ObjectLockRetentionEventHoldDuration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-