Package com.azure.storage.blob.models
Class BlobRetentionPolicy
java.lang.Object
com.azure.storage.blob.models.BlobRetentionPolicy
the retention policy which determines how long the associated data should persist.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDays()
Get the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained.boolean
Get the enabled property: Indicates whether a retention policy is enabled for the storage service.Set the days property: Indicates the number of days that metrics or logging or soft-deleted data should be retained.setEnabled
(boolean enabled) Set the enabled property: Indicates whether a retention policy is enabled for the storage service.
-
Constructor Details
-
BlobRetentionPolicy
public BlobRetentionPolicy()Creates an instance of BlobRetentionPolicy class.
-
-
Method Details
-
isEnabled
public boolean isEnabled()Get the enabled property: Indicates whether a retention policy is enabled for the storage service.- Returns:
- the enabled value.
-
setEnabled
Set the enabled property: Indicates whether a retention policy is enabled for the storage service.- Parameters:
enabled
- the enabled value to set.- Returns:
- the BlobRetentionPolicy object itself.
-
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:
- the days value.
-
setDays
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:
days
- the days value to set.- Returns:
- the BlobRetentionPolicy object itself.
-