AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 BatchDeleteDocumentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
47 inline BatchDeleteDocumentRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
48 inline BatchDeleteDocumentRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
50
52
56 inline const Aws::String& GetIndexId() const{ return m_indexId; }
57 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
58 inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
59 inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
60 inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
61 inline BatchDeleteDocumentRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
62 inline BatchDeleteDocumentRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
63 inline BatchDeleteDocumentRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
65
67
70 inline const Aws::Vector<DeleteDocument>& GetDocuments() const{ return m_documents; }
71 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
72 inline void SetDocuments(const Aws::Vector<DeleteDocument>& value) { m_documentsHasBeenSet = true; m_documents = value; }
73 inline void SetDocuments(Aws::Vector<DeleteDocument>&& value) { m_documentsHasBeenSet = true; m_documents = std::move(value); }
75 inline BatchDeleteDocumentRequest& WithDocuments(Aws::Vector<DeleteDocument>&& value) { SetDocuments(std::move(value)); return *this;}
76 inline BatchDeleteDocumentRequest& AddDocuments(const DeleteDocument& value) { m_documentsHasBeenSet = true; m_documents.push_back(value); return *this; }
77 inline BatchDeleteDocumentRequest& AddDocuments(DeleteDocument&& value) { m_documentsHasBeenSet = true; m_documents.push_back(std::move(value)); return *this; }
79
81
85 inline const Aws::String& GetDataSourceSyncId() const{ return m_dataSourceSyncId; }
86 inline bool DataSourceSyncIdHasBeenSet() const { return m_dataSourceSyncIdHasBeenSet; }
87 inline void SetDataSourceSyncId(const Aws::String& value) { m_dataSourceSyncIdHasBeenSet = true; m_dataSourceSyncId = value; }
88 inline void SetDataSourceSyncId(Aws::String&& value) { m_dataSourceSyncIdHasBeenSet = true; m_dataSourceSyncId = std::move(value); }
89 inline void SetDataSourceSyncId(const char* value) { m_dataSourceSyncIdHasBeenSet = true; m_dataSourceSyncId.assign(value); }
91 inline BatchDeleteDocumentRequest& WithDataSourceSyncId(Aws::String&& value) { SetDataSourceSyncId(std::move(value)); return *this;}
92 inline BatchDeleteDocumentRequest& WithDataSourceSyncId(const char* value) { SetDataSourceSyncId(value); return *this;}
94 private:
95
96 Aws::String m_applicationId;
97 bool m_applicationIdHasBeenSet = false;
98
99 Aws::String m_indexId;
100 bool m_indexIdHasBeenSet = false;
101
102 Aws::Vector<DeleteDocument> m_documents;
103 bool m_documentsHasBeenSet = false;
104
105 Aws::String m_dataSourceSyncId;
106 bool m_dataSourceSyncIdHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace QBusiness
111} // namespace Aws
BatchDeleteDocumentRequest & WithIndexId(const char *value)
void SetDocuments(Aws::Vector< DeleteDocument > &&value)
BatchDeleteDocumentRequest & WithDocuments(Aws::Vector< DeleteDocument > &&value)
BatchDeleteDocumentRequest & WithApplicationId(const Aws::String &value)
BatchDeleteDocumentRequest & WithDocuments(const Aws::Vector< DeleteDocument > &value)
BatchDeleteDocumentRequest & WithIndexId(Aws::String &&value)
void SetDocuments(const Aws::Vector< DeleteDocument > &value)
BatchDeleteDocumentRequest & WithDataSourceSyncId(const char *value)
BatchDeleteDocumentRequest & WithDataSourceSyncId(Aws::String &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< DeleteDocument > & GetDocuments() const
BatchDeleteDocumentRequest & AddDocuments(DeleteDocument &&value)
BatchDeleteDocumentRequest & WithApplicationId(const char *value)
BatchDeleteDocumentRequest & AddDocuments(const DeleteDocument &value)
BatchDeleteDocumentRequest & WithDataSourceSyncId(const Aws::String &value)
BatchDeleteDocumentRequest & WithIndexId(const Aws::String &value)
BatchDeleteDocumentRequest & WithApplicationId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector