AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
44 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
45 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
46 inline BatchPutDocumentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
47 inline BatchPutDocumentRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
48 inline BatchPutDocumentRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
50
52
55 inline const Aws::String& GetIndexId() const{ return m_indexId; }
56 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
57 inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
58 inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
59 inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
60 inline BatchPutDocumentRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
61 inline BatchPutDocumentRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
62 inline BatchPutDocumentRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
64
66
69 inline const Aws::Vector<Document>& GetDocuments() const{ return m_documents; }
70 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
71 inline void SetDocuments(const Aws::Vector<Document>& value) { m_documentsHasBeenSet = true; m_documents = value; }
72 inline void SetDocuments(Aws::Vector<Document>&& value) { m_documentsHasBeenSet = true; m_documents = std::move(value); }
73 inline BatchPutDocumentRequest& WithDocuments(const Aws::Vector<Document>& value) { SetDocuments(value); return *this;}
74 inline BatchPutDocumentRequest& WithDocuments(Aws::Vector<Document>&& value) { SetDocuments(std::move(value)); return *this;}
75 inline BatchPutDocumentRequest& AddDocuments(const Document& value) { m_documentsHasBeenSet = true; m_documents.push_back(value); return *this; }
76 inline BatchPutDocumentRequest& AddDocuments(Document&& value) { m_documentsHasBeenSet = true; m_documents.push_back(std::move(value)); return *this; }
78
80
84 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
85 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
86 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
87 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
88 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
89 inline BatchPutDocumentRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
90 inline BatchPutDocumentRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
91 inline BatchPutDocumentRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
93
95
99 inline const Aws::String& GetDataSourceSyncId() const{ return m_dataSourceSyncId; }
100 inline bool DataSourceSyncIdHasBeenSet() const { return m_dataSourceSyncIdHasBeenSet; }
101 inline void SetDataSourceSyncId(const Aws::String& value) { m_dataSourceSyncIdHasBeenSet = true; m_dataSourceSyncId = value; }
102 inline void SetDataSourceSyncId(Aws::String&& value) { m_dataSourceSyncIdHasBeenSet = true; m_dataSourceSyncId = std::move(value); }
103 inline void SetDataSourceSyncId(const char* value) { m_dataSourceSyncIdHasBeenSet = true; m_dataSourceSyncId.assign(value); }
105 inline BatchPutDocumentRequest& WithDataSourceSyncId(Aws::String&& value) { SetDataSourceSyncId(std::move(value)); return *this;}
106 inline BatchPutDocumentRequest& WithDataSourceSyncId(const char* value) { SetDataSourceSyncId(value); return *this;}
108 private:
109
110 Aws::String m_applicationId;
111 bool m_applicationIdHasBeenSet = false;
112
113 Aws::String m_indexId;
114 bool m_indexIdHasBeenSet = false;
115
116 Aws::Vector<Document> m_documents;
117 bool m_documentsHasBeenSet = false;
118
119 Aws::String m_roleArn;
120 bool m_roleArnHasBeenSet = false;
121
122 Aws::String m_dataSourceSyncId;
123 bool m_dataSourceSyncIdHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace QBusiness
128} // namespace Aws
AWS_QBUSINESS_API Aws::String SerializePayload() const override
const Aws::Vector< Document > & GetDocuments() const
BatchPutDocumentRequest & WithDataSourceSyncId(const char *value)
BatchPutDocumentRequest & WithDocuments(const Aws::Vector< Document > &value)
BatchPutDocumentRequest & WithIndexId(Aws::String &&value)
BatchPutDocumentRequest & AddDocuments(const Document &value)
BatchPutDocumentRequest & WithIndexId(const char *value)
BatchPutDocumentRequest & WithRoleArn(const char *value)
BatchPutDocumentRequest & WithDocuments(Aws::Vector< Document > &&value)
void SetDocuments(const Aws::Vector< Document > &value)
BatchPutDocumentRequest & WithDataSourceSyncId(Aws::String &&value)
BatchPutDocumentRequest & WithIndexId(const Aws::String &value)
BatchPutDocumentRequest & WithApplicationId(const char *value)
BatchPutDocumentRequest & WithRoleArn(Aws::String &&value)
void SetDocuments(Aws::Vector< Document > &&value)
BatchPutDocumentRequest & WithApplicationId(const Aws::String &value)
BatchPutDocumentRequest & AddDocuments(Document &&value)
BatchPutDocumentRequest & WithDataSourceSyncId(const Aws::String &value)
BatchPutDocumentRequest & WithRoleArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
BatchPutDocumentRequest & WithApplicationId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector