Class BackupPlanProps.Builder
java.lang.Object
software.amazon.awscdk.services.backup.BackupPlanProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BackupPlanProps>
- Enclosing interface:
- BackupPlanProps
@Stability(Stable)
public static final class BackupPlanProps.Builder
extends Object
implements software.amazon.jsii.Builder<BackupPlanProps>
A builder for
BackupPlanProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackupPlanName(String backupPlanName) Sets the value ofBackupPlanProps.getBackupPlanName()backupPlanRules(List<? extends BackupPlanRule> backupPlanRules) Sets the value ofBackupPlanProps.getBackupPlanRules()backupVault(IBackupVault backupVault) Sets the value ofBackupPlanProps.getBackupVault()build()Builds the configured instance.windowsVss(Boolean windowsVss) Sets the value ofBackupPlanProps.getWindowsVss()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backupPlanName
Sets the value ofBackupPlanProps.getBackupPlanName()- Parameters:
backupPlanName- The display name of the backup plan.- Returns:
this
-
backupPlanRules
@Stability(Stable) public BackupPlanProps.Builder backupPlanRules(List<? extends BackupPlanRule> backupPlanRules) Sets the value ofBackupPlanProps.getBackupPlanRules()- Parameters:
backupPlanRules- Rules for the backup plan. UseaddRule()to add rules after instantiation.- Returns:
this
-
backupVault
Sets the value ofBackupPlanProps.getBackupVault()- Parameters:
backupVault- The backup vault where backups are stored.- Returns:
this
-
windowsVss
Sets the value ofBackupPlanProps.getWindowsVss()- Parameters:
windowsVss- Enable Windows VSS backup.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BackupPlanProps>- Returns:
- a new instance of
BackupPlanProps - Throws:
NullPointerException- if any required attribute was not provided
-