Class CfnBucketPropsMixin.TopicConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin.TopicConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.TopicConfigurationProperty>
- Enclosing interface:
CfnBucketPropsMixin.TopicConfigurationProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.TopicConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.TopicConfigurationProperty>
A builder for
CfnBucketPropsMixin.TopicConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBucketPropsMixin.TopicConfigurationProperty.getEvent()Sets the value ofCfnBucketPropsMixin.TopicConfigurationProperty.getFilter()filter(IResolvable filter) Sets the value ofCfnBucketPropsMixin.TopicConfigurationProperty.getFilter()Sets the value ofCfnBucketPropsMixin.TopicConfigurationProperty.getTopic()Sets the value ofCfnBucketPropsMixin.TopicConfigurationProperty.getTopic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
event
@Stability(Stable) public CfnBucketPropsMixin.TopicConfigurationProperty.Builder event(String event) Sets the value ofCfnBucketPropsMixin.TopicConfigurationProperty.getEvent()- Parameters:
event- The Amazon S3 bucket event about which to send notifications. For more information, see Supported Event Types in the Amazon S3 User Guide .- Returns:
this
-
filter
@Stability(Stable) public CfnBucketPropsMixin.TopicConfigurationProperty.Builder filter(IResolvable filter) Sets the value ofCfnBucketPropsMixin.TopicConfigurationProperty.getFilter()- Parameters:
filter- The filtering rules that determine for which objects to send notifications. For example, you can create a filter so that Amazon S3 sends notifications only when image files with a.jpgextension are added to the bucket.- Returns:
this
-
filter
@Stability(Stable) public CfnBucketPropsMixin.TopicConfigurationProperty.Builder filter(CfnBucketPropsMixin.NotificationFilterProperty filter) Sets the value ofCfnBucketPropsMixin.TopicConfigurationProperty.getFilter()- Parameters:
filter- The filtering rules that determine for which objects to send notifications. For example, you can create a filter so that Amazon S3 sends notifications only when image files with a.jpgextension are added to the bucket.- Returns:
this
-
topic
@Stability(Stable) public CfnBucketPropsMixin.TopicConfigurationProperty.Builder topic(String topic) Sets the value ofCfnBucketPropsMixin.TopicConfigurationProperty.getTopic()- Parameters:
topic- The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type.- Returns:
this
-
topic
@Stability(Stable) public CfnBucketPropsMixin.TopicConfigurationProperty.Builder topic(ITopicRef topic) Sets the value ofCfnBucketPropsMixin.TopicConfigurationProperty.getTopic()- Parameters:
topic- The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin.TopicConfigurationProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.TopicConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-