Class DistributedDbBackupConfig.Builder
- java.lang.Object
-
- com.oracle.bmc.distributeddatabase.model.DistributedDbBackupConfig.Builder
-
- Enclosing class:
- DistributedDbBackupConfig
public static class DistributedDbBackupConfig.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributedDbBackupConfig.Builder
autoBackupWindow(DistributedDbBackupConfig.AutoBackupWindow autoBackupWindow)
Time window selected for initiating automatic backup for the database system.DistributedDbBackupConfig.Builder
autoFullBackupDay(DistributedDbBackupConfig.AutoFullBackupDay autoFullBackupDay)
Day of the week the full backup should be applied on the database system.DistributedDbBackupConfig.Builder
autoFullBackupWindow(DistributedDbBackupConfig.AutoFullBackupWindow autoFullBackupWindow)
Time window selected for initiating full backup for the database system.DistributedDbBackupConfig.Builder
backupDeletionPolicy(DistributedDbBackupConfig.BackupDeletionPolicy backupDeletionPolicy)
This defines when the backups will be deleted.DistributedDbBackupConfig.Builder
backupDestinationDetails(List<DistributedDbBackupDestination> backupDestinationDetails)
Backup destination details.DistributedDbBackupConfig
build()
DistributedDbBackupConfig.Builder
canRunImmediateFullBackup(Boolean canRunImmediateFullBackup)
If set to true, configures automatic full backups in the local region (the region of the DB system) for the first backup run immediately.DistributedDbBackupConfig.Builder
copy(DistributedDbBackupConfig model)
DistributedDbBackupConfig.Builder
isAutoBackupEnabled(Boolean isAutoBackupEnabled)
If set to true, configures automatic backups.DistributedDbBackupConfig.Builder
isRemoteBackupEnabled(Boolean isRemoteBackupEnabled)
If set to true, configures automatic incremental backups in the local region (the region of the DB system) and the remote region with a default frequency of 1 hour.DistributedDbBackupConfig.Builder
recoveryWindowInDays(Integer recoveryWindowInDays)
Number of days between the current and the earliest point of recoverability covered by automatic backups.DistributedDbBackupConfig.Builder
remoteRegion(String remoteRegion)
The name of the remote region where the remote automatic incremental backups will be stored.
-
-
-
Method Detail
-
isAutoBackupEnabled
public DistributedDbBackupConfig.Builder isAutoBackupEnabled(Boolean isAutoBackupEnabled)
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:
isAutoBackupEnabled
- the value to set- Returns:
- this builder
-
recoveryWindowInDays
public DistributedDbBackupConfig.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 DistributedDbBackupConfig.Builder autoBackupWindow(DistributedDbBackupConfig.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 DistributedDbBackupConfig.Builder autoFullBackupWindow(DistributedDbBackupConfig.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 DistributedDbBackupConfig.Builder autoFullBackupDay(DistributedDbBackupConfig.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
-
canRunImmediateFullBackup
public DistributedDbBackupConfig.Builder canRunImmediateFullBackup(Boolean canRunImmediateFullBackup)
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:
canRunImmediateFullBackup
- the value to set- Returns:
- this builder
-
isRemoteBackupEnabled
public DistributedDbBackupConfig.Builder isRemoteBackupEnabled(Boolean isRemoteBackupEnabled)
If set to true, configures automatic incremental backups in the local region (the region of the DB system) and the remote region with a default frequency of 1 hour.If you previously used RMAN or dbcli to configure backups, using the Console or the API for manged backups creates a new backup configuration for your database. The new configuration replaces the configuration created with RMAN or dbcli. This means that you can no longer rely on your previously configured unmanaged backups to work.
- Parameters:
isRemoteBackupEnabled
- the value to set- Returns:
- this builder
-
remoteRegion
public DistributedDbBackupConfig.Builder remoteRegion(String remoteRegion)
The name of the remote region where the remote automatic incremental backups will be stored.For information about valid region names, see Regions and Availability Domains.
- Parameters:
remoteRegion
- the value to set- Returns:
- this builder
-
backupDestinationDetails
public DistributedDbBackupConfig.Builder backupDestinationDetails(List<DistributedDbBackupDestination> backupDestinationDetails)
Backup destination details.- Parameters:
backupDestinationDetails
- the value to set- Returns:
- this builder
-
backupDeletionPolicy
public DistributedDbBackupConfig.Builder backupDeletionPolicy(DistributedDbBackupConfig.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 DistributedDbBackupConfig build()
-
copy
public DistributedDbBackupConfig.Builder copy(DistributedDbBackupConfig model)
-
-