TableServiceRetentionPolicy Class
- java.
lang. Object - com.
azure. data. tables. models. TableServiceRetentionPolicy
- com.
public final class TableServiceRetentionPolicy
The Table service retention policy.
Constructor Summary
Constructor | Description |
---|---|
TableServiceRetentionPolicy() |
Creates a TableServiceRetentionPolicy. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
getDaysToRetain()
Get the number of days that metrics or logging or soft-deleted data should be retained. |
boolean |
isEnabled()
Get a value that indicates whether a retention policy is enabled for the Table service. |
Table |
setDaysToRetain(Integer daysToRetain)
Set the number of days |
Table |
setEnabled(boolean enabled)
Set a value that indicates whether a retention policy is enabled for the Table service. |
Methods inherited from java.lang.Object
Constructor Details
TableServiceRetentionPolicy
public TableServiceRetentionPolicy()
Creates a TableServiceRetentionPolicy.
Method Details
getDaysToRetain
public Integer 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:
daysToRetain
.isEnabled
public boolean isEnabled()
Get a value that indicates whether a retention policy is enabled for the Table service.
Returns:
enabled
value.setDaysToRetain
public TableServiceRetentionPolicy setDaysToRetain(Integer daysToRetain)
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
to set.
Returns:
setEnabled
public TableServiceRetentionPolicy setEnabled(boolean enabled)
Set a value that indicates whether a retention policy is enabled for the Table service.
Parameters:
enabled
value to set.
Returns:
Applies to
Azure SDK for Java