public final class RetentionPolicy extends Object
| Constructor and Description |
|---|
RetentionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
int |
days()
Get the days property: the number of days for the retention in days.
|
boolean |
enabled()
Get the enabled property: a value indicating whether the retention policy is enabled.
|
void |
validate()
Validates the instance.
|
RetentionPolicy |
withDays(int days)
Set the days property: the number of days for the retention in days.
|
RetentionPolicy |
withEnabled(boolean enabled)
Set the enabled property: a value indicating whether the retention policy is enabled.
|
public boolean enabled()
public RetentionPolicy withEnabled(boolean enabled)
enabled - the enabled value to set.public int days()
public RetentionPolicy withDays(int days)
days - the days value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.