Interface ObjectLockRetention.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ObjectLockRetention.Builder,ObjectLockRetention>
,SdkBuilder<ObjectLockRetention.Builder,ObjectLockRetention>
,SdkPojo
- Enclosing class:
- ObjectLockRetention
public static interface ObjectLockRetention.Builder extends SdkPojo, CopyableBuilder<ObjectLockRetention.Builder,ObjectLockRetention>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectLockRetention.Builder
mode(String mode)
Indicates the Retention mode for the specified object.ObjectLockRetention.Builder
mode(ObjectLockRetentionMode mode)
Indicates the Retention mode for the specified object.ObjectLockRetention.Builder
retainUntilDate(Instant retainUntilDate)
The date on which this Object Lock Retention will expire.-
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
-
mode
ObjectLockRetention.Builder mode(String 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:
ObjectLockRetentionMode
,ObjectLockRetentionMode
-
mode
ObjectLockRetention.Builder mode(ObjectLockRetentionMode 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:
ObjectLockRetentionMode
,ObjectLockRetentionMode
-
retainUntilDate
ObjectLockRetention.Builder retainUntilDate(Instant 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.
-
-