AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchDeleteDocumentRequest.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/DeleteDocument.h>
12#include <utility>
13
14namespace Aws
15{
16namespace QBusiness
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QBUSINESS_API BatchDeleteDocumentRequest() = 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 "BatchDeleteDocument"; }
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 BatchDeleteDocumentRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
48
50
54 inline const Aws::String& GetIndexId() const { return m_indexId; }
55 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
56 template<typename IndexIdT = Aws::String>
57 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
58 template<typename IndexIdT = Aws::String>
59 BatchDeleteDocumentRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
61
63
66 inline const Aws::Vector<DeleteDocument>& GetDocuments() const { return m_documents; }
67 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
68 template<typename DocumentsT = Aws::Vector<DeleteDocument>>
69 void SetDocuments(DocumentsT&& value) { m_documentsHasBeenSet = true; m_documents = std::forward<DocumentsT>(value); }
70 template<typename DocumentsT = Aws::Vector<DeleteDocument>>
71 BatchDeleteDocumentRequest& WithDocuments(DocumentsT&& value) { SetDocuments(std::forward<DocumentsT>(value)); return *this;}
72 template<typename DocumentsT = DeleteDocument>
73 BatchDeleteDocumentRequest& AddDocuments(DocumentsT&& value) { m_documentsHasBeenSet = true; m_documents.emplace_back(std::forward<DocumentsT>(value)); return *this; }
75
77
81 inline const Aws::String& GetDataSourceSyncId() const { return m_dataSourceSyncId; }
82 inline bool DataSourceSyncIdHasBeenSet() const { return m_dataSourceSyncIdHasBeenSet; }
83 template<typename DataSourceSyncIdT = Aws::String>
84 void SetDataSourceSyncId(DataSourceSyncIdT&& value) { m_dataSourceSyncIdHasBeenSet = true; m_dataSourceSyncId = std::forward<DataSourceSyncIdT>(value); }
85 template<typename DataSourceSyncIdT = Aws::String>
86 BatchDeleteDocumentRequest& WithDataSourceSyncId(DataSourceSyncIdT&& value) { SetDataSourceSyncId(std::forward<DataSourceSyncIdT>(value)); return *this;}
88 private:
89
90 Aws::String m_applicationId;
91 bool m_applicationIdHasBeenSet = false;
92
93 Aws::String m_indexId;
94 bool m_indexIdHasBeenSet = false;
95
97 bool m_documentsHasBeenSet = false;
98
99 Aws::String m_dataSourceSyncId;
100 bool m_dataSourceSyncIdHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace QBusiness
105} // 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