public final class AutoBackupSettings extends Object
Constructor and Description |
---|
AutoBackupSettings() |
Modifier and Type | Method and Description |
---|---|
BackupScheduleType |
backupScheduleType()
Get the backupScheduleType property: Backup schedule type.
|
Boolean |
backupSystemDbs()
Get the backupSystemDbs property: Include or exclude system databases from auto backup.
|
Boolean |
enable()
Get the enable property: Enable or disable autobackup on SQL virtual machine.
|
Boolean |
enableEncryption()
Get the enableEncryption property: Enable or disable encryption for backup on SQL virtual machine.
|
FullBackupFrequencyType |
fullBackupFrequency()
Get the fullBackupFrequency property: Frequency of full backups.
|
Integer |
fullBackupStartTime()
Get the fullBackupStartTime property: Start time of a given day during which full backups can take place.
|
Integer |
fullBackupWindowHours()
Get the fullBackupWindowHours property: Duration of the time window of a given day during which full backups can
take place.
|
Integer |
logBackupFrequency()
Get the logBackupFrequency property: Frequency of log backups.
|
String |
password()
Get the password property: Password for encryption on backup.
|
Integer |
retentionPeriod()
Get the retentionPeriod property: Retention period of backup: 1-30 days.
|
String |
storageAccessKey()
Get the storageAccessKey property: Storage account key where backup will be taken to.
|
String |
storageAccountUrl()
Get the storageAccountUrl property: Storage account url where backup will be taken to.
|
void |
validate()
Validates the instance.
|
AutoBackupSettings |
withBackupScheduleType(BackupScheduleType backupScheduleType)
Set the backupScheduleType property: Backup schedule type.
|
AutoBackupSettings |
withBackupSystemDbs(Boolean backupSystemDbs)
Set the backupSystemDbs property: Include or exclude system databases from auto backup.
|
AutoBackupSettings |
withEnable(Boolean enable)
Set the enable property: Enable or disable autobackup on SQL virtual machine.
|
AutoBackupSettings |
withEnableEncryption(Boolean enableEncryption)
Set the enableEncryption property: Enable or disable encryption for backup on SQL virtual machine.
|
AutoBackupSettings |
withFullBackupFrequency(FullBackupFrequencyType fullBackupFrequency)
Set the fullBackupFrequency property: Frequency of full backups.
|
AutoBackupSettings |
withFullBackupStartTime(Integer fullBackupStartTime)
Set the fullBackupStartTime property: Start time of a given day during which full backups can take place.
|
AutoBackupSettings |
withFullBackupWindowHours(Integer fullBackupWindowHours)
Set the fullBackupWindowHours property: Duration of the time window of a given day during which full backups can
take place.
|
AutoBackupSettings |
withLogBackupFrequency(Integer logBackupFrequency)
Set the logBackupFrequency property: Frequency of log backups.
|
AutoBackupSettings |
withPassword(String password)
Set the password property: Password for encryption on backup.
|
AutoBackupSettings |
withRetentionPeriod(Integer retentionPeriod)
Set the retentionPeriod property: Retention period of backup: 1-30 days.
|
AutoBackupSettings |
withStorageAccessKey(String storageAccessKey)
Set the storageAccessKey property: Storage account key where backup will be taken to.
|
AutoBackupSettings |
withStorageAccountUrl(String storageAccountUrl)
Set the storageAccountUrl property: Storage account url where backup will be taken to.
|
public Boolean enable()
public AutoBackupSettings withEnable(Boolean enable)
enable
- the enable value to set.public Boolean enableEncryption()
public AutoBackupSettings withEnableEncryption(Boolean enableEncryption)
enableEncryption
- the enableEncryption value to set.public Integer retentionPeriod()
public AutoBackupSettings withRetentionPeriod(Integer retentionPeriod)
retentionPeriod
- the retentionPeriod value to set.public String storageAccountUrl()
public AutoBackupSettings withStorageAccountUrl(String storageAccountUrl)
storageAccountUrl
- the storageAccountUrl value to set.public String storageAccessKey()
public AutoBackupSettings withStorageAccessKey(String storageAccessKey)
storageAccessKey
- the storageAccessKey value to set.public String password()
public AutoBackupSettings withPassword(String password)
password
- the password value to set.public Boolean backupSystemDbs()
public AutoBackupSettings withBackupSystemDbs(Boolean backupSystemDbs)
backupSystemDbs
- the backupSystemDbs value to set.public BackupScheduleType backupScheduleType()
public AutoBackupSettings withBackupScheduleType(BackupScheduleType backupScheduleType)
backupScheduleType
- the backupScheduleType value to set.public FullBackupFrequencyType fullBackupFrequency()
public AutoBackupSettings withFullBackupFrequency(FullBackupFrequencyType fullBackupFrequency)
fullBackupFrequency
- the fullBackupFrequency value to set.public Integer fullBackupStartTime()
public AutoBackupSettings withFullBackupStartTime(Integer fullBackupStartTime)
fullBackupStartTime
- the fullBackupStartTime value to set.public Integer fullBackupWindowHours()
public AutoBackupSettings withFullBackupWindowHours(Integer fullBackupWindowHours)
fullBackupWindowHours
- the fullBackupWindowHours value to set.public Integer logBackupFrequency()
public AutoBackupSettings withLogBackupFrequency(Integer logBackupFrequency)
logBackupFrequency
- the logBackupFrequency value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.