AWS SDK for C++

AWS SDK for C++ Version 1.11.681

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/kendra/KendraRequest.h>
10#include <aws/kendra/Kendra_EXPORTS.h>
11#include <aws/kendra/model/CustomDocumentEnrichmentConfiguration.h>
12#include <aws/kendra/model/Document.h>
13
14#include <utility>
15
16namespace Aws {
17namespace kendra {
18namespace Model {
19
23 public:
24 AWS_KENDRA_API BatchPutDocumentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "BatchPutDocument"; }
31
32 AWS_KENDRA_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetIndexId() const { return m_indexId; }
42 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
43 template <typename IndexIdT = Aws::String>
44 void SetIndexId(IndexIdT&& value) {
45 m_indexIdHasBeenSet = true;
46 m_indexId = std::forward<IndexIdT>(value);
47 }
48 template <typename IndexIdT = Aws::String>
50 SetIndexId(std::forward<IndexIdT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
63 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
64 template <typename RoleArnT = Aws::String>
65 void SetRoleArn(RoleArnT&& value) {
66 m_roleArnHasBeenSet = true;
67 m_roleArn = std::forward<RoleArnT>(value);
68 }
69 template <typename RoleArnT = Aws::String>
71 SetRoleArn(std::forward<RoleArnT>(value));
72 return *this;
73 }
75
77
84 inline const Aws::Vector<Document>& GetDocuments() const { return m_documents; }
85 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
86 template <typename DocumentsT = Aws::Vector<Document>>
87 void SetDocuments(DocumentsT&& value) {
88 m_documentsHasBeenSet = true;
89 m_documents = std::forward<DocumentsT>(value);
90 }
91 template <typename DocumentsT = Aws::Vector<Document>>
93 SetDocuments(std::forward<DocumentsT>(value));
94 return *this;
95 }
96 template <typename DocumentsT = Document>
98 m_documentsHasBeenSet = true;
99 m_documents.emplace_back(std::forward<DocumentsT>(value));
100 return *this;
101 }
103
105
115 return m_customDocumentEnrichmentConfiguration;
116 }
117 inline bool CustomDocumentEnrichmentConfigurationHasBeenSet() const { return m_customDocumentEnrichmentConfigurationHasBeenSet; }
118 template <typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
119 void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) {
120 m_customDocumentEnrichmentConfigurationHasBeenSet = true;
121 m_customDocumentEnrichmentConfiguration = std::forward<CustomDocumentEnrichmentConfigurationT>(value);
122 }
123 template <typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
124 BatchPutDocumentRequest& WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) {
125 SetCustomDocumentEnrichmentConfiguration(std::forward<CustomDocumentEnrichmentConfigurationT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_indexId;
131 bool m_indexIdHasBeenSet = false;
132
133 Aws::String m_roleArn;
134 bool m_roleArnHasBeenSet = false;
135
136 Aws::Vector<Document> m_documents;
137 bool m_documentsHasBeenSet = false;
138
139 CustomDocumentEnrichmentConfiguration m_customDocumentEnrichmentConfiguration;
140 bool m_customDocumentEnrichmentConfigurationHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace kendra
145} // namespace Aws
BatchPutDocumentRequest & WithDocuments(DocumentsT &&value)
const Aws::Vector< Document > & GetDocuments() const
AWS_KENDRA_API BatchPutDocumentRequest()=default
BatchPutDocumentRequest & AddDocuments(DocumentsT &&value)
void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT &&value)
BatchPutDocumentRequest & WithRoleArn(RoleArnT &&value)
const CustomDocumentEnrichmentConfiguration & GetCustomDocumentEnrichmentConfiguration() const
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
BatchPutDocumentRequest & WithIndexId(IndexIdT &&value)
BatchPutDocumentRequest & WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT &&value)
AWS_KENDRA_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector