public class ObjectLockConfiguration extends Object
Constructor and Description |
---|
ObjectLockConfiguration() |
ObjectLockConfiguration(RetentionMode mode,
RetentionDuration duration)
Constructs a new ObjectLockConfiguration object with given retention.
|
Modifier and Type | Method and Description |
---|---|
RetentionDuration |
duration()
Returns retention duration.
|
RetentionMode |
mode()
Returns retention mode.
|
public ObjectLockConfiguration()
public ObjectLockConfiguration(RetentionMode mode, RetentionDuration duration) throws IllegalArgumentException
IllegalArgumentException
public RetentionMode mode()
public RetentionDuration duration()