Class DbBackupConfig.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.DbBackupConfig.Builder
-
- Enclosing class:
- DbBackupConfig
public static class DbBackupConfig.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
autoBackupEnabled
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.
- Parameters:
autoBackupEnabled
- the value to set- Returns:
- this builder
-
recoveryWindowInDays
public 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.
- Parameters:
recoveryWindowInDays
- the value to set- Returns:
- this builder
-
autoBackupWindow
public 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
- Parameters:
autoBackupWindow
- the value to set- Returns:
- this builder
-
autoFullBackupWindow
public 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
- Parameters:
autoFullBackupWindow
- the value to set- Returns:
- this builder
-
autoFullBackupDay
public 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.
- Parameters:
autoFullBackupDay
- the value to set- Returns:
- this builder
-
runImmediateFullBackup
public 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.- Parameters:
runImmediateFullBackup
- the value to set- Returns:
- this builder
-
backupDestinationDetails
public DbBackupConfig.Builder backupDestinationDetails(List<BackupDestinationDetails> backupDestinationDetails)
Backup destination details.- Parameters:
backupDestinationDetails
- the value to set- Returns:
- this builder
-
backupDeletionPolicy
public 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.
- Parameters:
backupDeletionPolicy
- the value to set- Returns:
- this builder
-
build
public DbBackupConfig build()
-
copy
public DbBackupConfig.Builder copy(DbBackupConfig model)
-
-