AWS SDK for C++

AWS SDK for C++ Version 1.11.681

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/kendra/KendraRequest.h>
10#include <aws/kendra/Kendra_EXPORTS.h>
11#include <aws/kendra/model/DataSourceSyncJobMetricTarget.h>
12
13#include <utility>
14
15namespace Aws {
16namespace kendra {
17namespace Model {
18
22 public:
23 AWS_KENDRA_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_KENDRA_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetIndexId() const { return m_indexId; }
40 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
41 template <typename IndexIdT = Aws::String>
42 void SetIndexId(IndexIdT&& value) {
43 m_indexIdHasBeenSet = true;
44 m_indexId = std::forward<IndexIdT>(value);
45 }
46 template <typename IndexIdT = Aws::String>
48 SetIndexId(std::forward<IndexIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetDocumentIdList() const { return m_documentIdList; }
58 inline bool DocumentIdListHasBeenSet() const { return m_documentIdListHasBeenSet; }
59 template <typename DocumentIdListT = Aws::Vector<Aws::String>>
60 void SetDocumentIdList(DocumentIdListT&& value) {
61 m_documentIdListHasBeenSet = true;
62 m_documentIdList = std::forward<DocumentIdListT>(value);
63 }
64 template <typename DocumentIdListT = Aws::Vector<Aws::String>>
66 SetDocumentIdList(std::forward<DocumentIdListT>(value));
67 return *this;
68 }
69 template <typename DocumentIdListT = Aws::String>
71 m_documentIdListHasBeenSet = true;
72 m_documentIdList.emplace_back(std::forward<DocumentIdListT>(value));
73 return *this;
74 }
76
78
79 inline const DataSourceSyncJobMetricTarget& GetDataSourceSyncJobMetricTarget() const { return m_dataSourceSyncJobMetricTarget; }
80 inline bool DataSourceSyncJobMetricTargetHasBeenSet() const { return m_dataSourceSyncJobMetricTargetHasBeenSet; }
81 template <typename DataSourceSyncJobMetricTargetT = DataSourceSyncJobMetricTarget>
82 void SetDataSourceSyncJobMetricTarget(DataSourceSyncJobMetricTargetT&& value) {
83 m_dataSourceSyncJobMetricTargetHasBeenSet = true;
84 m_dataSourceSyncJobMetricTarget = std::forward<DataSourceSyncJobMetricTargetT>(value);
85 }
86 template <typename DataSourceSyncJobMetricTargetT = DataSourceSyncJobMetricTarget>
87 BatchDeleteDocumentRequest& WithDataSourceSyncJobMetricTarget(DataSourceSyncJobMetricTargetT&& value) {
88 SetDataSourceSyncJobMetricTarget(std::forward<DataSourceSyncJobMetricTargetT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_indexId;
94 bool m_indexIdHasBeenSet = false;
95
96 Aws::Vector<Aws::String> m_documentIdList;
97 bool m_documentIdListHasBeenSet = false;
98
99 DataSourceSyncJobMetricTarget m_dataSourceSyncJobMetricTarget;
100 bool m_dataSourceSyncJobMetricTargetHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace kendra
105} // namespace Aws
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
void SetDataSourceSyncJobMetricTarget(DataSourceSyncJobMetricTargetT &&value)
const DataSourceSyncJobMetricTarget & GetDataSourceSyncJobMetricTarget() const
BatchDeleteDocumentRequest & AddDocumentIdList(DocumentIdListT &&value)
AWS_KENDRA_API BatchDeleteDocumentRequest()=default
BatchDeleteDocumentRequest & WithIndexId(IndexIdT &&value)
BatchDeleteDocumentRequest & WithDataSourceSyncJobMetricTarget(DataSourceSyncJobMetricTargetT &&value)
BatchDeleteDocumentRequest & WithDocumentIdList(DocumentIdListT &&value)
const Aws::Vector< Aws::String > & GetDocumentIdList() const
AWS_KENDRA_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector