Class Backup
- java.lang.Object
-
- com.azure.resourcemanager.mysqlflexibleserver.models.Backup
-
public final class Backup extends Object
Storage Profile properties of a server.
-
-
Constructor Summary
Constructors Constructor Description Backup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
backupRetentionDays()
Get the backupRetentionDays property: Backup retention days for the server.OffsetDateTime
earliestRestoreDate()
Get the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).EnableStatusEnum
geoRedundantBackup()
Get the geoRedundantBackup property: Whether or not geo redundant backup is enabled.void
validate()
Validates the instance.Backup
withBackupRetentionDays(Integer backupRetentionDays)
Set the backupRetentionDays property: Backup retention days for the server.Backup
withGeoRedundantBackup(EnableStatusEnum geoRedundantBackup)
Set the geoRedundantBackup property: Whether or not geo redundant backup is enabled.
-
-
-
Method Detail
-
backupRetentionDays
public Integer backupRetentionDays()
Get the backupRetentionDays property: Backup retention days for the server.- Returns:
- the backupRetentionDays value.
-
withBackupRetentionDays
public Backup withBackupRetentionDays(Integer backupRetentionDays)
Set the backupRetentionDays property: Backup retention days for the server.- Parameters:
backupRetentionDays
- the backupRetentionDays value to set.- Returns:
- the Backup object itself.
-
geoRedundantBackup
public EnableStatusEnum geoRedundantBackup()
Get the geoRedundantBackup property: Whether or not geo redundant backup is enabled.- Returns:
- the geoRedundantBackup value.
-
withGeoRedundantBackup
public Backup withGeoRedundantBackup(EnableStatusEnum geoRedundantBackup)
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
public OffsetDateTime 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.
-
-