public final class RestorePolicyProperties extends Object
| Constructor and Description |
|---|
RestorePolicyProperties() |
| 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.
|
OffsetDateTime |
lastEnabledTime()
Get the lastEnabledTime property: Deprecated in favor of minRestoreTime property.
|
OffsetDateTime |
minRestoreTime()
Get the minRestoreTime property: Returns the minimum date and time that the restore can be started.
|
void |
validate()
Validates the instance.
|
RestorePolicyProperties |
withDays(Integer days)
Set the days property: how long this blob can be restored.
|
RestorePolicyProperties |
withEnabled(boolean enabled)
Set the enabled property: Blob restore is enabled if set to true.
|
public boolean enabled()
public RestorePolicyProperties withEnabled(boolean enabled)
enabled - the enabled value to set.public Integer days()
public RestorePolicyProperties withDays(Integer days)
days - the days value to set.public OffsetDateTime lastEnabledTime()
public OffsetDateTime minRestoreTime()
public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.