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