Class ShareRetentionPolicy
java.lang.Object
com.azure.storage.file.share.models.ShareRetentionPolicy
The retention policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDays()
Get the days property: Indicates the number of days that metrics data should be retained.boolean
Get the enabled property: Indicates whether a retention policy is enabled for the File service.Set the days property: Indicates the number of days that metrics data should be retained.setEnabled
(boolean enabled) Set the enabled property: Indicates whether a retention policy is enabled for the File service.
-
Constructor Details
-
ShareRetentionPolicy
public ShareRetentionPolicy()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Get the enabled property: Indicates whether a retention policy is enabled for the File service. If false, metrics data is retained, and the user is responsible for deleting it.- Returns:
- the enabled value.
-
setEnabled
Set the enabled property: Indicates whether a retention policy is enabled for the File service. If false, metrics data is retained, and the user is responsible for deleting it.- Parameters:
enabled
- the enabled value to set.- Returns:
- the ShareRetentionPolicy object itself.
-
getDays
Get the days property: Indicates the number of days that metrics data should be retained. All data older than this value will be deleted. Metrics data is deleted on a best-effort basis after the retention period expires.- Returns:
- the days value.
-
setDays
Set the days property: Indicates the number of days that metrics data should be retained. All data older than this value will be deleted. Metrics data is deleted on a best-effort basis after the retention period expires.- Parameters:
days
- the days value to set.- Returns:
- the ShareRetentionPolicy object itself.
-