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>
27namespace OpenSearchServerless {
48 template <
typename IngestionStreamIdT = Aws::String>
50 m_ingestionStreamIdHasBeenSet =
true;
51 m_ingestionStreamId = std::forward<IngestionStreamIdT>(value);
53 template <
typename IngestionStreamIdT = Aws::String>
66 template <
typename ArnT = Aws::String>
68 m_arnHasBeenSet =
true;
69 m_arn = std::forward<ArnT>(value);
71 template <
typename ArnT = Aws::String>
73 SetArn(std::forward<ArnT>(value));
85 template <
typename CollectionIdT = Aws::String>
87 m_collectionIdHasBeenSet =
true;
88 m_collectionId = std::forward<CollectionIdT>(value);
90 template <
typename CollectionIdT = Aws::String>
103 template <
typename IngestionStreamNameT = Aws::String>
105 m_ingestionStreamNameHasBeenSet =
true;
106 m_ingestionStreamName = std::forward<IngestionStreamNameT>(value);
108 template <
typename IngestionStreamNameT = Aws::String>
121 template <
typename IndexNameT = Aws::String>
123 m_indexNameHasBeenSet =
true;
124 m_indexName = std::forward<IndexNameT>(value);
126 template <
typename IndexNameT = Aws::String>
140 template <
typename FailureIndexNameT = Aws::String>
142 m_failureIndexNameHasBeenSet =
true;
143 m_failureIndexName = std::forward<FailureIndexNameT>(value);
145 template <
typename FailureIndexNameT = Aws::String>
158 template <
typename SourceT = IngestionStreamSource>
160 m_sourceHasBeenSet =
true;
161 m_source = std::forward<SourceT>(value);
163 template <
typename SourceT = IngestionStreamSource>
177 template <
typename RoleArnT = Aws::String>
179 m_roleArnHasBeenSet =
true;
180 m_roleArn = std::forward<RoleArnT>(value);
182 template <
typename RoleArnT = Aws::String>
197 m_statusHasBeenSet =
true;
214 m_stateHasBeenSet =
true;
230 template <
typename StatisticsT = IngestionStatistics>
232 m_statisticsHasBeenSet =
true;
233 m_statistics = std::forward<StatisticsT>(value);
235 template <
typename StatisticsT = IngestionStatistics>
249 m_revisionHasBeenSet =
true;
264 template <
typename CreatedAtT = Aws::Utils::DateTime>
266 m_createdAtHasBeenSet =
true;
267 m_createdAt = std::forward<CreatedAtT>(value);
269 template <
typename CreatedAtT = Aws::Utils::DateTime>
282 template <
typename UpdatedAtT = Aws::Utils::DateTime>
284 m_updatedAtHasBeenSet =
true;
285 m_updatedAt = std::forward<UpdatedAtT>(value);
287 template <
typename UpdatedAtT = Aws::Utils::DateTime>
301 template <
typename FailureReasonsT = Aws::Vector<IngestionFailureReason>>
303 m_failureReasonsHasBeenSet =
true;
304 m_failureReasons = std::forward<FailureReasonsT>(value);
306 template <
typename FailureReasonsT = Aws::Vector<IngestionFailureReason>>
311 template <
typename FailureReasonsT = IngestionFailureReason>
313 m_failureReasonsHasBeenSet =
true;
314 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
326 template <
typename ActiveAlertsT = Aws::Vector<IngestionAlert>>
328 m_activeAlertsHasBeenSet =
true;
329 m_activeAlerts = std::forward<ActiveAlertsT>(value);
331 template <
typename ActiveAlertsT = Aws::Vector<IngestionAlert>>
336 template <
typename ActiveAlertsT = IngestionAlert>
338 m_activeAlertsHasBeenSet =
true;
339 m_activeAlerts.emplace_back(std::forward<ActiveAlertsT>(value));
364 IngestionStatistics m_statistics;
366 long long m_revision{0};
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;
const Aws::Vector< IngestionFailureReason > & GetFailureReasons() const
const IngestionStreamSource & GetSource() const
void SetIngestionStreamId(IngestionStreamIdT &&value)
IngestionStreamDetail & WithArn(ArnT &&value)
const Aws::String & GetArn() const
void SetUpdatedAt(UpdatedAtT &&value)
IngestionStreamDetail & WithIngestionStreamId(IngestionStreamIdT &&value)
bool IngestionStreamIdHasBeenSet() const
const Aws::String & GetIndexName() const
const Aws::String & GetCollectionId() const
IngestionStreamDetail & WithUpdatedAt(UpdatedAtT &&value)
long long GetRevision() const
IngestionStreamDetail & WithSource(SourceT &&value)
bool RoleArnHasBeenSet() const
bool ArnHasBeenSet() const
IngestionStreamDetail & AddFailureReasons(FailureReasonsT &&value)
IngestionStreamDetail & WithStatistics(StatisticsT &&value)
void SetArn(ArnT &&value)
IngestionStreamDetail & WithIndexName(IndexNameT &&value)
IngestionStreamDetail & WithState(IngestionState value)
IngestionStreamDetail & WithCollectionId(CollectionIdT &&value)
const Aws::String & GetIngestionStreamName() const
void SetFailureReasons(FailureReasonsT &&value)
IngestionStreamDetail & WithFailureIndexName(FailureIndexNameT &&value)
AWS_OPENSEARCHSERVERLESS_API IngestionStreamDetail(Aws::Utils::Json::JsonView jsonValue)
void SetRevision(long long value)
const Aws::String & GetFailureIndexName() const
AWS_OPENSEARCHSERVERLESS_API IngestionStreamDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
IngestionStreamDetail & WithFailureReasons(FailureReasonsT &&value)
void SetIndexName(IndexNameT &&value)
const Aws::String & GetRoleArn() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetIngestionStreamId() const
bool ActiveAlertsHasBeenSet() const
IngestionStreamDetail & WithRevision(long long value)
void SetSource(SourceT &&value)
IngestionStreamDetail & WithActiveAlerts(ActiveAlertsT &&value)
bool CollectionIdHasBeenSet() const
bool IngestionStreamNameHasBeenSet() const
bool SourceHasBeenSet() const
IngestionStreamDetail & WithStatus(IngestionStreamStatus value)
void SetCreatedAt(CreatedAtT &&value)
void SetRoleArn(RoleArnT &&value)
void SetState(IngestionState value)
bool UpdatedAtHasBeenSet() const
void SetActiveAlerts(ActiveAlertsT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
IngestionStreamStatus GetStatus() const
bool StatusHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetFailureIndexName(FailureIndexNameT &&value)
IngestionStreamDetail & WithCreatedAt(CreatedAtT &&value)
void SetStatistics(StatisticsT &&value)
AWS_OPENSEARCHSERVERLESS_API IngestionStreamDetail()=default
bool RevisionHasBeenSet() const
IngestionState GetState() const
void SetCollectionId(CollectionIdT &&value)
IngestionStreamDetail & AddActiveAlerts(ActiveAlertsT &&value)
bool StateHasBeenSet() const
const Aws::Vector< IngestionAlert > & GetActiveAlerts() const
const IngestionStatistics & GetStatistics() const
IngestionStreamDetail & WithIngestionStreamName(IngestionStreamNameT &&value)
bool CreatedAtHasBeenSet() const
bool FailureIndexNameHasBeenSet() const
bool IndexNameHasBeenSet() const
bool StatisticsHasBeenSet() const
bool FailureReasonsHasBeenSet() const
void SetIngestionStreamName(IngestionStreamNameT &&value)
void SetStatus(IngestionStreamStatus 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