public class RetentionDurationYears extends Object implements RetentionDuration
ObjectLockConfiguration
Constructor and Description |
---|
RetentionDurationYears() |
RetentionDurationYears(int years) |
Modifier and Type | Method and Description |
---|---|
int |
duration() |
String |
toString()
Returns RetentionDurationYears as string.
|
RetentionDurationUnit |
unit() |
public RetentionDurationYears()
public RetentionDurationYears(int years)
public RetentionDurationUnit unit()
unit
in interface RetentionDuration
public int duration()
duration
in interface RetentionDuration