Class CfnBackupVault.NotificationObjectTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnBackupVault.NotificationObjectTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBackupVault.NotificationObjectTypeProperty>
- Enclosing interface:
CfnBackupVault.NotificationObjectTypeProperty
@Stability(Stable)
public static final class CfnBackupVault.NotificationObjectTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBackupVault.NotificationObjectTypeProperty>
A builder for
CfnBackupVault.NotificationObjectTypeProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackupVaultEvents
(List<String> backupVaultEvents) Sets the value ofCfnBackupVault.NotificationObjectTypeProperty.getBackupVaultEvents()
build()
Builds the configured instance.snsTopicArn
(String snsTopicArn) Sets the value ofCfnBackupVault.NotificationObjectTypeProperty.getSnsTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backupVaultEvents
@Stability(Stable) public CfnBackupVault.NotificationObjectTypeProperty.Builder backupVaultEvents(List<String> backupVaultEvents) Sets the value ofCfnBackupVault.NotificationObjectTypeProperty.getBackupVaultEvents()
- Parameters:
backupVaultEvents
- An array of events that indicate the status of jobs to back up resources to the backup vault. This parameter is required. For valid events, see BackupVaultEvents in the AWS Backup API Guide .- Returns:
this
-
snsTopicArn
@Stability(Stable) public CfnBackupVault.NotificationObjectTypeProperty.Builder snsTopicArn(String snsTopicArn) Sets the value ofCfnBackupVault.NotificationObjectTypeProperty.getSnsTopicArn()
- Parameters:
snsTopicArn
- An ARN that uniquely identifies an Amazon Simple Notification Service (Amazon SNS) topic;. This parameter is required. for example,arn:aws:sns:us-west-2:111122223333:MyTopic
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBackupVault.NotificationObjectTypeProperty>
- Returns:
- a new instance of
CfnBackupVault.NotificationObjectTypeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-