Class CfnFunction.S3EventProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnFunction.S3EventProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunction.S3EventProperty>
- Enclosing interface:
CfnFunction.S3EventProperty
@Stability(Stable)
public static final class CfnFunction.S3EventProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunction.S3EventProperty>
A builder for
CfnFunction.S3EventProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFunction.S3EventProperty.getBucket()
build()
Builds the configured instance.Sets the value ofCfnFunction.S3EventProperty.getEvents()
filter
(IResolvable filter) Sets the value ofCfnFunction.S3EventProperty.getFilter()
Sets the value ofCfnFunction.S3EventProperty.getFilter()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnFunction.S3EventProperty.getBucket()
- Parameters:
bucket
- the value to be set. This parameter is required.- Returns:
this
-
events
Sets the value ofCfnFunction.S3EventProperty.getEvents()
- Parameters:
events
- the value to be set. This parameter is required.- Returns:
this
-
filter
Sets the value ofCfnFunction.S3EventProperty.getFilter()
- Parameters:
filter
- the value to be set.- Returns:
this
-
filter
@Stability(Stable) public CfnFunction.S3EventProperty.Builder filter(CfnFunction.S3NotificationFilterProperty filter) Sets the value ofCfnFunction.S3EventProperty.getFilter()
- Parameters:
filter
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunction.S3EventProperty>
- Returns:
- a new instance of
CfnFunction.S3EventProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-