AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
BatchDeleteDocumentRequest.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/DeleteDocument.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QBusiness {
17namespace Model {
18
22 public:
23 AWS_QBUSINESS_API BatchDeleteDocumentRequest() = 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 "BatchDeleteDocument"; }
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
56 inline const Aws::String& GetIndexId() const { return m_indexId; }
57 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
58 template <typename IndexIdT = Aws::String>
59 void SetIndexId(IndexIdT&& value) {
60 m_indexIdHasBeenSet = true;
61 m_indexId = std::forward<IndexIdT>(value);
62 }
63 template <typename IndexIdT = Aws::String>
65 SetIndexId(std::forward<IndexIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Vector<DeleteDocument>& GetDocuments() const { return m_documents; }
75 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
76 template <typename DocumentsT = Aws::Vector<DeleteDocument>>
77 void SetDocuments(DocumentsT&& value) {
78 m_documentsHasBeenSet = true;
79 m_documents = std::forward<DocumentsT>(value);
80 }
81 template <typename DocumentsT = Aws::Vector<DeleteDocument>>
83 SetDocuments(std::forward<DocumentsT>(value));
84 return *this;
85 }
86 template <typename DocumentsT = DeleteDocument>
88 m_documentsHasBeenSet = true;
89 m_documents.emplace_back(std::forward<DocumentsT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetDataSourceSyncId() const { return m_dataSourceSyncId; }
100 inline bool DataSourceSyncIdHasBeenSet() const { return m_dataSourceSyncIdHasBeenSet; }
101 template <typename DataSourceSyncIdT = Aws::String>
103 m_dataSourceSyncIdHasBeenSet = true;
104 m_dataSourceSyncId = std::forward<DataSourceSyncIdT>(value);
105 }
106 template <typename DataSourceSyncIdT = Aws::String>
108 SetDataSourceSyncId(std::forward<DataSourceSyncIdT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_applicationId;
114
115 Aws::String m_indexId;
116
117 Aws::Vector<DeleteDocument> m_documents;
118
119 Aws::String m_dataSourceSyncId;
120 bool m_applicationIdHasBeenSet = false;
121 bool m_indexIdHasBeenSet = false;
122 bool m_documentsHasBeenSet = false;
123 bool m_dataSourceSyncIdHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace QBusiness
128} // namespace Aws
BatchDeleteDocumentRequest & AddDocuments(DocumentsT &&value)
BatchDeleteDocumentRequest & WithDataSourceSyncId(DataSourceSyncIdT &&value)
AWS_QBUSINESS_API BatchDeleteDocumentRequest()=default
BatchDeleteDocumentRequest & WithDocuments(DocumentsT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< DeleteDocument > & GetDocuments() const
BatchDeleteDocumentRequest & WithIndexId(IndexIdT &&value)
BatchDeleteDocumentRequest & WithApplicationId(ApplicationIdT &&value)
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