Class CfnLogicallyAirGappedBackupVaultProps.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnLogicallyAirGappedBackupVaultProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLogicallyAirGappedBackupVaultProps>
- Enclosing interface:
CfnLogicallyAirGappedBackupVaultProps
@Stability(Stable)
public static final class CfnLogicallyAirGappedBackupVaultProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLogicallyAirGappedBackupVaultProps>
A builder for
CfnLogicallyAirGappedBackupVaultProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessPolicy
(Object accessPolicy) Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getAccessPolicy()
backupVaultName
(String backupVaultName) Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getBackupVaultName()
backupVaultTags
(Map<String, String> backupVaultTags) Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getBackupVaultTags()
build()
Builds the configured instance.maxRetentionDays
(Number maxRetentionDays) Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getMaxRetentionDays()
minRetentionDays
(Number minRetentionDays) Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getMinRetentionDays()
notifications
(IResolvable notifications) Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getNotifications()
Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getNotifications()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backupVaultName
@Stability(Stable) public CfnLogicallyAirGappedBackupVaultProps.Builder backupVaultName(String backupVaultName) Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getBackupVaultName()
- Parameters:
backupVaultName
- The name of a logical container where backups are stored. This parameter is required. Logically air-gapped backup vaults are identified by names that are unique to the account used to create them and the Region where they are created.- Returns:
this
-
maxRetentionDays
@Stability(Stable) public CfnLogicallyAirGappedBackupVaultProps.Builder maxRetentionDays(Number maxRetentionDays) Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getMaxRetentionDays()
- Parameters:
maxRetentionDays
- The maximum retention period that the vault retains its recovery points. This parameter is required.- Returns:
this
-
minRetentionDays
@Stability(Stable) public CfnLogicallyAirGappedBackupVaultProps.Builder minRetentionDays(Number minRetentionDays) Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getMinRetentionDays()
- Parameters:
minRetentionDays
- This setting specifies the minimum retention period that the vault retains its recovery points. This parameter is required. The minimum value accepted is 7 days.- Returns:
this
-
accessPolicy
@Stability(Stable) public CfnLogicallyAirGappedBackupVaultProps.Builder accessPolicy(Object accessPolicy) Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getAccessPolicy()
- Parameters:
accessPolicy
- The backup vault access policy document in JSON format.- Returns:
this
-
backupVaultTags
@Stability(Stable) public CfnLogicallyAirGappedBackupVaultProps.Builder backupVaultTags(Map<String, String> backupVaultTags) Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getBackupVaultTags()
- Parameters:
backupVaultTags
- The tags to assign to the vault.- Returns:
this
-
notifications
@Stability(Stable) public CfnLogicallyAirGappedBackupVaultProps.Builder notifications(IResolvable notifications) Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getNotifications()
- Parameters:
notifications
- Returns event notifications for the specified backup vault.- Returns:
this
-
notifications
@Stability(Stable) public CfnLogicallyAirGappedBackupVaultProps.Builder notifications(CfnLogicallyAirGappedBackupVault.NotificationObjectTypeProperty notifications) Sets the value ofCfnLogicallyAirGappedBackupVaultProps.getNotifications()
- Parameters:
notifications
- Returns event notifications for the specified backup vault.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLogicallyAirGappedBackupVaultProps>
- Returns:
- a new instance of
CfnLogicallyAirGappedBackupVaultProps
- Throws:
NullPointerException
- if any required attribute was not provided
-