7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
10#include <aws/devops-guru/model/AnomalyReportedTimeRange.h>
11#include <aws/devops-guru/model/AnomalyResource.h>
12#include <aws/devops-guru/model/AnomalySeverity.h>
13#include <aws/devops-guru/model/AnomalySourceDetails.h>
14#include <aws/devops-guru/model/AnomalyStatus.h>
15#include <aws/devops-guru/model/AnomalyTimeRange.h>
16#include <aws/devops-guru/model/AnomalyType.h>
17#include <aws/devops-guru/model/ResourceCollection.h>
50 template <
typename IdT = Aws::String>
52 m_idHasBeenSet =
true;
53 m_id = std::forward<IdT>(value);
55 template <
typename IdT = Aws::String>
57 SetId(std::forward<IdT>(value));
72 m_severityHasBeenSet =
true;
88 m_statusHasBeenSet =
true;
101 template <
typename AnomalyTimeRangeT = AnomalyTimeRange>
103 m_anomalyTimeRangeHasBeenSet =
true;
104 m_anomalyTimeRange = std::forward<AnomalyTimeRangeT>(value);
106 template <
typename AnomalyTimeRangeT = AnomalyTimeRange>
120 template <
typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
122 m_anomalyReportedTimeRangeHasBeenSet =
true;
123 m_anomalyReportedTimeRange = std::forward<AnomalyReportedTimeRangeT>(value);
125 template <
typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
139 template <
typename SourceDetailsT = AnomalySourceDetails>
141 m_sourceDetailsHasBeenSet =
true;
142 m_sourceDetails = std::forward<SourceDetailsT>(value);
144 template <
typename SourceDetailsT = AnomalySourceDetails>
158 template <
typename AssociatedInsightIdT = Aws::String>
160 m_associatedInsightIdHasBeenSet =
true;
161 m_associatedInsightId = std::forward<AssociatedInsightIdT>(value);
163 template <
typename AssociatedInsightIdT = Aws::String>
174 template <
typename ResourceCollectionT = ResourceCollection>
176 m_resourceCollectionHasBeenSet =
true;
177 m_resourceCollection = std::forward<ResourceCollectionT>(value);
179 template <
typename ResourceCollectionT = ResourceCollection>
196 m_typeHasBeenSet =
true;
211 template <
typename NameT = Aws::String>
213 m_nameHasBeenSet =
true;
214 m_name = std::forward<NameT>(value);
216 template <
typename NameT = Aws::String>
218 SetName(std::forward<NameT>(value));
229 template <
typename DescriptionT = Aws::String>
231 m_descriptionHasBeenSet =
true;
232 m_description = std::forward<DescriptionT>(value);
234 template <
typename DescriptionT = Aws::String>
248 template <
typename CausalAnomalyIdT = Aws::String>
250 m_causalAnomalyIdHasBeenSet =
true;
251 m_causalAnomalyId = std::forward<CausalAnomalyIdT>(value);
253 template <
typename CausalAnomalyIdT = Aws::String>
267 template <
typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
269 m_anomalyResourcesHasBeenSet =
true;
270 m_anomalyResources = std::forward<AnomalyResourcesT>(value);
272 template <
typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
277 template <
typename AnomalyResourcesT = AnomalyResource>
279 m_anomalyResourcesHasBeenSet =
true;
280 m_anomalyResources.emplace_back(std::forward<AnomalyResourcesT>(value));
291 AnomalyTimeRange m_anomalyTimeRange;
293 AnomalyReportedTimeRange m_anomalyReportedTimeRange;
295 AnomalySourceDetails m_sourceDetails;
299 ResourceCollection m_resourceCollection;
310 bool m_idHasBeenSet =
false;
311 bool m_severityHasBeenSet =
false;
312 bool m_statusHasBeenSet =
false;
313 bool m_anomalyTimeRangeHasBeenSet =
false;
314 bool m_anomalyReportedTimeRangeHasBeenSet =
false;
315 bool m_sourceDetailsHasBeenSet =
false;
316 bool m_associatedInsightIdHasBeenSet =
false;
317 bool m_resourceCollectionHasBeenSet =
false;
318 bool m_typeHasBeenSet =
false;
319 bool m_nameHasBeenSet =
false;
320 bool m_descriptionHasBeenSet =
false;
321 bool m_causalAnomalyIdHasBeenSet =
false;
322 bool m_anomalyResourcesHasBeenSet =
false;
ReactiveAnomaly & WithResourceCollection(ResourceCollectionT &&value)
bool AssociatedInsightIdHasBeenSet() const
ReactiveAnomaly & WithSeverity(AnomalySeverity value)
void SetAssociatedInsightId(AssociatedInsightIdT &&value)
bool NameHasBeenSet() const
bool AnomalyTimeRangeHasBeenSet() const
const Aws::Vector< AnomalyResource > & GetAnomalyResources() const
void SetAnomalyReportedTimeRange(AnomalyReportedTimeRangeT &&value)
ReactiveAnomaly & WithDescription(DescriptionT &&value)
bool CausalAnomalyIdHasBeenSet() const
ReactiveAnomaly & WithId(IdT &&value)
AnomalyStatus GetStatus() const
void SetType(AnomalyType value)
const AnomalyTimeRange & GetAnomalyTimeRange() const
bool TypeHasBeenSet() const
bool SeverityHasBeenSet() const
void SetStatus(AnomalyStatus value)
ReactiveAnomaly & WithName(NameT &&value)
const ResourceCollection & GetResourceCollection() const
void SetCausalAnomalyId(CausalAnomalyIdT &&value)
void SetDescription(DescriptionT &&value)
bool AnomalyResourcesHasBeenSet() const
void SetResourceCollection(ResourceCollectionT &&value)
ReactiveAnomaly & WithAnomalyReportedTimeRange(AnomalyReportedTimeRangeT &&value)
const AnomalySourceDetails & GetSourceDetails() const
bool DescriptionHasBeenSet() const
ReactiveAnomaly & WithType(AnomalyType value)
bool AnomalyReportedTimeRangeHasBeenSet() const
ReactiveAnomaly & WithAnomalyTimeRange(AnomalyTimeRangeT &&value)
void SetAnomalyResources(AnomalyResourcesT &&value)
void SetSeverity(AnomalySeverity value)
ReactiveAnomaly & WithCausalAnomalyId(CausalAnomalyIdT &&value)
AWS_DEVOPSGURU_API ReactiveAnomaly()=default
const Aws::String & GetName() const
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
bool StatusHasBeenSet() const
void SetName(NameT &&value)
AnomalyType GetType() const
ReactiveAnomaly & WithSourceDetails(SourceDetailsT &&value)
void SetAnomalyTimeRange(AnomalyTimeRangeT &&value)
const AnomalyReportedTimeRange & GetAnomalyReportedTimeRange() const
const Aws::String & GetAssociatedInsightId() const
bool ResourceCollectionHasBeenSet() const
bool IdHasBeenSet() const
ReactiveAnomaly & AddAnomalyResources(AnomalyResourcesT &&value)
ReactiveAnomaly & WithStatus(AnomalyStatus value)
const Aws::String & GetId() const
const Aws::String & GetCausalAnomalyId() const
AWS_DEVOPSGURU_API ReactiveAnomaly(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API ReactiveAnomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
AnomalySeverity GetSeverity() const
ReactiveAnomaly & WithAnomalyResources(AnomalyResourcesT &&value)
void SetSourceDetails(SourceDetailsT &&value)
const Aws::String & GetDescription() const
bool SourceDetailsHasBeenSet() const
ReactiveAnomaly & WithAssociatedInsightId(AssociatedInsightIdT &&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