Class RestorePolicyProperties

java.lang.Object
com.azure.resourcemanager.storage.models.RestorePolicyProperties

public final class RestorePolicyProperties extends Object
The blob service properties for blob restore policy.
  • Constructor Details

    • RestorePolicyProperties

      public RestorePolicyProperties()
  • Method Details

    • enabled

      public boolean enabled()
      Get the enabled property: Blob restore is enabled if set to true.
      Returns:
      the enabled value.
    • withEnabled

      public RestorePolicyProperties withEnabled(boolean enabled)
      Set the enabled property: Blob restore is enabled if set to true.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the RestorePolicyProperties object itself.
    • days

      public Integer days()
      Get the days property: how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
      Returns:
      the days value.
    • withDays

      public RestorePolicyProperties withDays(Integer days)
      Set the days property: how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
      Parameters:
      days - the days value to set.
      Returns:
      the RestorePolicyProperties object itself.
    • lastEnabledTime

      public OffsetDateTime lastEnabledTime()
      Get the lastEnabledTime property: Deprecated in favor of minRestoreTime property.
      Returns:
      the lastEnabledTime value.
    • minRestoreTime

      public OffsetDateTime minRestoreTime()
      Get the minRestoreTime property: Returns the minimum date and time that the restore can be started.
      Returns:
      the minRestoreTime value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.