public static class DbBackupConfig.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DbBackupConfig.Builder |
autoBackupEnabled(Boolean autoBackupEnabled)
If set to true, configures automatic backups.
|
DbBackupConfig.Builder |
autoBackupWindow(DbBackupConfig.AutoBackupWindow autoBackupWindow)
Time window selected for initiating automatic backup for the database system.
|
DbBackupConfig.Builder |
autoFullBackupDay(DbBackupConfig.AutoFullBackupDay autoFullBackupDay)
Day of the week the full backup should be applied on the database system.
|
DbBackupConfig.Builder |
autoFullBackupWindow(DbBackupConfig.AutoFullBackupWindow autoFullBackupWindow)
Time window selected for initiating full backup for the database system.
|
DbBackupConfig.Builder |
backupDeletionPolicy(DbBackupConfig.BackupDeletionPolicy backupDeletionPolicy)
This defines when the backups will be deleted.
|
DbBackupConfig.Builder |
backupDestinationDetails(List<BackupDestinationDetails> backupDestinationDetails)
Backup destination details.
|
DbBackupConfig |
build() |
DbBackupConfig.Builder |
copy(DbBackupConfig model) |
DbBackupConfig.Builder |
recoveryWindowInDays(Integer recoveryWindowInDays)
Number of days between the current and the earliest point of recoverability covered by
automatic backups.
|
DbBackupConfig.Builder |
runImmediateFullBackup(Boolean runImmediateFullBackup)
If set to true, configures automatic full backups in the local region (the region of the
DB system) for the first backup run immediately.
|
public DbBackupConfig.Builder autoBackupEnabled(Boolean autoBackupEnabled)
If set to true, configures automatic backups. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
autoBackupEnabled
- the value to setpublic DbBackupConfig.Builder recoveryWindowInDays(Integer recoveryWindowInDays)
Number of days between the current and the earliest point of recoverability covered by automatic backups. This value applies to automatic backups only. After a new automatic backup has been created, Oracle removes old automatic backups that are created before the window. When the value is updated, it is applied to all existing automatic backups.
recoveryWindowInDays
- the value to setpublic DbBackupConfig.Builder autoBackupWindow(DbBackupConfig.AutoBackupWindow autoBackupWindow)
Time window selected for initiating automatic backup for the database system. There are twelve available two-hour time windows. If no option is selected, a start time between 12:00 AM to 7:00 AM in the region of the database is automatically chosen. For example, if the user selects SLOT_TWO from the enum list, the automatic backup job will start in between 2:00 AM (inclusive) to 4:00 AM (exclusive).
Example: SLOT_TWO
autoBackupWindow
- the value to setpublic DbBackupConfig.Builder autoFullBackupWindow(DbBackupConfig.AutoFullBackupWindow autoFullBackupWindow)
Time window selected for initiating full backup for the database system. There are twelve available two-hour time windows. If no option is selected, the value is null and a start time between 12:00 AM to 7:00 AM in the region of the database is automatically chosen. For example, if the user selects SLOT_TWO from the enum list, the automatic backup job will start in between 2:00 AM (inclusive) to 4:00 AM (exclusive).
Example: SLOT_TWO
autoFullBackupWindow
- the value to setpublic DbBackupConfig.Builder autoFullBackupDay(DbBackupConfig.AutoFullBackupDay autoFullBackupDay)
Day of the week the full backup should be applied on the database system. If no option is selected, the value is null and we will default to Sunday.
autoFullBackupDay
- the value to setpublic DbBackupConfig.Builder runImmediateFullBackup(Boolean runImmediateFullBackup)
If set to true, configures automatic full backups in the local region (the region of the DB system) for the first backup run immediately.
runImmediateFullBackup
- the value to setpublic DbBackupConfig.Builder backupDestinationDetails(List<BackupDestinationDetails> backupDestinationDetails)
Backup destination details.
backupDestinationDetails
- the value to setpublic DbBackupConfig.Builder backupDeletionPolicy(DbBackupConfig.BackupDeletionPolicy backupDeletionPolicy)
This defines when the backups will be deleted. - IMMEDIATE option keep the backup for predefined time i.e 72 hours and then delete permanently… - RETAIN will keep the backups as per the policy defined for database backups.
backupDeletionPolicy
- the value to setpublic DbBackupConfig build()
public DbBackupConfig.Builder copy(DbBackupConfig model)
Copyright © 2016–2024. All rights reserved.