DataLakeRetentionPolicy Class
- java.
lang. Object - com.
azure. storage. file. datalake. models. DataLakeRetentionPolicy
- com.
public final class DataLakeRetentionPolicy
the retention policy which determines how long the associated data should persist.
Constructor Summary
Constructor | Description | |
---|---|---|
DataLakeRetentionPolicy() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
getDays()
Get the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained. |
boolean |
isEnabled()
Get the enabled property: Indicates whether a retention policy is enabled for the storage service. |
Data |
setDays(Integer days)
Set the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained. |
Data |
setEnabled(boolean enabled)
Set the enabled property: Indicates whether a retention policy is enabled for the storage service. |
Methods inherited from java.lang.Object
Constructor Details
DataLakeRetentionPolicy
public DataLakeRetentionPolicy()
Method Details
getDays
public Integer getDays()
Get the days property: Indicates 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:
isEnabled
public boolean isEnabled()
Get the enabled property: Indicates whether a retention policy is enabled for the storage service.
Returns:
setDays
public DataLakeRetentionPolicy setDays(Integer days)
Set the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted.
Parameters:
Returns:
setEnabled
public DataLakeRetentionPolicy setEnabled(boolean enabled)
Set the enabled property: Indicates whether a retention policy is enabled for the storage service.
Parameters:
Returns:
Applies to
Azure SDK for Java