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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.preferredWindow
(String preferredWindow) Sets the value ofBackupProps.getPreferredWindow()
Sets the value ofBackupProps.getRetention()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
retention
Sets the value ofBackupProps.getRetention()
- Parameters:
retention
- How many days to retain the backup. This parameter is required.- Returns:
this
-
preferredWindow
Sets the value ofBackupProps.getPreferredWindow()
- 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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BackupProps>
- Returns:
- a new instance of
BackupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-