Class CfnEventSourceMapping.DocumentDBEventSourceConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnEventSourceMapping.DocumentDBEventSourceConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSourceMapping.DocumentDBEventSourceConfigProperty>
- Enclosing interface:
CfnEventSourceMapping.DocumentDBEventSourceConfigProperty
@Stability(Stable)
public static final class CfnEventSourceMapping.DocumentDBEventSourceConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSourceMapping.DocumentDBEventSourceConfigProperty>
-
Constructor Summary
-
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 CfnEventSourceMapping.DocumentDBEventSourceConfigProperty.Builder collectionName(String collectionName) - 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 CfnEventSourceMapping.DocumentDBEventSourceConfigProperty.Builder databaseName(String databaseName) - Parameters:
databaseName
- The name of the database to consume within the DocumentDB cluster.- Returns:
this
-
fullDocument
@Stability(Stable) public CfnEventSourceMapping.DocumentDBEventSourceConfigProperty.Builder fullDocument(String fullDocument) - 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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEventSourceMapping.DocumentDBEventSourceConfigProperty>
- Returns:
- a new instance of
CfnEventSourceMapping.DocumentDBEventSourceConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-