Package com.azure.data.tables.models
Class TableServiceRetentionPolicy
- java.lang.Object
-
- com.azure.data.tables.models.TableServiceRetentionPolicy
-
public final class TableServiceRetentionPolicy extends Object
The Table service retention policy.
-
-
Constructor Summary
Constructors Constructor Description TableServiceRetentionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetDaysToRetain()Get the number of days that metrics or logging or soft-deleted data should be retained.booleanisEnabled()Get a value that indicates whether a retention policy is enabled for the Table service.TableServiceRetentionPolicysetDaysToRetain(Integer daysToRetain)Set the number of daysToRetain that metrics or logging or soft-deleted data should be retained.TableServiceRetentionPolicysetEnabled(boolean enabled)Set a value that indicates whether a retention policy is enabled for the Table service.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Get a value that indicates whether a retention policy is enabled for the Table service.- Returns:
- The
enabledvalue.
-
setEnabled
public TableServiceRetentionPolicy setEnabled(boolean enabled)
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
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:
- The
daysToRetain.
-
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- ThedaysToRetainto set.- Returns:
- The updated
TableServiceRetentionPolicyobject.
-
-