Class DistributedDbBackupConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • 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
      • 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
      • 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