RestorePolicyProperties Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. RestorePolicyProperties
- com.
Implements
public final class RestorePolicyProperties
implements JsonSerializable<RestorePolicyProperties>
The blob service properties for blob restore policy.
Constructor Summary
Constructor | Description |
---|---|
RestorePolicyProperties() |
Creates an instance of Restore |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
days()
Get the days property: how long this blob can be restored. |
boolean |
enabled()
Get the enabled property: Blob restore is enabled if set to true. |
static
Restore |
fromJson(JsonReader jsonReader)
Reads an instance of Restore |
Offset |
lastEnabledTime()
Get the last |
Offset |
minRestoreTime()
Get the min |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Restore |
withDays(Integer days)
Set the days property: how long this blob can be restored. |
Restore |
withEnabled(boolean enabled)
Set the enabled property: Blob restore is enabled if set to true. |
Methods inherited from java.lang.Object
Constructor Details
RestorePolicyProperties
public RestorePolicyProperties()
Creates an instance of RestorePolicyProperties class.
Method Details
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:
enabled
public boolean enabled()
Get the enabled property: Blob restore is enabled if set to true.
Returns:
fromJson
public static RestorePolicyProperties fromJson(JsonReader jsonReader)
Reads an instance of RestorePolicyProperties from the JsonReader.
Parameters:
Returns:
Throws:
lastEnabledTime
public OffsetDateTime lastEnabledTime()
Get the lastEnabledTime property: Deprecated in favor of minRestoreTime property.
Returns:
minRestoreTime
public OffsetDateTime minRestoreTime()
Get the minRestoreTime property: Returns the minimum date and time that the restore can be started.
Returns:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withEnabled
public RestorePolicyProperties withEnabled(boolean enabled)
Set the enabled property: Blob restore is enabled if set to true.
Parameters:
Returns:
Applies to
Azure SDK for Java