AWS SDK for C++  1.8.95
AWS SDK for C++
BatchDeleteDocumentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace kendra
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
42  inline const Aws::String& GetIndexId() const{ return m_indexId; }
43 
47  inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
48 
52  inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
53 
57  inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
58 
62  inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
63 
67  inline BatchDeleteDocumentRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
68 
72  inline BatchDeleteDocumentRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
73 
77  inline BatchDeleteDocumentRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
78 
79 
83  inline const Aws::Vector<Aws::String>& GetDocumentIdList() const{ return m_documentIdList; }
84 
88  inline bool DocumentIdListHasBeenSet() const { return m_documentIdListHasBeenSet; }
89 
93  inline void SetDocumentIdList(const Aws::Vector<Aws::String>& value) { m_documentIdListHasBeenSet = true; m_documentIdList = value; }
94 
98  inline void SetDocumentIdList(Aws::Vector<Aws::String>&& value) { m_documentIdListHasBeenSet = true; m_documentIdList = std::move(value); }
99 
103  inline BatchDeleteDocumentRequest& WithDocumentIdList(const Aws::Vector<Aws::String>& value) { SetDocumentIdList(value); return *this;}
104 
108  inline BatchDeleteDocumentRequest& WithDocumentIdList(Aws::Vector<Aws::String>&& value) { SetDocumentIdList(std::move(value)); return *this;}
109 
113  inline BatchDeleteDocumentRequest& AddDocumentIdList(const Aws::String& value) { m_documentIdListHasBeenSet = true; m_documentIdList.push_back(value); return *this; }
114 
118  inline BatchDeleteDocumentRequest& AddDocumentIdList(Aws::String&& value) { m_documentIdListHasBeenSet = true; m_documentIdList.push_back(std::move(value)); return *this; }
119 
123  inline BatchDeleteDocumentRequest& AddDocumentIdList(const char* value) { m_documentIdListHasBeenSet = true; m_documentIdList.push_back(value); return *this; }
124 
125 
126 
127  inline const DataSourceSyncJobMetricTarget& GetDataSourceSyncJobMetricTarget() const{ return m_dataSourceSyncJobMetricTarget; }
128 
129 
130  inline bool DataSourceSyncJobMetricTargetHasBeenSet() const { return m_dataSourceSyncJobMetricTargetHasBeenSet; }
131 
132 
133  inline void SetDataSourceSyncJobMetricTarget(const DataSourceSyncJobMetricTarget& value) { m_dataSourceSyncJobMetricTargetHasBeenSet = true; m_dataSourceSyncJobMetricTarget = value; }
134 
135 
136  inline void SetDataSourceSyncJobMetricTarget(DataSourceSyncJobMetricTarget&& value) { m_dataSourceSyncJobMetricTargetHasBeenSet = true; m_dataSourceSyncJobMetricTarget = std::move(value); }
137 
138 
139  inline BatchDeleteDocumentRequest& WithDataSourceSyncJobMetricTarget(const DataSourceSyncJobMetricTarget& value) { SetDataSourceSyncJobMetricTarget(value); return *this;}
140 
141 
142  inline BatchDeleteDocumentRequest& WithDataSourceSyncJobMetricTarget(DataSourceSyncJobMetricTarget&& value) { SetDataSourceSyncJobMetricTarget(std::move(value)); return *this;}
143 
144  private:
145 
146  Aws::String m_indexId;
147  bool m_indexIdHasBeenSet;
148 
149  Aws::Vector<Aws::String> m_documentIdList;
150  bool m_documentIdListHasBeenSet;
151 
152  DataSourceSyncJobMetricTarget m_dataSourceSyncJobMetricTarget;
153  bool m_dataSourceSyncJobMetricTargetHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace kendra
158 } // namespace Aws
BatchDeleteDocumentRequest & AddDocumentIdList(const char *value)
#define AWS_KENDRA_API
BatchDeleteDocumentRequest & WithDataSourceSyncJobMetricTarget(const DataSourceSyncJobMetricTarget &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
BatchDeleteDocumentRequest & AddDocumentIdList(Aws::String &&value)
BatchDeleteDocumentRequest & WithIndexId(const char *value)
BatchDeleteDocumentRequest & WithIndexId(const Aws::String &value)
const DataSourceSyncJobMetricTarget & GetDataSourceSyncJobMetricTarget() const
void SetDocumentIdList(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
BatchDeleteDocumentRequest & WithDocumentIdList(Aws::Vector< Aws::String > &&value)
BatchDeleteDocumentRequest & AddDocumentIdList(const Aws::String &value)
void SetDataSourceSyncJobMetricTarget(DataSourceSyncJobMetricTarget &&value)
BatchDeleteDocumentRequest & WithDataSourceSyncJobMetricTarget(DataSourceSyncJobMetricTarget &&value)
const Aws::Vector< Aws::String > & GetDocumentIdList() const
void SetDataSourceSyncJobMetricTarget(const DataSourceSyncJobMetricTarget &value)
BatchDeleteDocumentRequest & WithIndexId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDocumentIdList(Aws::Vector< Aws::String > &&value)
BatchDeleteDocumentRequest & WithDocumentIdList(const Aws::Vector< Aws::String > &value)