AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchPutDocumentRequest.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/kendra/KendraRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kendra/model/CustomDocumentEnrichmentConfiguration.h>
12#include <aws/kendra/model/Document.h>
13#include <utility>
14
15namespace Aws
16{
17namespace kendra
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_KENDRA_API BatchPutDocumentRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "BatchPutDocument"; }
34
35 AWS_KENDRA_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetIndexId() const { return m_indexId; }
46 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
47 template<typename IndexIdT = Aws::String>
48 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
49 template<typename IndexIdT = Aws::String>
50 BatchPutDocumentRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
52
54
60 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
61 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
62 template<typename RoleArnT = Aws::String>
63 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
64 template<typename RoleArnT = Aws::String>
65 BatchPutDocumentRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
67
69
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) { m_documentsHasBeenSet = true; m_documents = std::forward<DocumentsT>(value); }
80 template<typename DocumentsT = Aws::Vector<Document>>
81 BatchPutDocumentRequest& WithDocuments(DocumentsT&& value) { SetDocuments(std::forward<DocumentsT>(value)); return *this;}
82 template<typename DocumentsT = Document>
83 BatchPutDocumentRequest& AddDocuments(DocumentsT&& value) { m_documentsHasBeenSet = true; m_documents.emplace_back(std::forward<DocumentsT>(value)); return *this; }
85
87
96 inline const CustomDocumentEnrichmentConfiguration& GetCustomDocumentEnrichmentConfiguration() const { return m_customDocumentEnrichmentConfiguration; }
97 inline bool CustomDocumentEnrichmentConfigurationHasBeenSet() const { return m_customDocumentEnrichmentConfigurationHasBeenSet; }
98 template<typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
99 void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) { m_customDocumentEnrichmentConfigurationHasBeenSet = true; m_customDocumentEnrichmentConfiguration = std::forward<CustomDocumentEnrichmentConfigurationT>(value); }
100 template<typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
101 BatchPutDocumentRequest& WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) { SetCustomDocumentEnrichmentConfiguration(std::forward<CustomDocumentEnrichmentConfigurationT>(value)); return *this;}
103 private:
104
105 Aws::String m_indexId;
106 bool m_indexIdHasBeenSet = false;
107
108 Aws::String m_roleArn;
109 bool m_roleArnHasBeenSet = false;
110
111 Aws::Vector<Document> m_documents;
112 bool m_documentsHasBeenSet = false;
113
114 CustomDocumentEnrichmentConfiguration m_customDocumentEnrichmentConfiguration;
115 bool m_customDocumentEnrichmentConfigurationHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace kendra
120} // 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