Class BackupProps.Builder

java.lang.Object
software.amazon.awscdk.services.rds.BackupProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<BackupProps>
Enclosing interface:
BackupProps

@Stability(Stable) public static final class BackupProps.Builder extends Object implements software.amazon.jsii.Builder<BackupProps>
A builder for BackupProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • retention

      @Stability(Stable) public BackupProps.Builder retention(Duration retention)
      Sets the value of BackupProps.getRetention()
      Parameters:
      retention - How many days to retain the backup. This parameter is required.
      Returns:
      this
    • preferredWindow

      @Stability(Stable) public BackupProps.Builder preferredWindow(String preferredWindow)
      Parameters:
      preferredWindow - A daily time range in 24-hours UTC format in which backups preferably execute. Must be at least 30 minutes long.

      Example: '01:00-02:00'

      Returns:
      this
    • build

      @Stability(Stable) public BackupProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<BackupProps>
      Returns:
      a new instance of BackupProps
      Throws:
      NullPointerException - if any required attribute was not provided