Partager via


TableServiceRetentionPolicy Class

  • java.lang.Object
    • com.azure.data.tables.models.TableServiceRetentionPolicy

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.

TableServiceRetentionPolicy setDaysToRetain(Integer daysToRetain)

Set the number of daysToRetain that metrics or logging or soft-deleted data should be retained.

TableServiceRetentionPolicy 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:

The daysToRetain.

isEnabled

public boolean isEnabled()

Get a value that indicates whether a retention policy is enabled for the Table service.

Returns:

The 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 - The daysToRetain to set.

Returns:

The updated TableServiceRetentionPolicy object.

setEnabled

public TableServiceRetentionPolicy setEnabled(boolean enabled)

Set a value that indicates whether a retention policy is enabled for the Table service.

Parameters:

enabled - The enabled value to set.

Returns:

The updated TableServiceRetentionPolicy object.

Applies to