AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DocumentDBEventSourceConfig.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/model/FullDocument.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lambda
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LAMBDA_API DocumentDBEventSourceConfig() = default;
39 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
47 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
48 template<typename DatabaseNameT = Aws::String>
49 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
50 template<typename DatabaseNameT = Aws::String>
51 DocumentDBEventSourceConfig& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
53
55
59 inline const Aws::String& GetCollectionName() const { return m_collectionName; }
60 inline bool CollectionNameHasBeenSet() const { return m_collectionNameHasBeenSet; }
61 template<typename CollectionNameT = Aws::String>
62 void SetCollectionName(CollectionNameT&& value) { m_collectionNameHasBeenSet = true; m_collectionName = std::forward<CollectionNameT>(value); }
63 template<typename CollectionNameT = Aws::String>
64 DocumentDBEventSourceConfig& WithCollectionName(CollectionNameT&& value) { SetCollectionName(std::forward<CollectionNameT>(value)); return *this;}
66
68
74 inline FullDocument GetFullDocument() const { return m_fullDocument; }
75 inline bool FullDocumentHasBeenSet() const { return m_fullDocumentHasBeenSet; }
76 inline void SetFullDocument(FullDocument value) { m_fullDocumentHasBeenSet = true; m_fullDocument = value; }
79 private:
80
81 Aws::String m_databaseName;
82 bool m_databaseNameHasBeenSet = false;
83
84 Aws::String m_collectionName;
85 bool m_collectionNameHasBeenSet = false;
86
87 FullDocument m_fullDocument{FullDocument::NOT_SET};
88 bool m_fullDocumentHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Lambda
93} // namespace Aws
DocumentDBEventSourceConfig & WithDatabaseName(DatabaseNameT &&value)
AWS_LAMBDA_API DocumentDBEventSourceConfig()=default
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentDBEventSourceConfig & WithFullDocument(FullDocument value)
AWS_LAMBDA_API DocumentDBEventSourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API DocumentDBEventSourceConfig(Aws::Utils::Json::JsonView jsonValue)
DocumentDBEventSourceConfig & WithCollectionName(CollectionNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue