AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
BatchPutDocumentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qbusiness/QBusinessRequest.h>
10#include <aws/qbusiness/QBusiness_EXPORTS.h>
11#include <aws/qbusiness/model/Document.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QBusiness {
17namespace Model {
18
22 public:
23 AWS_QBUSINESS_API BatchPutDocumentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "BatchPutDocument"; }
30
31 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
38 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
39 template <typename ApplicationIdT = Aws::String>
41 m_applicationIdHasBeenSet = true;
42 m_applicationId = std::forward<ApplicationIdT>(value);
43 }
44 template <typename ApplicationIdT = Aws::String>
46 SetApplicationId(std::forward<ApplicationIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetIndexId() const { return m_indexId; }
56 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
57 template <typename IndexIdT = Aws::String>
58 void SetIndexId(IndexIdT&& value) {
59 m_indexIdHasBeenSet = true;
60 m_indexId = std::forward<IndexIdT>(value);
61 }
62 template <typename IndexIdT = Aws::String>
64 SetIndexId(std::forward<IndexIdT>(value));
65 return *this;
66 }
68
70
76 inline const Aws::Vector<Document>& GetDocuments() const { return m_documents; }
77 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
78 template <typename DocumentsT = Aws::Vector<Document>>
79 void SetDocuments(DocumentsT&& value) {
80 m_documentsHasBeenSet = true;
81 m_documents = std::forward<DocumentsT>(value);
82 }
83 template <typename DocumentsT = Aws::Vector<Document>>
85 SetDocuments(std::forward<DocumentsT>(value));
86 return *this;
87 }
88 template <typename DocumentsT = Document>
90 m_documentsHasBeenSet = true;
91 m_documents.emplace_back(std::forward<DocumentsT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
102 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
103 template <typename RoleArnT = Aws::String>
104 void SetRoleArn(RoleArnT&& value) {
105 m_roleArnHasBeenSet = true;
106 m_roleArn = std::forward<RoleArnT>(value);
107 }
108 template <typename RoleArnT = Aws::String>
110 SetRoleArn(std::forward<RoleArnT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetDataSourceSyncId() const { return m_dataSourceSyncId; }
121 inline bool DataSourceSyncIdHasBeenSet() const { return m_dataSourceSyncIdHasBeenSet; }
122 template <typename DataSourceSyncIdT = Aws::String>
124 m_dataSourceSyncIdHasBeenSet = true;
125 m_dataSourceSyncId = std::forward<DataSourceSyncIdT>(value);
126 }
127 template <typename DataSourceSyncIdT = Aws::String>
129 SetDataSourceSyncId(std::forward<DataSourceSyncIdT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_applicationId;
135
136 Aws::String m_indexId;
137
138 Aws::Vector<Document> m_documents;
139
140 Aws::String m_roleArn;
141
142 Aws::String m_dataSourceSyncId;
143 bool m_applicationIdHasBeenSet = false;
144 bool m_indexIdHasBeenSet = false;
145 bool m_documentsHasBeenSet = false;
146 bool m_roleArnHasBeenSet = false;
147 bool m_dataSourceSyncIdHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace QBusiness
152} // namespace Aws
AWS_QBUSINESS_API Aws::String SerializePayload() const override
BatchPutDocumentRequest & WithIndexId(IndexIdT &&value)
const Aws::Vector< Document > & GetDocuments() const
BatchPutDocumentRequest & WithApplicationId(ApplicationIdT &&value)
BatchPutDocumentRequest & AddDocuments(DocumentsT &&value)
BatchPutDocumentRequest & WithRoleArn(RoleArnT &&value)
BatchPutDocumentRequest & WithDocuments(DocumentsT &&value)
BatchPutDocumentRequest & WithDataSourceSyncId(DataSourceSyncIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_QBUSINESS_API BatchPutDocumentRequest()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector