7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-guru/model/AnomalySeverity.h>
10#include <aws/devops-guru/model/AnomalyStatus.h>
11#include <aws/devops-guru/model/AnomalyTimeRange.h>
12#include <aws/devops-guru/model/AnomalyReportedTimeRange.h>
13#include <aws/devops-guru/model/AnomalySourceDetails.h>
14#include <aws/devops-guru/model/ResourceCollection.h>
15#include <aws/devops-guru/model/AnomalyType.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/devops-guru/model/AnomalyResource.h>
56 template<
typename IdT = Aws::String>
57 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
58 template<
typename IdT = Aws::String>
89 template<
typename AnomalyTimeRangeT = AnomalyTimeRange>
90 void SetAnomalyTimeRange(AnomalyTimeRangeT&& value) { m_anomalyTimeRangeHasBeenSet =
true; m_anomalyTimeRange = std::forward<AnomalyTimeRangeT>(value); }
91 template<
typename AnomalyTimeRangeT = AnomalyTimeRange>
102 template<
typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
103 void SetAnomalyReportedTimeRange(AnomalyReportedTimeRangeT&& value) { m_anomalyReportedTimeRangeHasBeenSet =
true; m_anomalyReportedTimeRange = std::forward<AnomalyReportedTimeRangeT>(value); }
104 template<
typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
115 template<
typename SourceDetailsT = AnomalySourceDetails>
116 void SetSourceDetails(SourceDetailsT&& value) { m_sourceDetailsHasBeenSet =
true; m_sourceDetails = std::forward<SourceDetailsT>(value); }
117 template<
typename SourceDetailsT = AnomalySourceDetails>
128 template<
typename AssociatedInsightIdT = Aws::String>
129 void SetAssociatedInsightId(AssociatedInsightIdT&& value) { m_associatedInsightIdHasBeenSet =
true; m_associatedInsightId = std::forward<AssociatedInsightIdT>(value); }
130 template<
typename AssociatedInsightIdT = Aws::String>
138 template<
typename ResourceCollectionT = ResourceCollection>
139 void SetResourceCollection(ResourceCollectionT&& value) { m_resourceCollectionHasBeenSet =
true; m_resourceCollection = std::forward<ResourceCollectionT>(value); }
140 template<
typename ResourceCollectionT = ResourceCollection>
163 template<
typename NameT = Aws::String>
164 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
165 template<
typename NameT = Aws::String>
175 template<
typename DescriptionT = Aws::String>
176 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
177 template<
typename DescriptionT = Aws::String>
188 template<
typename CausalAnomalyIdT = Aws::String>
189 void SetCausalAnomalyId(CausalAnomalyIdT&& value) { m_causalAnomalyIdHasBeenSet =
true; m_causalAnomalyId = std::forward<CausalAnomalyIdT>(value); }
190 template<
typename CausalAnomalyIdT = Aws::String>
201 template<
typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
202 void SetAnomalyResources(AnomalyResourcesT&& value) { m_anomalyResourcesHasBeenSet =
true; m_anomalyResources = std::forward<AnomalyResourcesT>(value); }
203 template<
typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
205 template<
typename AnomalyResourcesT = AnomalyResource>
206 ReactiveAnomaly&
AddAnomalyResources(AnomalyResourcesT&& value) { m_anomalyResourcesHasBeenSet =
true; m_anomalyResources.emplace_back(std::forward<AnomalyResourcesT>(value));
return *
this; }
211 bool m_idHasBeenSet =
false;
214 bool m_severityHasBeenSet =
false;
217 bool m_statusHasBeenSet =
false;
219 AnomalyTimeRange m_anomalyTimeRange;
220 bool m_anomalyTimeRangeHasBeenSet =
false;
222 AnomalyReportedTimeRange m_anomalyReportedTimeRange;
223 bool m_anomalyReportedTimeRangeHasBeenSet =
false;
225 AnomalySourceDetails m_sourceDetails;
226 bool m_sourceDetailsHasBeenSet =
false;
229 bool m_associatedInsightIdHasBeenSet =
false;
231 ResourceCollection m_resourceCollection;
232 bool m_resourceCollectionHasBeenSet =
false;
235 bool m_typeHasBeenSet =
false;
238 bool m_nameHasBeenSet =
false;
241 bool m_descriptionHasBeenSet =
false;
244 bool m_causalAnomalyIdHasBeenSet =
false;
247 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