AutoBackupSettings Class
- java.
lang. Object - com.
azure. resourcemanager. sqlvirtualmachine. models. AutoBackupSettings
- com.
public final class AutoBackupSettings
Configure backups for databases in your SQL virtual machine.
Constructor Summary
Constructor | Description |
---|---|
AutoBackupSettings() |
Creates an instance of Auto |
Method Summary
Modifier and Type | Method and Description |
---|---|
Backup |
backupScheduleType()
Get the backup |
Boolean |
backupSystemDbs()
Get the backup |
List<Auto |
daysOfWeek()
Get the days |
Boolean |
enable()
Get the enable property: Enable or disable autobackup on SQL virtual machine. |
Boolean |
enableEncryption()
Get the enable |
Full |
fullBackupFrequency()
Get the full |
Integer |
fullBackupStartTime()
Get the full |
Integer |
fullBackupWindowHours()
Get the full |
Integer |
logBackupFrequency()
Get the log |
String |
password()
Get the password property: Password for encryption on backup. |
Integer |
retentionPeriod()
Get the retention |
String |
storageAccessKey()
Get the storage |
String |
storageAccountUrl()
Get the storage |
String |
storageContainerName()
Get the storage |
void |
validate()
Validates the instance. |
Auto |
withBackupScheduleType(BackupScheduleType backupScheduleType)
Set the backup |
Auto |
withBackupSystemDbs(Boolean backupSystemDbs)
Set the backup |
Auto |
withDaysOfWeek(List<AutoBackupDaysOfWeek> daysOfWeek)
Set the days |
Auto |
withEnable(Boolean enable)
Set the enable property: Enable or disable autobackup on SQL virtual machine. |
Auto |
withEnableEncryption(Boolean enableEncryption)
Set the enable |
Auto |
withFullBackupFrequency(FullBackupFrequencyType fullBackupFrequency)
Set the full |
Auto |
withFullBackupStartTime(Integer fullBackupStartTime)
Set the full |
Auto |
withFullBackupWindowHours(Integer fullBackupWindowHours)
Set the full |
Auto |
withLogBackupFrequency(Integer logBackupFrequency)
Set the log |
Auto |
withPassword(String password)
Set the password property: Password for encryption on backup. |
Auto |
withRetentionPeriod(Integer retentionPeriod)
Set the retention |
Auto |
withStorageAccessKey(String storageAccessKey)
Set the storage |
Auto |
withStorageAccountUrl(String storageAccountUrl)
Set the storage |
Auto |
withStorageContainerName(String storageContainerName)
Set the storage |
Methods inherited from java.lang.Object
Constructor Details
AutoBackupSettings
public AutoBackupSettings()
Creates an instance of AutoBackupSettings class.
Method Details
backupScheduleType
public BackupScheduleType backupScheduleType()
Get the backupScheduleType property: Backup schedule type.
Returns:
backupSystemDbs
public Boolean backupSystemDbs()
Get the backupSystemDbs property: Include or exclude system databases from auto backup.
Returns:
daysOfWeek
public List
Get the daysOfWeek property: Days of the week for the backups when FullBackupFrequency is set to Weekly.
Returns:
enable
public Boolean enable()
Get the enable property: Enable or disable autobackup on SQL virtual machine.
Returns:
enableEncryption
public Boolean enableEncryption()
Get the enableEncryption property: Enable or disable encryption for backup on SQL virtual machine.
Returns:
fullBackupFrequency
public FullBackupFrequencyType fullBackupFrequency()
Get the fullBackupFrequency property: Frequency of full backups. In both cases, full backups begin during the next scheduled time window.
Returns:
fullBackupStartTime
public Integer fullBackupStartTime()
Get the fullBackupStartTime property: Start time of a given day during which full backups can take place. 0-23 hours.
Returns:
fullBackupWindowHours
public Integer 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:
logBackupFrequency
public Integer logBackupFrequency()
Get the logBackupFrequency property: Frequency of log backups. 5-60 minutes.
Returns:
password
public String password()
Get the password property: Password for encryption on backup.
Returns:
retentionPeriod
public Integer retentionPeriod()
Get the retentionPeriod property: Retention period of backup: 1-90 days.
Returns:
storageAccessKey
public String storageAccessKey()
Get the storageAccessKey property: Storage account key where backup will be taken to.
Returns:
storageAccountUrl
public String storageAccountUrl()
Get the storageAccountUrl property: Storage account url where backup will be taken to.
Returns:
storageContainerName
public String storageContainerName()
Get the storageContainerName property: Storage container name where backup will be taken to.
Returns:
validate
public void validate()
Validates the instance.
withBackupScheduleType
public AutoBackupSettings withBackupScheduleType(BackupScheduleType backupScheduleType)
Set the backupScheduleType property: Backup schedule type.
Parameters:
Returns:
withBackupSystemDbs
public AutoBackupSettings withBackupSystemDbs(Boolean backupSystemDbs)
Set the backupSystemDbs property: Include or exclude system databases from auto backup.
Parameters:
Returns:
withDaysOfWeek
public AutoBackupSettings withDaysOfWeek(List
Set the daysOfWeek property: Days of the week for the backups when FullBackupFrequency is set to Weekly.
Parameters:
Returns:
withEnable
public AutoBackupSettings withEnable(Boolean enable)
Set the enable property: Enable or disable autobackup on SQL virtual machine.
Parameters:
Returns:
withEnableEncryption
public AutoBackupSettings withEnableEncryption(Boolean enableEncryption)
Set the enableEncryption property: Enable or disable encryption for backup on SQL virtual machine.
Parameters:
Returns:
withFullBackupFrequency
public AutoBackupSettings withFullBackupFrequency(FullBackupFrequencyType fullBackupFrequency)
Set the fullBackupFrequency property: Frequency of full backups. In both cases, full backups begin during the next scheduled time window.
Parameters:
Returns:
withFullBackupStartTime
public AutoBackupSettings withFullBackupStartTime(Integer fullBackupStartTime)
Set the fullBackupStartTime property: Start time of a given day during which full backups can take place. 0-23 hours.
Parameters:
Returns:
withFullBackupWindowHours
public AutoBackupSettings withFullBackupWindowHours(Integer fullBackupWindowHours)
Set the fullBackupWindowHours property: Duration of the time window of a given day during which full backups can take place. 1-23 hours.
Parameters:
Returns:
withLogBackupFrequency
public AutoBackupSettings withLogBackupFrequency(Integer logBackupFrequency)
Set the logBackupFrequency property: Frequency of log backups. 5-60 minutes.
Parameters:
Returns:
withPassword
public AutoBackupSettings withPassword(String password)
Set the password property: Password for encryption on backup.
Parameters:
Returns:
withRetentionPeriod
public AutoBackupSettings withRetentionPeriod(Integer retentionPeriod)
Set the retentionPeriod property: Retention period of backup: 1-90 days.
Parameters:
Returns:
withStorageAccessKey
public AutoBackupSettings withStorageAccessKey(String storageAccessKey)
Set the storageAccessKey property: Storage account key where backup will be taken to.
Parameters:
Returns:
withStorageAccountUrl
public AutoBackupSettings withStorageAccountUrl(String storageAccountUrl)
Set the storageAccountUrl property: Storage account url where backup will be taken to.
Parameters:
Returns:
withStorageContainerName
public AutoBackupSettings withStorageContainerName(String storageContainerName)
Set the storageContainerName property: Storage container name where backup will be taken to.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for