Class BackupVaultProps.Builder
java.lang.Object
software.amazon.awscdk.services.backup.BackupVaultProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BackupVaultProps>
- Enclosing interface:
- BackupVaultProps
@Stability(Stable)
public static final class BackupVaultProps.Builder
extends Object
implements software.amazon.jsii.Builder<BackupVaultProps>
A builder for
BackupVaultProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessPolicy(PolicyDocument accessPolicy) Sets the value ofBackupVaultProps.getAccessPolicy()backupVaultName(String backupVaultName) Sets the value ofBackupVaultProps.getBackupVaultName()blockRecoveryPointDeletion(Boolean blockRecoveryPointDeletion) Sets the value ofBackupVaultProps.getBlockRecoveryPointDeletion()build()Builds the configured instance.encryptionKey(IKey encryptionKey) Sets the value ofBackupVaultProps.getEncryptionKey()notificationEvents(List<? extends BackupVaultEvents> notificationEvents) Sets the value ofBackupVaultProps.getNotificationEvents()notificationTopic(ITopic notificationTopic) Sets the value ofBackupVaultProps.getNotificationTopic()removalPolicy(RemovalPolicy removalPolicy) Sets the value ofBackupVaultProps.getRemovalPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessPolicy
Sets the value ofBackupVaultProps.getAccessPolicy()- Parameters:
accessPolicy- A resource-based policy that is used to manage access permissions on the backup vault.- Returns:
this
-
backupVaultName
Sets the value ofBackupVaultProps.getBackupVaultName()- Parameters:
backupVaultName- The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the AWS Region where they are created.- Returns:
this
-
blockRecoveryPointDeletion
@Stability(Stable) public BackupVaultProps.Builder blockRecoveryPointDeletion(Boolean blockRecoveryPointDeletion) Sets the value ofBackupVaultProps.getBlockRecoveryPointDeletion()- Parameters:
blockRecoveryPointDeletion- Whether to add statements to the vault access policy that prevents anyone from deleting a recovery point.- Returns:
this
-
encryptionKey
Sets the value ofBackupVaultProps.getEncryptionKey()- Parameters:
encryptionKey- The server-side encryption key to use to protect your backups.- Returns:
this
-
notificationEvents
@Stability(Stable) public BackupVaultProps.Builder notificationEvents(List<? extends BackupVaultEvents> notificationEvents) Sets the value ofBackupVaultProps.getNotificationEvents()- Parameters:
notificationEvents- The vault events to send.- Returns:
this
-
notificationTopic
Sets the value ofBackupVaultProps.getNotificationTopic()- Parameters:
notificationTopic- A SNS topic to send vault events to.- Returns:
this
-
removalPolicy
Sets the value ofBackupVaultProps.getRemovalPolicy()- Parameters:
removalPolicy- The removal policy to apply to the vault. Note that removing a vault that contains recovery points will fail.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BackupVaultProps>- Returns:
- a new instance of
BackupVaultProps - Throws:
NullPointerException- if any required attribute was not provided
-