Class RestorePolicyProperties
java.lang.Object
com.microsoft.azure.management.storage.RestorePolicyProperties
The blob service properties for blob restore policy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondays()
Get how long this blob can be restored.boolean
enabled()
Get blob restore is enabled if set to true.org.joda.time.DateTime
Get deprecated in favor of minRestoreTime property.org.joda.time.DateTime
Get returns the minimum date and time that the restore can be started.Set how long this blob can be restored.withEnabled
(boolean enabled) Set blob restore is enabled if set to true.
-
Constructor Details
-
RestorePolicyProperties
public RestorePolicyProperties()
-
-
Method Details
-
enabled
public boolean enabled()Get blob restore is enabled if set to true.- Returns:
- the enabled value
-
withEnabled
Set blob restore is enabled if set to true.- Parameters:
enabled
- the enabled value to set- Returns:
- the RestorePolicyProperties object itself.
-
days
Get how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.- Returns:
- the days value
-
withDays
Set 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 org.joda.time.DateTime lastEnabledTime()Get deprecated in favor of minRestoreTime property.- Returns:
- the lastEnabledTime value
-
minRestoreTime
public org.joda.time.DateTime minRestoreTime()Get returns the minimum date and time that the restore can be started.- Returns:
- the minRestoreTime value
-