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/devops-guru/DevOpsGuru_EXPORTS.h>
11#include <aws/devops-guru/model/AnomalyReportedTimeRange.h>
12#include <aws/devops-guru/model/AnomalyResource.h>
13#include <aws/devops-guru/model/AnomalySeverity.h>
14#include <aws/devops-guru/model/AnomalySourceDetails.h>
15#include <aws/devops-guru/model/AnomalySourceMetadata.h>
16#include <aws/devops-guru/model/AnomalyStatus.h>
17#include <aws/devops-guru/model/AnomalyTimeRange.h>
18#include <aws/devops-guru/model/PredictionTimeRange.h>
19#include <aws/devops-guru/model/ResourceCollection.h>
52 template <
typename IdT = Aws::String>
54 m_idHasBeenSet =
true;
55 m_id = std::forward<IdT>(value);
57 template <
typename IdT = Aws::String>
59 SetId(std::forward<IdT>(value));
74 m_severityHasBeenSet =
true;
90 m_statusHasBeenSet =
true;
105 template <
typename UpdateTimeT = Aws::Utils::DateTime>
107 m_updateTimeHasBeenSet =
true;
108 m_updateTime = std::forward<UpdateTimeT>(value);
110 template <
typename UpdateTimeT = Aws::Utils::DateTime>
121 template <
typename AnomalyTimeRangeT = AnomalyTimeRange>
123 m_anomalyTimeRangeHasBeenSet =
true;
124 m_anomalyTimeRange = std::forward<AnomalyTimeRangeT>(value);
126 template <
typename AnomalyTimeRangeT = AnomalyTimeRange>
140 template <
typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
142 m_anomalyReportedTimeRangeHasBeenSet =
true;
143 m_anomalyReportedTimeRange = std::forward<AnomalyReportedTimeRangeT>(value);
145 template <
typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
156 template <
typename PredictionTimeRangeT = PredictionTimeRange>
158 m_predictionTimeRangeHasBeenSet =
true;
159 m_predictionTimeRange = std::forward<PredictionTimeRangeT>(value);
161 template <
typename PredictionTimeRangeT = PredictionTimeRange>
175 template <
typename SourceDetailsT = AnomalySourceDetails>
177 m_sourceDetailsHasBeenSet =
true;
178 m_sourceDetails = std::forward<SourceDetailsT>(value);
180 template <
typename SourceDetailsT = AnomalySourceDetails>
194 template <
typename AssociatedInsightIdT = Aws::String>
196 m_associatedInsightIdHasBeenSet =
true;
197 m_associatedInsightId = std::forward<AssociatedInsightIdT>(value);
199 template <
typename AssociatedInsightIdT = Aws::String>
210 template <
typename ResourceCollectionT = ResourceCollection>
212 m_resourceCollectionHasBeenSet =
true;
213 m_resourceCollection = std::forward<ResourceCollectionT>(value);
215 template <
typename ResourceCollectionT = ResourceCollection>
231 m_limitHasBeenSet =
true;
246 template <
typename SourceMetadataT = AnomalySourceMetadata>
248 m_sourceMetadataHasBeenSet =
true;
249 m_sourceMetadata = std::forward<SourceMetadataT>(value);
251 template <
typename SourceMetadataT = AnomalySourceMetadata>
265 template <
typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
267 m_anomalyResourcesHasBeenSet =
true;
268 m_anomalyResources = std::forward<AnomalyResourcesT>(value);
270 template <
typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
275 template <
typename AnomalyResourcesT = AnomalyResource>
277 m_anomalyResourcesHasBeenSet =
true;
278 m_anomalyResources.emplace_back(std::forward<AnomalyResourcesT>(value));
289 template <
typename DescriptionT = Aws::String>
291 m_descriptionHasBeenSet =
true;
292 m_description = std::forward<DescriptionT>(value);
294 template <
typename DescriptionT = Aws::String>
309 AnomalyTimeRange m_anomalyTimeRange;
311 AnomalyReportedTimeRange m_anomalyReportedTimeRange;
313 PredictionTimeRange m_predictionTimeRange;
315 AnomalySourceDetails m_sourceDetails;
319 ResourceCollection m_resourceCollection;
323 AnomalySourceMetadata m_sourceMetadata;
328 bool m_idHasBeenSet =
false;
329 bool m_severityHasBeenSet =
false;
330 bool m_statusHasBeenSet =
false;
331 bool m_updateTimeHasBeenSet =
false;
332 bool m_anomalyTimeRangeHasBeenSet =
false;
333 bool m_anomalyReportedTimeRangeHasBeenSet =
false;
334 bool m_predictionTimeRangeHasBeenSet =
false;
335 bool m_sourceDetailsHasBeenSet =
false;
336 bool m_associatedInsightIdHasBeenSet =
false;
337 bool m_resourceCollectionHasBeenSet =
false;
338 bool m_limitHasBeenSet =
false;
339 bool m_sourceMetadataHasBeenSet =
false;
340 bool m_anomalyResourcesHasBeenSet =
false;
341 bool m_descriptionHasBeenSet =
false;
bool StatusHasBeenSet() const
ProactiveAnomaly & WithAnomalyTimeRange(AnomalyTimeRangeT &&value)
void SetLimit(double value)
const Aws::String & GetDescription() const
const AnomalySourceDetails & GetSourceDetails() const
void SetSeverity(AnomalySeverity value)
const PredictionTimeRange & GetPredictionTimeRange() const
void SetDescription(DescriptionT &&value)
bool SeverityHasBeenSet() const
ProactiveAnomaly & WithDescription(DescriptionT &&value)
ProactiveAnomaly & WithSourceMetadata(SourceMetadataT &&value)
bool LimitHasBeenSet() const
void SetUpdateTime(UpdateTimeT &&value)
void SetPredictionTimeRange(PredictionTimeRangeT &&value)
bool IdHasBeenSet() const
ProactiveAnomaly & WithResourceCollection(ResourceCollectionT &&value)
void SetSourceDetails(SourceDetailsT &&value)
bool SourceDetailsHasBeenSet() const
const Aws::Utils::DateTime & GetUpdateTime() const
bool UpdateTimeHasBeenSet() const
ProactiveAnomaly & AddAnomalyResources(AnomalyResourcesT &&value)
ProactiveAnomaly & WithPredictionTimeRange(PredictionTimeRangeT &&value)
const AnomalyTimeRange & GetAnomalyTimeRange() const
bool AssociatedInsightIdHasBeenSet() const
AWS_DEVOPSGURU_API ProactiveAnomaly(Aws::Utils::Json::JsonView jsonValue)
ProactiveAnomaly & WithSourceDetails(SourceDetailsT &&value)
ProactiveAnomaly & WithSeverity(AnomalySeverity value)
const Aws::Vector< AnomalyResource > & GetAnomalyResources() const
AWS_DEVOPSGURU_API ProactiveAnomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAnomalyResources(AnomalyResourcesT &&value)
AWS_DEVOPSGURU_API ProactiveAnomaly()=default
const AnomalyReportedTimeRange & GetAnomalyReportedTimeRange() const
ProactiveAnomaly & WithAnomalyReportedTimeRange(AnomalyReportedTimeRangeT &&value)
AnomalyStatus GetStatus() const
AnomalySeverity GetSeverity() const
const AnomalySourceMetadata & GetSourceMetadata() const
void SetAnomalyTimeRange(AnomalyTimeRangeT &&value)
const Aws::String & GetAssociatedInsightId() const
void SetAssociatedInsightId(AssociatedInsightIdT &&value)
ProactiveAnomaly & WithLimit(double value)
const ResourceCollection & GetResourceCollection() const
bool ResourceCollectionHasBeenSet() const
void SetStatus(AnomalyStatus value)
ProactiveAnomaly & WithAssociatedInsightId(AssociatedInsightIdT &&value)
bool SourceMetadataHasBeenSet() const
ProactiveAnomaly & WithId(IdT &&value)
bool DescriptionHasBeenSet() const
bool AnomalyTimeRangeHasBeenSet() const
ProactiveAnomaly & WithUpdateTime(UpdateTimeT &&value)
ProactiveAnomaly & WithAnomalyResources(AnomalyResourcesT &&value)
bool AnomalyResourcesHasBeenSet() const
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceCollection(ResourceCollectionT &&value)
void SetSourceMetadata(SourceMetadataT &&value)
void SetAnomalyReportedTimeRange(AnomalyReportedTimeRangeT &&value)
bool AnomalyReportedTimeRangeHasBeenSet() const
bool PredictionTimeRangeHasBeenSet() const
const Aws::String & GetId() const
ProactiveAnomaly & WithStatus(AnomalyStatus 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