Interface ResourceTargetConfigurationForMssqlDatabase.Builder

  • Method Details

    • fullBackupAfterDays

      ResourceTargetConfigurationForMssqlDatabase.Builder fullBackupAfterDays(Integer fullBackupAfterDays)

      A required threshold, in days, that decides whether a backup job takes a full or an incremental backup. When an on-demand or scheduled backup job runs, the job takes a full backup if the target's most recent full backup is older than this many days; otherwise it takes an incremental backup, falling back to a full backup if an incremental is not possible.

      Parameters:
      fullBackupAfterDays - A required threshold, in days, that decides whether a backup job takes a full or an incremental backup. When an on-demand or scheduled backup job runs, the job takes a full backup if the target's most recent full backup is older than this many days; otherwise it takes an incremental backup, falling back to a full backup if an incremental is not possible.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fullBackupAfterScheduleExpression

      ResourceTargetConfigurationForMssqlDatabase.Builder fullBackupAfterScheduleExpression(String fullBackupAfterScheduleExpression)

      An optional schedule expression that decides whether a backup job takes a full or an incremental backup. When a backup job runs, the job takes a full backup if none has been taken since the most recent point this expression matched. It is evaluated alongside FullBackupAfterDays; if either matches, a full backup is taken. This is not a backup schedule and does not start backup jobs. Only cron expressions are supported. Example: cron(0 3 ? * SUN *) for every Sunday at 03:00 UTC.

      Parameters:
      fullBackupAfterScheduleExpression - An optional schedule expression that decides whether a backup job takes a full or an incremental backup. When a backup job runs, the job takes a full backup if none has been taken since the most recent point this expression matched. It is evaluated alongside FullBackupAfterDays; if either matches, a full backup is taken. This is not a backup schedule and does not start backup jobs. Only cron expressions are supported. Example: cron(0 3 ? * SUN *) for every Sunday at 03:00 UTC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • backupStreamCount

      ResourceTargetConfigurationForMssqlDatabase.Builder backupStreamCount(Integer backupStreamCount)

      Number of parallel streams to use for the backup.

      Parameters:
      backupStreamCount - Number of parallel streams to use for the backup.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isCopyOnlyFull

      Whether to take a copy-only backup, which does not disturb the normal backup sequence (it does not reset the differential base or truncate the transaction log). Used during migration from another backup solution.

      Parameters:
      isCopyOnlyFull - Whether to take a copy-only backup, which does not disturb the normal backup sequence (it does not reset the differential base or truncate the transaction log). Used during migration from another backup solution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logBackupFrequencyInMinutes

      ResourceTargetConfigurationForMssqlDatabase.Builder logBackupFrequencyInMinutes(Integer logBackupFrequencyInMinutes)

      If log backup is enabled, the frequency for log backup in minutes

      Parameters:
      logBackupFrequencyInMinutes - If log backup is enabled, the frequency for log backup in minutes
      Returns:
      Returns a reference to this object so that method calls can be chained together.