Class RestorePolicyProperties
java.lang.Object
com.azure.resourcemanager.storage.models.RestorePolicyProperties
The blob service properties for blob restore policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondays()Get the days property: how long this blob can be restored.booleanenabled()Get the enabled property: Blob restore is enabled if set to true.Get the lastEnabledTime property: Deprecated in favor of minRestoreTime property.Get the minRestoreTime property: Returns the minimum date and time that the restore can be started.voidvalidate()Validates the instance.Set the days property: how long this blob can be restored.withEnabled(boolean enabled) Set the enabled property: Blob restore is enabled if set to true.
-
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
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
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
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
Get the lastEnabledTime property: Deprecated in favor of minRestoreTime property.- Returns:
- the lastEnabledTime value.
-
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.
-