Class CfnBucketPropsMixin.QueueConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin.QueueConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.QueueConfigurationProperty>
- Enclosing interface:
CfnBucketPropsMixin.QueueConfigurationProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.QueueConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.QueueConfigurationProperty>
A builder for
CfnBucketPropsMixin.QueueConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBucketPropsMixin.QueueConfigurationProperty.getEvent()Sets the value ofCfnBucketPropsMixin.QueueConfigurationProperty.getFilter()filter(IResolvable filter) Sets the value ofCfnBucketPropsMixin.QueueConfigurationProperty.getFilter()Sets the value ofCfnBucketPropsMixin.QueueConfigurationProperty.getQueue()Sets the value ofCfnBucketPropsMixin.QueueConfigurationProperty.getQueue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
event
@Stability(Stable) public CfnBucketPropsMixin.QueueConfigurationProperty.Builder event(String event) Sets the value ofCfnBucketPropsMixin.QueueConfigurationProperty.getEvent()- Parameters:
event- The Amazon S3 bucket event about which you want to publish messages to Amazon SQS. For more information, see Supported Event Types in the Amazon S3 User Guide .- Returns:
this
-
filter
@Stability(Stable) public CfnBucketPropsMixin.QueueConfigurationProperty.Builder filter(IResolvable filter) Sets the value ofCfnBucketPropsMixin.QueueConfigurationProperty.getFilter()- Parameters:
filter- The filtering rules that determine which objects trigger 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. For more information, see Configuring event notifications using object key name filtering in the Amazon S3 User Guide .- Returns:
this
-
filter
@Stability(Stable) public CfnBucketPropsMixin.QueueConfigurationProperty.Builder filter(CfnBucketPropsMixin.NotificationFilterProperty filter) Sets the value ofCfnBucketPropsMixin.QueueConfigurationProperty.getFilter()- Parameters:
filter- The filtering rules that determine which objects trigger 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. For more information, see Configuring event notifications using object key name filtering in the Amazon S3 User Guide .- Returns:
this
-
queue
@Stability(Stable) public CfnBucketPropsMixin.QueueConfigurationProperty.Builder queue(String queue) Sets the value ofCfnBucketPropsMixin.QueueConfigurationProperty.getQueue()- Parameters:
queue- The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. FIFO queues are not allowed when enabling an SQS queue as the event notification destination.- Returns:
this
-
queue
@Stability(Stable) public CfnBucketPropsMixin.QueueConfigurationProperty.Builder queue(IQueueRef queue) Sets the value ofCfnBucketPropsMixin.QueueConfigurationProperty.getQueue()- Parameters:
queue- The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. FIFO queues are not allowed when enabling an SQS queue as the event notification destination.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin.QueueConfigurationProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.QueueConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-