Class DeleteRetentionPolicy

java.lang.Object
com.microsoft.azure.management.storage.DeleteRetentionPolicy

public class DeleteRetentionPolicy extends Object
The service properties for soft delete.
  • Constructor Details

    • DeleteRetentionPolicy

      public DeleteRetentionPolicy()
  • Method Details

    • enabled

      public Boolean enabled()
      Get indicates whether DeleteRetentionPolicy is enabled.
      Returns:
      the enabled value
    • withEnabled

      public DeleteRetentionPolicy withEnabled(Boolean enabled)
      Set indicates whether DeleteRetentionPolicy is enabled.
      Parameters:
      enabled - the enabled value to set
      Returns:
      the DeleteRetentionPolicy object itself.
    • days

      public Integer 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

      public DeleteRetentionPolicy withDays(Integer days)
      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.