/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specific configuration settings for a DocumentDB event source.
* See Also:
AWS
* API Reference
The name of the database to consume within the DocumentDB cluster.
*/ inline const Aws::String& GetDatabaseName() const{ return m_databaseName; } /** *The name of the database to consume within the DocumentDB cluster.
*/ inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; } /** *The name of the database to consume within the DocumentDB cluster.
*/ inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; } /** *The name of the database to consume within the DocumentDB cluster.
*/ inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); } /** *The name of the database to consume within the DocumentDB cluster.
*/ inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); } /** *The name of the database to consume within the DocumentDB cluster.
*/ inline DocumentDBEventSourceConfig& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;} /** *The name of the database to consume within the DocumentDB cluster.
*/ inline DocumentDBEventSourceConfig& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;} /** *The name of the database to consume within the DocumentDB cluster.
*/ inline DocumentDBEventSourceConfig& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;} /** *The name of the collection to consume within the database. If you do not * specify a collection, Lambda consumes all collections.
*/ inline const Aws::String& GetCollectionName() const{ return m_collectionName; } /** *The name of the collection to consume within the database. If you do not * specify a collection, Lambda consumes all collections.
*/ inline bool CollectionNameHasBeenSet() const { return m_collectionNameHasBeenSet; } /** *The name of the collection to consume within the database. If you do not * specify a collection, Lambda consumes all collections.
*/ inline void SetCollectionName(const Aws::String& value) { m_collectionNameHasBeenSet = true; m_collectionName = value; } /** *The name of the collection to consume within the database. If you do not * specify a collection, Lambda consumes all collections.
*/ inline void SetCollectionName(Aws::String&& value) { m_collectionNameHasBeenSet = true; m_collectionName = std::move(value); } /** *The name of the collection to consume within the database. If you do not * specify a collection, Lambda consumes all collections.
*/ inline void SetCollectionName(const char* value) { m_collectionNameHasBeenSet = true; m_collectionName.assign(value); } /** *The name of the collection to consume within the database. If you do not * specify a collection, Lambda consumes all collections.
*/ inline DocumentDBEventSourceConfig& WithCollectionName(const Aws::String& value) { SetCollectionName(value); return *this;} /** *The name of the collection to consume within the database. If you do not * specify a collection, Lambda consumes all collections.
*/ inline DocumentDBEventSourceConfig& WithCollectionName(Aws::String&& value) { SetCollectionName(std::move(value)); return *this;} /** *The name of the collection to consume within the database. If you do not * specify a collection, Lambda consumes all collections.
*/ inline DocumentDBEventSourceConfig& WithCollectionName(const char* value) { SetCollectionName(value); return *this;} /** *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.
*/ inline const FullDocument& GetFullDocument() const{ return m_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.
*/ inline bool FullDocumentHasBeenSet() const { return m_fullDocumentHasBeenSet; } /** *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.
*/ inline void SetFullDocument(const FullDocument& value) { m_fullDocumentHasBeenSet = true; m_fullDocument = value; } /** *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.
*/ inline void SetFullDocument(FullDocument&& value) { m_fullDocumentHasBeenSet = true; m_fullDocument = std::move(value); } /** *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.
*/ inline DocumentDBEventSourceConfig& WithFullDocument(const FullDocument& value) { SetFullDocument(value); return *this;} /** *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.
*/ inline DocumentDBEventSourceConfig& WithFullDocument(FullDocument&& value) { SetFullDocument(std::move(value)); return *this;} private: Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; Aws::String m_collectionName; bool m_collectionNameHasBeenSet = false; FullDocument m_fullDocument; bool m_fullDocumentHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws