Class CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty>
- Enclosing interface:
CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty
@Stability(Stable)
public static final class CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.collectionName(String collectionName) databaseName(String databaseName) fullDocument(String fullDocument)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
collectionName
@Stability(Stable) public CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty.Builder collectionName(String collectionName) Sets the value ofCfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty.getCollectionName()- Parameters:
collectionName- The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.- Returns:
this
-
databaseName
@Stability(Stable) public CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty.Builder databaseName(String databaseName) Sets the value ofCfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty.getDatabaseName()- Parameters:
databaseName- The name of the database to consume within the DocumentDB cluster.- Returns:
this
-
fullDocument
@Stability(Stable) public CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty.Builder fullDocument(String fullDocument) Sets the value ofCfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty.getFullDocument()- Parameters:
fullDocument- Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes.- Returns:
this
-
build
@Stability(Stable) public CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty>- Returns:
- a new instance of
CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-