Package com.azure.data.tables.models
Class TableServiceRetentionPolicy
java.lang.Object
com.azure.data.tables.models.TableServiceRetentionPolicy
The Table service retention policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the number of days that metrics or logging or soft-deleted data should be retained.booleanGet a value that indicates whether a retention policy is enabled for the Table service.setDaysToRetain(Integer daysToRetain) Set the number of daysToRetain that metrics or logging or soft-deleted data should be retained.setEnabled(boolean enabled) Set a value that indicates whether a retention policy is enabled for the Table service.
-
Constructor Details
-
TableServiceRetentionPolicy
public TableServiceRetentionPolicy()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Get a value that indicates whether a retention policy is enabled for the Table service.- Returns:
- The
enabledvalue.
-
setEnabled
Set a value that indicates whether a retention policy is enabled for the Table service.- Parameters:
enabled- Theenabledvalue to set.- Returns:
- The updated
TableServiceRetentionPolicyobject.
-
getDaysToRetain
Get the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted.- Returns:
- The
daysToRetain.
-
setDaysToRetain
Set the number of daysToRetain that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted.- Parameters:
daysToRetain- ThedaysToRetainto set.- Returns:
- The updated
TableServiceRetentionPolicyobject.
-