Class Backup
java.lang.Object
com.azure.resourcemanager.mysqlflexibleserver.models.Backup
Storage Profile properties of a server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the backupRetentionDays property: Backup retention days for the server.Get the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).Get the geoRedundantBackup property: Whether or not geo redundant backup is enabled.void
validate()
Validates the instance.withBackupRetentionDays
(Integer backupRetentionDays) Set the backupRetentionDays property: Backup retention days for the server.withGeoRedundantBackup
(EnableStatusEnum geoRedundantBackup) Set the geoRedundantBackup property: Whether or not geo redundant backup is enabled.
-
Constructor Details
-
Backup
public Backup()Creates an instance of Backup class.
-
-
Method Details
-
backupRetentionDays
Get the backupRetentionDays property: Backup retention days for the server.- Returns:
- the backupRetentionDays value.
-
withBackupRetentionDays
Set the backupRetentionDays property: Backup retention days for the server.- Parameters:
backupRetentionDays
- the backupRetentionDays value to set.- Returns:
- the Backup object itself.
-
geoRedundantBackup
Get the geoRedundantBackup property: Whether or not geo redundant backup is enabled.- Returns:
- the geoRedundantBackup value.
-
withGeoRedundantBackup
Set the geoRedundantBackup property: Whether or not geo redundant backup is enabled.- Parameters:
geoRedundantBackup
- the geoRedundantBackup value to set.- Returns:
- the Backup object itself.
-
earliestRestoreDate
Get the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).- Returns:
- the earliestRestoreDate value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-