AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BatchPutDocumentRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qbusiness/model/Document.h>
12#include <utility>
13
14namespace Aws
15{
16namespace QBusiness
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QBUSINESS_API BatchPutDocumentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "BatchPutDocument"; }
33
34 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
42 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
43 template<typename ApplicationIdT = Aws::String>
44 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
45 template<typename ApplicationIdT = Aws::String>
46 BatchPutDocumentRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetIndexId() const { return m_indexId; }
54 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
55 template<typename IndexIdT = Aws::String>
56 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
57 template<typename IndexIdT = Aws::String>
58 BatchPutDocumentRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
60
62
65 inline const Aws::Vector<Document>& GetDocuments() const { return m_documents; }
66 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
67 template<typename DocumentsT = Aws::Vector<Document>>
68 void SetDocuments(DocumentsT&& value) { m_documentsHasBeenSet = true; m_documents = std::forward<DocumentsT>(value); }
69 template<typename DocumentsT = Aws::Vector<Document>>
70 BatchPutDocumentRequest& WithDocuments(DocumentsT&& value) { SetDocuments(std::forward<DocumentsT>(value)); return *this;}
71 template<typename DocumentsT = Document>
72 BatchPutDocumentRequest& AddDocuments(DocumentsT&& value) { m_documentsHasBeenSet = true; m_documents.emplace_back(std::forward<DocumentsT>(value)); return *this; }
74
76
80 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
81 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
82 template<typename RoleArnT = Aws::String>
83 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
84 template<typename RoleArnT = Aws::String>
85 BatchPutDocumentRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
87
89
93 inline const Aws::String& GetDataSourceSyncId() const { return m_dataSourceSyncId; }
94 inline bool DataSourceSyncIdHasBeenSet() const { return m_dataSourceSyncIdHasBeenSet; }
95 template<typename DataSourceSyncIdT = Aws::String>
96 void SetDataSourceSyncId(DataSourceSyncIdT&& value) { m_dataSourceSyncIdHasBeenSet = true; m_dataSourceSyncId = std::forward<DataSourceSyncIdT>(value); }
97 template<typename DataSourceSyncIdT = Aws::String>
98 BatchPutDocumentRequest& WithDataSourceSyncId(DataSourceSyncIdT&& value) { SetDataSourceSyncId(std::forward<DataSourceSyncIdT>(value)); return *this;}
100 private:
101
102 Aws::String m_applicationId;
103 bool m_applicationIdHasBeenSet = false;
104
105 Aws::String m_indexId;
106 bool m_indexIdHasBeenSet = false;
107
108 Aws::Vector<Document> m_documents;
109 bool m_documentsHasBeenSet = false;
110
111 Aws::String m_roleArn;
112 bool m_roleArnHasBeenSet = false;
113
114 Aws::String m_dataSourceSyncId;
115 bool m_dataSourceSyncIdHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace QBusiness
120} // 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