BackupShortTermRetentionPolicyInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. BackupShortTermRetentionPolicyInner
- com.
- com.
public final class BackupShortTermRetentionPolicyInner
extends ProxyResource
A short term retention policy.
Constructor Summary
Constructor | Description |
---|---|
BackupShortTermRetentionPolicyInner() |
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 |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
Integer |
retentionDays()
Get the retention |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Backup |
withDiffBackupIntervalInHours(DiffBackupIntervalInHours diffBackupIntervalInHours)
Set the diff |
Backup |
withRetentionDays(Integer retentionDays)
Set the retention |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
BackupShortTermRetentionPolicyInner
public BackupShortTermRetentionPolicyInner()
Creates an instance of BackupShortTermRetentionPolicyInner 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 BackupShortTermRetentionPolicyInner fromJson(JsonReader jsonReader)
Reads an instance of BackupShortTermRetentionPolicyInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
BackupShortTermRetentionPolicyInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
BackupShortTermRetentionPolicyInner.name()Returns:
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
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
BackupShortTermRetentionPolicyInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
BackupShortTermRetentionPolicyInner.type()Returns:
validate
public void validate()
Validates the instance.
withDiffBackupIntervalInHours
public BackupShortTermRetentionPolicyInner 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 BackupShortTermRetentionPolicyInner 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:
Applies to
Azure SDK for Java