Class CfnBackupVaultProps.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnBackupVaultProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBackupVaultProps>
- Enclosing interface:
CfnBackupVaultProps
@Stability(Stable)
public static final class CfnBackupVaultProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBackupVaultProps>
A builder for
CfnBackupVaultProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessPolicy
(Object accessPolicy) Sets the value ofCfnBackupVaultProps.getAccessPolicy()
backupVaultName
(String backupVaultName) Sets the value ofCfnBackupVaultProps.getBackupVaultName()
backupVaultTags
(Map<String, String> backupVaultTags) Sets the value ofCfnBackupVaultProps.getBackupVaultTags()
build()
Builds the configured instance.encryptionKeyArn
(String encryptionKeyArn) Sets the value ofCfnBackupVaultProps.getEncryptionKeyArn()
lockConfiguration
(IResolvable lockConfiguration) Sets the value ofCfnBackupVaultProps.getLockConfiguration()
lockConfiguration
(CfnBackupVault.LockConfigurationTypeProperty lockConfiguration) Sets the value ofCfnBackupVaultProps.getLockConfiguration()
notifications
(IResolvable notifications) Sets the value ofCfnBackupVaultProps.getNotifications()
notifications
(CfnBackupVault.NotificationObjectTypeProperty notifications) Sets the value ofCfnBackupVaultProps.getNotifications()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backupVaultName
Sets the value ofCfnBackupVaultProps.getBackupVaultName()
- Parameters:
backupVaultName
- The name of a logical container where backups are stored. This parameter is required. 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
-
accessPolicy
Sets the value ofCfnBackupVaultProps.getAccessPolicy()
- Parameters:
accessPolicy
- A resource-based policy that is used to manage access permissions on the target backup vault.- Returns:
this
-
backupVaultTags
@Stability(Stable) public CfnBackupVaultProps.Builder backupVaultTags(Map<String, String> backupVaultTags) Sets the value ofCfnBackupVaultProps.getBackupVaultTags()
- Parameters:
backupVaultTags
- The tags to assign to the backup vault.- Returns:
this
-
encryptionKeyArn
Sets the value ofCfnBackupVaultProps.getEncryptionKeyArn()
- Parameters:
encryptionKeyArn
- A server-side encryption key you can specify to encrypt your backups from services that support full AWS Backup management;. for example,arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
. If you specify a key, you must specify its ARN, not its alias. If you do not specify a key, AWS Backup creates a KMS key for you by default.To learn which AWS Backup services support full AWS Backup management and how AWS Backup handles encryption for backups from services that do not yet support full AWS Backup , see Encryption for backups in AWS Backup
- Returns:
this
-
lockConfiguration
@Stability(Stable) public CfnBackupVaultProps.Builder lockConfiguration(IResolvable lockConfiguration) Sets the value ofCfnBackupVaultProps.getLockConfiguration()
- Parameters:
lockConfiguration
- Configuration for AWS Backup Vault Lock .- Returns:
this
-
lockConfiguration
@Stability(Stable) public CfnBackupVaultProps.Builder lockConfiguration(CfnBackupVault.LockConfigurationTypeProperty lockConfiguration) Sets the value ofCfnBackupVaultProps.getLockConfiguration()
- Parameters:
lockConfiguration
- Configuration for AWS Backup Vault Lock .- Returns:
this
-
notifications
Sets the value ofCfnBackupVaultProps.getNotifications()
- Parameters:
notifications
- The SNS event notifications for the specified backup vault.- Returns:
this
-
notifications
@Stability(Stable) public CfnBackupVaultProps.Builder notifications(CfnBackupVault.NotificationObjectTypeProperty notifications) Sets the value ofCfnBackupVaultProps.getNotifications()
- Parameters:
notifications
- The SNS event notifications for the specified backup vault.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBackupVaultProps>
- Returns:
- a new instance of
CfnBackupVaultProps
- Throws:
NullPointerException
- if any required attribute was not provided
-