Class BucketNotificationDestinationConfig.Builder
java.lang.Object
software.amazon.awscdk.services.s3.BucketNotificationDestinationConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BucketNotificationDestinationConfig>
- Enclosing interface:
BucketNotificationDestinationConfig
@Stability(Stable)
public static final class BucketNotificationDestinationConfig.Builder
extends Object
implements software.amazon.jsii.Builder<BucketNotificationDestinationConfig>
A builder for
BucketNotificationDestinationConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofBucketNotificationDestinationConfig.getArn()
build()
Builds the configured instance.dependencies
(List<? extends software.constructs.IDependable> dependencies) Sets the value ofBucketNotificationDestinationConfig.getDependencies()
Sets the value ofBucketNotificationDestinationConfig.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofBucketNotificationDestinationConfig.getArn()
- Parameters:
arn
- The ARN of the destination (i.e. Lambda, SNS, SQS). This parameter is required.- Returns:
this
-
type
@Stability(Stable) public BucketNotificationDestinationConfig.Builder type(BucketNotificationDestinationType type) Sets the value ofBucketNotificationDestinationConfig.getType()
- Parameters:
type
- The notification type. This parameter is required.- Returns:
this
-
dependencies
@Stability(Stable) public BucketNotificationDestinationConfig.Builder dependencies(List<? extends software.constructs.IDependable> dependencies) Sets the value ofBucketNotificationDestinationConfig.getDependencies()
- Parameters:
dependencies
- Any additional dependencies that should be resolved before the bucket notification can be configured (for example, the SNS Topic Policy resource).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BucketNotificationDestinationConfig>
- Returns:
- a new instance of
BucketNotificationDestinationConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-