Class DeleteRetentionPolicy
java.lang.Object
com.microsoft.azure.management.storage.DeleteRetentionPolicy
The service properties for soft delete.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondays()
Get indicates the number of days that the deleted item should be retained.enabled()
Get indicates whether DeleteRetentionPolicy is enabled.Set indicates the number of days that the deleted item should be retained.withEnabled
(Boolean enabled) Set indicates whether DeleteRetentionPolicy is enabled.
-
Constructor Details
-
DeleteRetentionPolicy
public DeleteRetentionPolicy()
-
-
Method Details
-
enabled
Get indicates whether DeleteRetentionPolicy is enabled.- Returns:
- the enabled value
-
withEnabled
Set indicates whether DeleteRetentionPolicy is enabled.- Parameters:
enabled
- the enabled value to set- Returns:
- the DeleteRetentionPolicy object itself.
-
days
Get indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.- Returns:
- the days value
-
withDays
Set indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.- Parameters:
days
- the days value to set- Returns:
- the DeleteRetentionPolicy object itself.
-