BackupShortTermRetentionPolicyProperties Class
- java.
lang. Object - com.
azure. resourcemanager. sql. fluent. models. BackupShortTermRetentionPolicyProperties
- com.
Implements
public final class BackupShortTermRetentionPolicyProperties
implements JsonSerializable<BackupShortTermRetentionPolicyProperties>
Properties of a short term retention policy.
Constructor Summary
| Constructor | Description |
|---|---|
| BackupShortTermRetentionPolicyProperties() |
Creates an instance of Backup |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Diff |
diffBackupIntervalInHours()
Get the diff |
|
static
Backup |
fromJson(JsonReader jsonReader)
Reads an instance of Backup |
| Integer |
retentionDays()
Get the retention |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Backup |
withDiffBackupIntervalInHours(DiffBackupIntervalInHours diffBackupIntervalInHours)
Set the diff |
|
Backup |
withRetentionDays(Integer retentionDays)
Set the retention |
Methods inherited from java.lang.Object
Constructor Details
BackupShortTermRetentionPolicyProperties
public BackupShortTermRetentionPolicyProperties()
Creates an instance of BackupShortTermRetentionPolicyProperties class.
Method Details
diffBackupIntervalInHours
public DiffBackupIntervalInHours diffBackupIntervalInHours()
Get the diffBackupIntervalInHours property: The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases.
Returns:
fromJson
public static BackupShortTermRetentionPolicyProperties fromJson(JsonReader jsonReader)
Reads an instance of BackupShortTermRetentionPolicyProperties from the JsonReader.
Parameters:
Returns:
Throws:
retentionDays
public Integer retentionDays()
Get the retentionDays property: The backup retention period in days. This is how many days Point-in-Time Restore will be supported.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDiffBackupIntervalInHours
public BackupShortTermRetentionPolicyProperties withDiffBackupIntervalInHours(DiffBackupIntervalInHours diffBackupIntervalInHours)
Set the diffBackupIntervalInHours property: The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases.
Parameters:
Returns:
withRetentionDays
public BackupShortTermRetentionPolicyProperties withRetentionDays(Integer retentionDays)
Set the retentionDays property: The backup retention period in days. This is how many days Point-in-Time Restore will be supported.
Parameters:
Returns: