Class AutoBackupSettings
java.lang.Object
com.azure.resourcemanager.sqlvirtualmachine.models.AutoBackupSettings
Configure backups for databases in your SQL virtual machine.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the backupScheduleType property: Backup schedule type.Get the backupSystemDbs property: Include or exclude system databases from auto backup.Get the daysOfWeek property: Days of the week for the backups when FullBackupFrequency is set to Weekly.enable()
Get the enable property: Enable or disable autobackup on SQL virtual machine.Get the enableEncryption property: Enable or disable encryption for backup on SQL virtual machine.Get the fullBackupFrequency property: Frequency of full backups.Get the fullBackupStartTime property: Start time of a given day during which full backups can take place.Get the fullBackupWindowHours property: Duration of the time window of a given day during which full backups can take place.Get the logBackupFrequency property: Frequency of log backups.password()
Get the password property: Password for encryption on backup.Get the retentionPeriod property: Retention period of backup: 1-90 days.Get the storageAccessKey property: Storage account key where backup will be taken to.Get the storageAccountUrl property: Storage account url where backup will be taken to.Get the storageContainerName property: Storage container name where backup will be taken to.void
validate()
Validates the instance.withBackupScheduleType
(BackupScheduleType backupScheduleType) Set the backupScheduleType property: Backup schedule type.withBackupSystemDbs
(Boolean backupSystemDbs) Set the backupSystemDbs property: Include or exclude system databases from auto backup.withDaysOfWeek
(List<AutoBackupDaysOfWeek> daysOfWeek) Set the daysOfWeek property: Days of the week for the backups when FullBackupFrequency is set to Weekly.withEnable
(Boolean enable) Set the enable property: Enable or disable autobackup on SQL virtual machine.withEnableEncryption
(Boolean enableEncryption) Set the enableEncryption property: Enable or disable encryption for backup on SQL virtual machine.withFullBackupFrequency
(FullBackupFrequencyType fullBackupFrequency) Set the fullBackupFrequency property: Frequency of full backups.withFullBackupStartTime
(Integer fullBackupStartTime) Set the fullBackupStartTime property: Start time of a given day during which full backups can take place.withFullBackupWindowHours
(Integer fullBackupWindowHours) Set the fullBackupWindowHours property: Duration of the time window of a given day during which full backups can take place.withLogBackupFrequency
(Integer logBackupFrequency) Set the logBackupFrequency property: Frequency of log backups.withPassword
(String password) Set the password property: Password for encryption on backup.withRetentionPeriod
(Integer retentionPeriod) Set the retentionPeriod property: Retention period of backup: 1-90 days.withStorageAccessKey
(String storageAccessKey) Set the storageAccessKey property: Storage account key where backup will be taken to.withStorageAccountUrl
(String storageAccountUrl) Set the storageAccountUrl property: Storage account url where backup will be taken to.withStorageContainerName
(String storageContainerName) Set the storageContainerName property: Storage container name where backup will be taken to.
-
Constructor Details
-
AutoBackupSettings
public AutoBackupSettings()
-
-
Method Details
-
enable
Get the enable property: Enable or disable autobackup on SQL virtual machine.- Returns:
- the enable value.
-
withEnable
Set the enable property: Enable or disable autobackup on SQL virtual machine.- Parameters:
enable
- the enable value to set.- Returns:
- the AutoBackupSettings object itself.
-
enableEncryption
Get the enableEncryption property: Enable or disable encryption for backup on SQL virtual machine.- Returns:
- the enableEncryption value.
-
withEnableEncryption
Set the enableEncryption property: Enable or disable encryption for backup on SQL virtual machine.- Parameters:
enableEncryption
- the enableEncryption value to set.- Returns:
- the AutoBackupSettings object itself.
-
retentionPeriod
Get the retentionPeriod property: Retention period of backup: 1-90 days.- Returns:
- the retentionPeriod value.
-
withRetentionPeriod
Set the retentionPeriod property: Retention period of backup: 1-90 days.- Parameters:
retentionPeriod
- the retentionPeriod value to set.- Returns:
- the AutoBackupSettings object itself.
-
storageAccountUrl
Get the storageAccountUrl property: Storage account url where backup will be taken to.- Returns:
- the storageAccountUrl value.
-
withStorageAccountUrl
Set the storageAccountUrl property: Storage account url where backup will be taken to.- Parameters:
storageAccountUrl
- the storageAccountUrl value to set.- Returns:
- the AutoBackupSettings object itself.
-
storageContainerName
Get the storageContainerName property: Storage container name where backup will be taken to.- Returns:
- the storageContainerName value.
-
withStorageContainerName
Set the storageContainerName property: Storage container name where backup will be taken to.- Parameters:
storageContainerName
- the storageContainerName value to set.- Returns:
- the AutoBackupSettings object itself.
-
storageAccessKey
Get the storageAccessKey property: Storage account key where backup will be taken to.- Returns:
- the storageAccessKey value.
-
withStorageAccessKey
Set the storageAccessKey property: Storage account key where backup will be taken to.- Parameters:
storageAccessKey
- the storageAccessKey value to set.- Returns:
- the AutoBackupSettings object itself.
-
password
Get the password property: Password for encryption on backup.- Returns:
- the password value.
-
withPassword
Set the password property: Password for encryption on backup.- Parameters:
password
- the password value to set.- Returns:
- the AutoBackupSettings object itself.
-
backupSystemDbs
Get the backupSystemDbs property: Include or exclude system databases from auto backup.- Returns:
- the backupSystemDbs value.
-
withBackupSystemDbs
Set the backupSystemDbs property: Include or exclude system databases from auto backup.- Parameters:
backupSystemDbs
- the backupSystemDbs value to set.- Returns:
- the AutoBackupSettings object itself.
-
backupScheduleType
Get the backupScheduleType property: Backup schedule type.- Returns:
- the backupScheduleType value.
-
withBackupScheduleType
Set the backupScheduleType property: Backup schedule type.- Parameters:
backupScheduleType
- the backupScheduleType value to set.- Returns:
- the AutoBackupSettings object itself.
-
fullBackupFrequency
Get the fullBackupFrequency property: Frequency of full backups. In both cases, full backups begin during the next scheduled time window.- Returns:
- the fullBackupFrequency value.
-
withFullBackupFrequency
Set the fullBackupFrequency property: Frequency of full backups. In both cases, full backups begin during the next scheduled time window.- Parameters:
fullBackupFrequency
- the fullBackupFrequency value to set.- Returns:
- the AutoBackupSettings object itself.
-
daysOfWeek
Get the daysOfWeek property: Days of the week for the backups when FullBackupFrequency is set to Weekly.- Returns:
- the daysOfWeek value.
-
withDaysOfWeek
Set the daysOfWeek property: Days of the week for the backups when FullBackupFrequency is set to Weekly.- Parameters:
daysOfWeek
- the daysOfWeek value to set.- Returns:
- the AutoBackupSettings object itself.
-
fullBackupStartTime
Get the fullBackupStartTime property: Start time of a given day during which full backups can take place. 0-23 hours.- Returns:
- the fullBackupStartTime value.
-
withFullBackupStartTime
Set the fullBackupStartTime property: Start time of a given day during which full backups can take place. 0-23 hours.- Parameters:
fullBackupStartTime
- the fullBackupStartTime value to set.- Returns:
- the AutoBackupSettings object itself.
-
fullBackupWindowHours
Get the fullBackupWindowHours property: Duration of the time window of a given day during which full backups can take place. 1-23 hours.- Returns:
- the fullBackupWindowHours value.
-
withFullBackupWindowHours
Set the fullBackupWindowHours property: Duration of the time window of a given day during which full backups can take place. 1-23 hours.- Parameters:
fullBackupWindowHours
- the fullBackupWindowHours value to set.- Returns:
- the AutoBackupSettings object itself.
-
logBackupFrequency
Get the logBackupFrequency property: Frequency of log backups. 5-60 minutes.- Returns:
- the logBackupFrequency value.
-
withLogBackupFrequency
Set the logBackupFrequency property: Frequency of log backups. 5-60 minutes.- Parameters:
logBackupFrequency
- the logBackupFrequency value to set.- Returns:
- the AutoBackupSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-