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/kendra/Kendra_EXPORTS.h>
8#include <aws/kendra/KendraRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kendra/model/DataSourceSyncJobMetricTarget.h>
12#include <utility>
13
14namespace Aws
15{
16namespace kendra
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_KENDRA_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_KENDRA_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetIndexId() const { return m_indexId; }
44 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
45 template<typename IndexIdT = Aws::String>
46 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
47 template<typename IndexIdT = Aws::String>
48 BatchDeleteDocumentRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
50
52
55 inline const Aws::Vector<Aws::String>& GetDocumentIdList() const { return m_documentIdList; }
56 inline bool DocumentIdListHasBeenSet() const { return m_documentIdListHasBeenSet; }
57 template<typename DocumentIdListT = Aws::Vector<Aws::String>>
58 void SetDocumentIdList(DocumentIdListT&& value) { m_documentIdListHasBeenSet = true; m_documentIdList = std::forward<DocumentIdListT>(value); }
59 template<typename DocumentIdListT = Aws::Vector<Aws::String>>
60 BatchDeleteDocumentRequest& WithDocumentIdList(DocumentIdListT&& value) { SetDocumentIdList(std::forward<DocumentIdListT>(value)); return *this;}
61 template<typename DocumentIdListT = Aws::String>
62 BatchDeleteDocumentRequest& AddDocumentIdList(DocumentIdListT&& value) { m_documentIdListHasBeenSet = true; m_documentIdList.emplace_back(std::forward<DocumentIdListT>(value)); return *this; }
64
66
67 inline const DataSourceSyncJobMetricTarget& GetDataSourceSyncJobMetricTarget() const { return m_dataSourceSyncJobMetricTarget; }
68 inline bool DataSourceSyncJobMetricTargetHasBeenSet() const { return m_dataSourceSyncJobMetricTargetHasBeenSet; }
69 template<typename DataSourceSyncJobMetricTargetT = DataSourceSyncJobMetricTarget>
70 void SetDataSourceSyncJobMetricTarget(DataSourceSyncJobMetricTargetT&& value) { m_dataSourceSyncJobMetricTargetHasBeenSet = true; m_dataSourceSyncJobMetricTarget = std::forward<DataSourceSyncJobMetricTargetT>(value); }
71 template<typename DataSourceSyncJobMetricTargetT = DataSourceSyncJobMetricTarget>
72 BatchDeleteDocumentRequest& WithDataSourceSyncJobMetricTarget(DataSourceSyncJobMetricTargetT&& value) { SetDataSourceSyncJobMetricTarget(std::forward<DataSourceSyncJobMetricTargetT>(value)); return *this;}
74 private:
75
76 Aws::String m_indexId;
77 bool m_indexIdHasBeenSet = false;
78
79 Aws::Vector<Aws::String> m_documentIdList;
80 bool m_documentIdListHasBeenSet = false;
81
82 DataSourceSyncJobMetricTarget m_dataSourceSyncJobMetricTarget;
83 bool m_dataSourceSyncJobMetricTargetHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace kendra
88} // 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