public static final class BackupVaultProps.Builder
extends java.lang.Object
BackupVaultProps
Constructor and Description |
---|
Builder() |
public BackupVaultProps.Builder accessPolicy(PolicyDocument accessPolicy)
BackupVaultProps.getAccessPolicy()
accessPolicy
- A resource-based policy that is used to manage access permissions on the backup vault.this
public BackupVaultProps.Builder backupVaultName(java.lang.String backupVaultName)
BackupVaultProps.getBackupVaultName()
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.this
public BackupVaultProps.Builder blockRecoveryPointDeletion(java.lang.Boolean blockRecoveryPointDeletion)
BackupVaultProps.getBlockRecoveryPointDeletion()
blockRecoveryPointDeletion
- Whether to add statements to the vault access policy that prevents anyone from deleting a recovery point.this
public BackupVaultProps.Builder encryptionKey(IKey encryptionKey)
BackupVaultProps.getEncryptionKey()
encryptionKey
- The server-side encryption key to use to protect your backups.this
public BackupVaultProps.Builder notificationEvents(java.util.List<? extends BackupVaultEvents> notificationEvents)
BackupVaultProps.getNotificationEvents()
notificationEvents
- The vault events to send.this
public BackupVaultProps.Builder notificationTopic(ITopic notificationTopic)
BackupVaultProps.getNotificationTopic()
notificationTopic
- A SNS topic to send vault events to.this
public BackupVaultProps.Builder removalPolicy(RemovalPolicy removalPolicy)
BackupVaultProps.getRemovalPolicy()
removalPolicy
- The removal policy to apply to the vault.
Note that removing a vault
that contains recovery points will fail.this
public BackupVaultProps build()
BackupVaultProps
java.lang.NullPointerException
- if any required attribute was not provided