Package com.azure.data.tables.models
Class TableServiceRetentionPolicy
java.lang.Object
com.azure.data.tables.models.TableServiceRetentionPolicy
The Table service retention policy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the number of days that metrics or logging or soft-deleted data should be retained.boolean
Get 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
enabled
value.
-
setEnabled
Set a value that indicates whether a retention policy is enabled for the Table service.- Parameters:
enabled
- Theenabled
value to set.- Returns:
- The updated
TableServiceRetentionPolicy
object.
-
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
- ThedaysToRetain
to set.- Returns:
- The updated
TableServiceRetentionPolicy
object.
-