public final class ShareRetentionPolicy extends Object
| Constructor and Description |
|---|
ShareRetentionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getDays()
Get the days property: Indicates the number of days that metrics data should be retained.
|
boolean |
isEnabled()
Get the enabled property: Indicates whether a retention policy is enabled for the File service.
|
ShareRetentionPolicy |
setDays(Integer days)
Set the days property: Indicates the number of days that metrics data should be retained.
|
ShareRetentionPolicy |
setEnabled(boolean enabled)
Set the enabled property: Indicates whether a retention policy is enabled for the File service.
|
public boolean isEnabled()
public ShareRetentionPolicy setEnabled(boolean enabled)
enabled - the enabled value to set.public Integer getDays()
public ShareRetentionPolicy setDays(Integer days)
days - the days value to set.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.