AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
IngestionStreamDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
11#include <aws/opensearchserverless/model/IngestionAlert.h>
12#include <aws/opensearchserverless/model/IngestionFailureReason.h>
13#include <aws/opensearchserverless/model/IngestionState.h>
14#include <aws/opensearchserverless/model/IngestionStatistics.h>
15#include <aws/opensearchserverless/model/IngestionStreamSource.h>
16#include <aws/opensearchserverless/model/IngestionStreamStatus.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace OpenSearchServerless {
28namespace Model {
29
36 public:
37 AWS_OPENSEARCHSERVERLESS_API IngestionStreamDetail() = default;
38 AWS_OPENSEARCHSERVERLESS_API IngestionStreamDetail(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVERLESS_API IngestionStreamDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetIngestionStreamId() const { return m_ingestionStreamId; }
47 inline bool IngestionStreamIdHasBeenSet() const { return m_ingestionStreamIdHasBeenSet; }
48 template <typename IngestionStreamIdT = Aws::String>
49 void SetIngestionStreamId(IngestionStreamIdT&& value) {
50 m_ingestionStreamIdHasBeenSet = true;
51 m_ingestionStreamId = std::forward<IngestionStreamIdT>(value);
52 }
53 template <typename IngestionStreamIdT = Aws::String>
54 IngestionStreamDetail& WithIngestionStreamId(IngestionStreamIdT&& value) {
55 SetIngestionStreamId(std::forward<IngestionStreamIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetArn() const { return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 template <typename ArnT = Aws::String>
67 void SetArn(ArnT&& value) {
68 m_arnHasBeenSet = true;
69 m_arn = std::forward<ArnT>(value);
70 }
71 template <typename ArnT = Aws::String>
73 SetArn(std::forward<ArnT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
84 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
85 template <typename CollectionIdT = Aws::String>
86 void SetCollectionId(CollectionIdT&& value) {
87 m_collectionIdHasBeenSet = true;
88 m_collectionId = std::forward<CollectionIdT>(value);
89 }
90 template <typename CollectionIdT = Aws::String>
91 IngestionStreamDetail& WithCollectionId(CollectionIdT&& value) {
92 SetCollectionId(std::forward<CollectionIdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetIngestionStreamName() const { return m_ingestionStreamName; }
102 inline bool IngestionStreamNameHasBeenSet() const { return m_ingestionStreamNameHasBeenSet; }
103 template <typename IngestionStreamNameT = Aws::String>
104 void SetIngestionStreamName(IngestionStreamNameT&& value) {
105 m_ingestionStreamNameHasBeenSet = true;
106 m_ingestionStreamName = std::forward<IngestionStreamNameT>(value);
107 }
108 template <typename IngestionStreamNameT = Aws::String>
109 IngestionStreamDetail& WithIngestionStreamName(IngestionStreamNameT&& value) {
110 SetIngestionStreamName(std::forward<IngestionStreamNameT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetIndexName() const { return m_indexName; }
120 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
121 template <typename IndexNameT = Aws::String>
122 void SetIndexName(IndexNameT&& value) {
123 m_indexNameHasBeenSet = true;
124 m_indexName = std::forward<IndexNameT>(value);
125 }
126 template <typename IndexNameT = Aws::String>
128 SetIndexName(std::forward<IndexNameT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetFailureIndexName() const { return m_failureIndexName; }
139 inline bool FailureIndexNameHasBeenSet() const { return m_failureIndexNameHasBeenSet; }
140 template <typename FailureIndexNameT = Aws::String>
141 void SetFailureIndexName(FailureIndexNameT&& value) {
142 m_failureIndexNameHasBeenSet = true;
143 m_failureIndexName = std::forward<FailureIndexNameT>(value);
144 }
145 template <typename FailureIndexNameT = Aws::String>
146 IngestionStreamDetail& WithFailureIndexName(FailureIndexNameT&& value) {
147 SetFailureIndexName(std::forward<FailureIndexNameT>(value));
148 return *this;
149 }
151
153
156 inline const IngestionStreamSource& GetSource() const { return m_source; }
157 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
158 template <typename SourceT = IngestionStreamSource>
159 void SetSource(SourceT&& value) {
160 m_sourceHasBeenSet = true;
161 m_source = std::forward<SourceT>(value);
162 }
163 template <typename SourceT = IngestionStreamSource>
165 SetSource(std::forward<SourceT>(value));
166 return *this;
167 }
169
171
175 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
176 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
177 template <typename RoleArnT = Aws::String>
178 void SetRoleArn(RoleArnT&& value) {
179 m_roleArnHasBeenSet = true;
180 m_roleArn = std::forward<RoleArnT>(value);
181 }
182 template <typename RoleArnT = Aws::String>
184 SetRoleArn(std::forward<RoleArnT>(value));
185 return *this;
186 }
188
190
194 inline IngestionStreamStatus GetStatus() const { return m_status; }
195 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
196 inline void SetStatus(IngestionStreamStatus value) {
197 m_statusHasBeenSet = true;
198 m_status = value;
199 }
201 SetStatus(value);
202 return *this;
203 }
205
207
211 inline IngestionState GetState() const { return m_state; }
212 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
213 inline void SetState(IngestionState value) {
214 m_stateHasBeenSet = true;
215 m_state = value;
216 }
218 SetState(value);
219 return *this;
220 }
222
224
228 inline const IngestionStatistics& GetStatistics() const { return m_statistics; }
229 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
230 template <typename StatisticsT = IngestionStatistics>
231 void SetStatistics(StatisticsT&& value) {
232 m_statisticsHasBeenSet = true;
233 m_statistics = std::forward<StatisticsT>(value);
234 }
235 template <typename StatisticsT = IngestionStatistics>
236 IngestionStreamDetail& WithStatistics(StatisticsT&& value) {
237 SetStatistics(std::forward<StatisticsT>(value));
238 return *this;
239 }
241
243
246 inline long long GetRevision() const { return m_revision; }
247 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
248 inline void SetRevision(long long value) {
249 m_revisionHasBeenSet = true;
250 m_revision = value;
251 }
252 inline IngestionStreamDetail& WithRevision(long long value) {
253 SetRevision(value);
254 return *this;
255 }
257
259
262 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
263 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
264 template <typename CreatedAtT = Aws::Utils::DateTime>
265 void SetCreatedAt(CreatedAtT&& value) {
266 m_createdAtHasBeenSet = true;
267 m_createdAt = std::forward<CreatedAtT>(value);
268 }
269 template <typename CreatedAtT = Aws::Utils::DateTime>
271 SetCreatedAt(std::forward<CreatedAtT>(value));
272 return *this;
273 }
275
277
280 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
281 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
282 template <typename UpdatedAtT = Aws::Utils::DateTime>
283 void SetUpdatedAt(UpdatedAtT&& value) {
284 m_updatedAtHasBeenSet = true;
285 m_updatedAt = std::forward<UpdatedAtT>(value);
286 }
287 template <typename UpdatedAtT = Aws::Utils::DateTime>
289 SetUpdatedAt(std::forward<UpdatedAtT>(value));
290 return *this;
291 }
293
295
299 inline const Aws::Vector<IngestionFailureReason>& GetFailureReasons() const { return m_failureReasons; }
300 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
301 template <typename FailureReasonsT = Aws::Vector<IngestionFailureReason>>
302 void SetFailureReasons(FailureReasonsT&& value) {
303 m_failureReasonsHasBeenSet = true;
304 m_failureReasons = std::forward<FailureReasonsT>(value);
305 }
306 template <typename FailureReasonsT = Aws::Vector<IngestionFailureReason>>
307 IngestionStreamDetail& WithFailureReasons(FailureReasonsT&& value) {
308 SetFailureReasons(std::forward<FailureReasonsT>(value));
309 return *this;
310 }
311 template <typename FailureReasonsT = IngestionFailureReason>
312 IngestionStreamDetail& AddFailureReasons(FailureReasonsT&& value) {
313 m_failureReasonsHasBeenSet = true;
314 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
315 return *this;
316 }
318
320
324 inline const Aws::Vector<IngestionAlert>& GetActiveAlerts() const { return m_activeAlerts; }
325 inline bool ActiveAlertsHasBeenSet() const { return m_activeAlertsHasBeenSet; }
326 template <typename ActiveAlertsT = Aws::Vector<IngestionAlert>>
327 void SetActiveAlerts(ActiveAlertsT&& value) {
328 m_activeAlertsHasBeenSet = true;
329 m_activeAlerts = std::forward<ActiveAlertsT>(value);
330 }
331 template <typename ActiveAlertsT = Aws::Vector<IngestionAlert>>
332 IngestionStreamDetail& WithActiveAlerts(ActiveAlertsT&& value) {
333 SetActiveAlerts(std::forward<ActiveAlertsT>(value));
334 return *this;
335 }
336 template <typename ActiveAlertsT = IngestionAlert>
337 IngestionStreamDetail& AddActiveAlerts(ActiveAlertsT&& value) {
338 m_activeAlertsHasBeenSet = true;
339 m_activeAlerts.emplace_back(std::forward<ActiveAlertsT>(value));
340 return *this;
341 }
343 private:
344 Aws::String m_ingestionStreamId;
345
346 Aws::String m_arn;
347
348 Aws::String m_collectionId;
349
350 Aws::String m_ingestionStreamName;
351
352 Aws::String m_indexName;
353
354 Aws::String m_failureIndexName;
355
356 IngestionStreamSource m_source;
357
358 Aws::String m_roleArn;
359
361
363
364 IngestionStatistics m_statistics;
365
366 long long m_revision{0};
367
368 Aws::Utils::DateTime m_createdAt{};
369
370 Aws::Utils::DateTime m_updatedAt{};
371
373
374 Aws::Vector<IngestionAlert> m_activeAlerts;
375 bool m_ingestionStreamIdHasBeenSet = false;
376 bool m_arnHasBeenSet = false;
377 bool m_collectionIdHasBeenSet = false;
378 bool m_ingestionStreamNameHasBeenSet = false;
379 bool m_indexNameHasBeenSet = false;
380 bool m_failureIndexNameHasBeenSet = false;
381 bool m_sourceHasBeenSet = false;
382 bool m_roleArnHasBeenSet = false;
383 bool m_statusHasBeenSet = false;
384 bool m_stateHasBeenSet = false;
385 bool m_statisticsHasBeenSet = false;
386 bool m_revisionHasBeenSet = false;
387 bool m_createdAtHasBeenSet = false;
388 bool m_updatedAtHasBeenSet = false;
389 bool m_failureReasonsHasBeenSet = false;
390 bool m_activeAlertsHasBeenSet = false;
391};
392
393} // namespace Model
394} // namespace OpenSearchServerless
395} // namespace Aws
const Aws::Vector< IngestionFailureReason > & GetFailureReasons() const
IngestionStreamDetail & WithIngestionStreamId(IngestionStreamIdT &&value)
IngestionStreamDetail & WithUpdatedAt(UpdatedAtT &&value)
IngestionStreamDetail & AddFailureReasons(FailureReasonsT &&value)
IngestionStreamDetail & WithStatistics(StatisticsT &&value)
IngestionStreamDetail & WithIndexName(IndexNameT &&value)
IngestionStreamDetail & WithState(IngestionState value)
IngestionStreamDetail & WithCollectionId(CollectionIdT &&value)
IngestionStreamDetail & WithFailureIndexName(FailureIndexNameT &&value)
AWS_OPENSEARCHSERVERLESS_API IngestionStreamDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API IngestionStreamDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
IngestionStreamDetail & WithFailureReasons(FailureReasonsT &&value)
IngestionStreamDetail & WithRevision(long long value)
IngestionStreamDetail & WithActiveAlerts(ActiveAlertsT &&value)
IngestionStreamDetail & WithStatus(IngestionStreamStatus value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
IngestionStreamDetail & WithCreatedAt(CreatedAtT &&value)
AWS_OPENSEARCHSERVERLESS_API IngestionStreamDetail()=default
IngestionStreamDetail & AddActiveAlerts(ActiveAlertsT &&value)
const Aws::Vector< IngestionAlert > & GetActiveAlerts() const
IngestionStreamDetail & WithIngestionStreamName(IngestionStreamNameT &&value)
IngestionStreamDetail & WithRoleArn(RoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue