/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about a reactive anomaly. This object is returned by
* ListAnomalies
.See Also:
AWS
* API Reference
The ID of the reactive anomaly.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID of the reactive anomaly.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID of the reactive anomaly.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID of the reactive anomaly.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID of the reactive anomaly.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID of the reactive anomaly.
*/ inline ReactiveAnomaly& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID of the reactive anomaly.
*/ inline ReactiveAnomaly& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID of the reactive anomaly.
*/ inline ReactiveAnomaly& WithId(const char* value) { SetId(value); return *this;} /** *The severity of the anomaly. The severity of anomalies that generate an * insight determine that insight's severity. For more information, see Understanding * insight severities in the Amazon DevOps Guru User Guide.
*/ inline const AnomalySeverity& GetSeverity() const{ return m_severity; } /** *The severity of the anomaly. The severity of anomalies that generate an * insight determine that insight's severity. For more information, see Understanding * insight severities in the Amazon DevOps Guru User Guide.
*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *The severity of the anomaly. The severity of anomalies that generate an * insight determine that insight's severity. For more information, see Understanding * insight severities in the Amazon DevOps Guru User Guide.
*/ inline void SetSeverity(const AnomalySeverity& value) { m_severityHasBeenSet = true; m_severity = value; } /** *The severity of the anomaly. The severity of anomalies that generate an * insight determine that insight's severity. For more information, see Understanding * insight severities in the Amazon DevOps Guru User Guide.
*/ inline void SetSeverity(AnomalySeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } /** *The severity of the anomaly. The severity of anomalies that generate an * insight determine that insight's severity. For more information, see Understanding * insight severities in the Amazon DevOps Guru User Guide.
*/ inline ReactiveAnomaly& WithSeverity(const AnomalySeverity& value) { SetSeverity(value); return *this;} /** *The severity of the anomaly. The severity of anomalies that generate an * insight determine that insight's severity. For more information, see Understanding * insight severities in the Amazon DevOps Guru User Guide.
*/ inline ReactiveAnomaly& WithSeverity(AnomalySeverity&& value) { SetSeverity(std::move(value)); return *this;} /** *The status of the anomaly.
*/ inline const AnomalyStatus& GetStatus() const{ return m_status; } /** *The status of the anomaly.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the anomaly.
*/ inline void SetStatus(const AnomalyStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the anomaly.
*/ inline void SetStatus(AnomalyStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the anomaly.
*/ inline ReactiveAnomaly& WithStatus(const AnomalyStatus& value) { SetStatus(value); return *this;} /** *The status of the anomaly.
*/ inline ReactiveAnomaly& WithStatus(AnomalyStatus&& value) { SetStatus(std::move(value)); return *this;} inline const AnomalyTimeRange& GetAnomalyTimeRange() const{ return m_anomalyTimeRange; } inline bool AnomalyTimeRangeHasBeenSet() const { return m_anomalyTimeRangeHasBeenSet; } inline void SetAnomalyTimeRange(const AnomalyTimeRange& value) { m_anomalyTimeRangeHasBeenSet = true; m_anomalyTimeRange = value; } inline void SetAnomalyTimeRange(AnomalyTimeRange&& value) { m_anomalyTimeRangeHasBeenSet = true; m_anomalyTimeRange = std::move(value); } inline ReactiveAnomaly& WithAnomalyTimeRange(const AnomalyTimeRange& value) { SetAnomalyTimeRange(value); return *this;} inline ReactiveAnomaly& WithAnomalyTimeRange(AnomalyTimeRange&& value) { SetAnomalyTimeRange(std::move(value)); return *this;} /** * An AnomalyReportedTimeRange
object that specifies the time
* range between when the anomaly is opened and the time when it is closed.
An AnomalyReportedTimeRange
object that specifies the time
* range between when the anomaly is opened and the time when it is closed.
An AnomalyReportedTimeRange
object that specifies the time
* range between when the anomaly is opened and the time when it is closed.
An AnomalyReportedTimeRange
object that specifies the time
* range between when the anomaly is opened and the time when it is closed.
An AnomalyReportedTimeRange
object that specifies the time
* range between when the anomaly is opened and the time when it is closed.
An AnomalyReportedTimeRange
object that specifies the time
* range between when the anomaly is opened and the time when it is closed.
Details about the source of the analyzed operational data that triggered the * anomaly. The one supported source is Amazon CloudWatch metrics.
*/ inline const AnomalySourceDetails& GetSourceDetails() const{ return m_sourceDetails; } /** *Details about the source of the analyzed operational data that triggered the * anomaly. The one supported source is Amazon CloudWatch metrics.
*/ inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; } /** *Details about the source of the analyzed operational data that triggered the * anomaly. The one supported source is Amazon CloudWatch metrics.
*/ inline void SetSourceDetails(const AnomalySourceDetails& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = value; } /** *Details about the source of the analyzed operational data that triggered the * anomaly. The one supported source is Amazon CloudWatch metrics.
*/ inline void SetSourceDetails(AnomalySourceDetails&& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = std::move(value); } /** *Details about the source of the analyzed operational data that triggered the * anomaly. The one supported source is Amazon CloudWatch metrics.
*/ inline ReactiveAnomaly& WithSourceDetails(const AnomalySourceDetails& value) { SetSourceDetails(value); return *this;} /** *Details about the source of the analyzed operational data that triggered the * anomaly. The one supported source is Amazon CloudWatch metrics.
*/ inline ReactiveAnomaly& WithSourceDetails(AnomalySourceDetails&& value) { SetSourceDetails(std::move(value)); return *this;} /** *The ID of the insight that contains this anomaly. An insight is composed of * related anomalies.
*/ inline const Aws::String& GetAssociatedInsightId() const{ return m_associatedInsightId; } /** *The ID of the insight that contains this anomaly. An insight is composed of * related anomalies.
*/ inline bool AssociatedInsightIdHasBeenSet() const { return m_associatedInsightIdHasBeenSet; } /** *The ID of the insight that contains this anomaly. An insight is composed of * related anomalies.
*/ inline void SetAssociatedInsightId(const Aws::String& value) { m_associatedInsightIdHasBeenSet = true; m_associatedInsightId = value; } /** *The ID of the insight that contains this anomaly. An insight is composed of * related anomalies.
*/ inline void SetAssociatedInsightId(Aws::String&& value) { m_associatedInsightIdHasBeenSet = true; m_associatedInsightId = std::move(value); } /** *The ID of the insight that contains this anomaly. An insight is composed of * related anomalies.
*/ inline void SetAssociatedInsightId(const char* value) { m_associatedInsightIdHasBeenSet = true; m_associatedInsightId.assign(value); } /** *The ID of the insight that contains this anomaly. An insight is composed of * related anomalies.
*/ inline ReactiveAnomaly& WithAssociatedInsightId(const Aws::String& value) { SetAssociatedInsightId(value); return *this;} /** *The ID of the insight that contains this anomaly. An insight is composed of * related anomalies.
*/ inline ReactiveAnomaly& WithAssociatedInsightId(Aws::String&& value) { SetAssociatedInsightId(std::move(value)); return *this;} /** *The ID of the insight that contains this anomaly. An insight is composed of * related anomalies.
*/ inline ReactiveAnomaly& WithAssociatedInsightId(const char* value) { SetAssociatedInsightId(value); return *this;} inline const ResourceCollection& GetResourceCollection() const{ return m_resourceCollection; } inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; } inline void SetResourceCollection(const ResourceCollection& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = value; } inline void SetResourceCollection(ResourceCollection&& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = std::move(value); } inline ReactiveAnomaly& WithResourceCollection(const ResourceCollection& value) { SetResourceCollection(value); return *this;} inline ReactiveAnomaly& WithResourceCollection(ResourceCollection&& value) { SetResourceCollection(std::move(value)); return *this;} /** *The type of the reactive anomaly. It can be one of the following types.
* CAUSAL
- the anomaly can cause a new insight.
CONTEXTUAL
- the anomaly contains additional
* information about an insight or its causal anomaly.
The type of the reactive anomaly. It can be one of the following types.
* CAUSAL
- the anomaly can cause a new insight.
CONTEXTUAL
- the anomaly contains additional
* information about an insight or its causal anomaly.
The type of the reactive anomaly. It can be one of the following types.
* CAUSAL
- the anomaly can cause a new insight.
CONTEXTUAL
- the anomaly contains additional
* information about an insight or its causal anomaly.
The type of the reactive anomaly. It can be one of the following types.
* CAUSAL
- the anomaly can cause a new insight.
CONTEXTUAL
- the anomaly contains additional
* information about an insight or its causal anomaly.
The type of the reactive anomaly. It can be one of the following types.
* CAUSAL
- the anomaly can cause a new insight.
CONTEXTUAL
- the anomaly contains additional
* information about an insight or its causal anomaly.
The type of the reactive anomaly. It can be one of the following types.
* CAUSAL
- the anomaly can cause a new insight.
CONTEXTUAL
- the anomaly contains additional
* information about an insight or its causal anomaly.
The name of the reactive anomaly.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the reactive anomaly.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the reactive anomaly.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the reactive anomaly.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the reactive anomaly.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the reactive anomaly.
*/ inline ReactiveAnomaly& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the reactive anomaly.
*/ inline ReactiveAnomaly& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the reactive anomaly.
*/ inline ReactiveAnomaly& WithName(const char* value) { SetName(value); return *this;} /** *A description of the reactive anomaly.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *A description of the reactive anomaly.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *A description of the reactive anomaly.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *A description of the reactive anomaly.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *A description of the reactive anomaly.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *A description of the reactive anomaly.
*/ inline ReactiveAnomaly& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description of the reactive anomaly.
*/ inline ReactiveAnomaly& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description of the reactive anomaly.
*/ inline ReactiveAnomaly& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The ID of the causal anomaly that is associated with this reactive anomaly. * The ID of a `CAUSAL` anomaly is always `NULL`.
*/ inline const Aws::String& GetCausalAnomalyId() const{ return m_causalAnomalyId; } /** *The ID of the causal anomaly that is associated with this reactive anomaly. * The ID of a `CAUSAL` anomaly is always `NULL`.
*/ inline bool CausalAnomalyIdHasBeenSet() const { return m_causalAnomalyIdHasBeenSet; } /** *The ID of the causal anomaly that is associated with this reactive anomaly. * The ID of a `CAUSAL` anomaly is always `NULL`.
*/ inline void SetCausalAnomalyId(const Aws::String& value) { m_causalAnomalyIdHasBeenSet = true; m_causalAnomalyId = value; } /** *The ID of the causal anomaly that is associated with this reactive anomaly. * The ID of a `CAUSAL` anomaly is always `NULL`.
*/ inline void SetCausalAnomalyId(Aws::String&& value) { m_causalAnomalyIdHasBeenSet = true; m_causalAnomalyId = std::move(value); } /** *The ID of the causal anomaly that is associated with this reactive anomaly. * The ID of a `CAUSAL` anomaly is always `NULL`.
*/ inline void SetCausalAnomalyId(const char* value) { m_causalAnomalyIdHasBeenSet = true; m_causalAnomalyId.assign(value); } /** *The ID of the causal anomaly that is associated with this reactive anomaly. * The ID of a `CAUSAL` anomaly is always `NULL`.
*/ inline ReactiveAnomaly& WithCausalAnomalyId(const Aws::String& value) { SetCausalAnomalyId(value); return *this;} /** *The ID of the causal anomaly that is associated with this reactive anomaly. * The ID of a `CAUSAL` anomaly is always `NULL`.
*/ inline ReactiveAnomaly& WithCausalAnomalyId(Aws::String&& value) { SetCausalAnomalyId(std::move(value)); return *this;} /** *The ID of the causal anomaly that is associated with this reactive anomaly. * The ID of a `CAUSAL` anomaly is always `NULL`.
*/ inline ReactiveAnomaly& WithCausalAnomalyId(const char* value) { SetCausalAnomalyId(value); return *this;} /** *The Amazon Web Services resources in which anomalous behavior was detected by * DevOps Guru.
*/ inline const Aws::VectorThe Amazon Web Services resources in which anomalous behavior was detected by * DevOps Guru.
*/ inline bool AnomalyResourcesHasBeenSet() const { return m_anomalyResourcesHasBeenSet; } /** *The Amazon Web Services resources in which anomalous behavior was detected by * DevOps Guru.
*/ inline void SetAnomalyResources(const Aws::VectorThe Amazon Web Services resources in which anomalous behavior was detected by * DevOps Guru.
*/ inline void SetAnomalyResources(Aws::VectorThe Amazon Web Services resources in which anomalous behavior was detected by * DevOps Guru.
*/ inline ReactiveAnomaly& WithAnomalyResources(const Aws::VectorThe Amazon Web Services resources in which anomalous behavior was detected by * DevOps Guru.
*/ inline ReactiveAnomaly& WithAnomalyResources(Aws::VectorThe Amazon Web Services resources in which anomalous behavior was detected by * DevOps Guru.
*/ inline ReactiveAnomaly& AddAnomalyResources(const AnomalyResource& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources.push_back(value); return *this; } /** *The Amazon Web Services resources in which anomalous behavior was detected by * DevOps Guru.
*/ inline ReactiveAnomaly& AddAnomalyResources(AnomalyResource&& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources.push_back(std::move(value)); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; AnomalySeverity m_severity; bool m_severityHasBeenSet = false; AnomalyStatus m_status; bool m_statusHasBeenSet = false; AnomalyTimeRange m_anomalyTimeRange; bool m_anomalyTimeRangeHasBeenSet = false; AnomalyReportedTimeRange m_anomalyReportedTimeRange; bool m_anomalyReportedTimeRangeHasBeenSet = false; AnomalySourceDetails m_sourceDetails; bool m_sourceDetailsHasBeenSet = false; Aws::String m_associatedInsightId; bool m_associatedInsightIdHasBeenSet = false; ResourceCollection m_resourceCollection; bool m_resourceCollectionHasBeenSet = false; AnomalyType m_type; bool m_typeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_causalAnomalyId; bool m_causalAnomalyIdHasBeenSet = false; Aws::Vector