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 Summary
Constructors Constructor Description RestorePolicyProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integerdays()Get the days property: how long this blob can be restored.booleanenabled()Get the enabled property: Blob restore is enabled if set to true.OffsetDateTimelastEnabledTime()Get the lastEnabledTime property: Deprecated in favor of minRestoreTime property.OffsetDateTimeminRestoreTime()Get the minRestoreTime property: Returns the minimum date and time that the restore can be started.voidvalidate()Validates the instance.RestorePolicyPropertieswithDays(Integer days)Set the days property: how long this blob can be restored.RestorePolicyPropertieswithEnabled(boolean enabled)Set the enabled property: Blob restore is enabled if set to true.
-
-
-
Method Detail
-
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.
-
-