/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DevOpsGuru { namespace Model { /** *

Details about a reactive anomaly. This object is returned by * DescribeAnomaly.

See Also:

AWS * API Reference

*/ class ReactiveAnomalySummary { public: AWS_DEVOPSGURU_API ReactiveAnomalySummary(); AWS_DEVOPSGURU_API ReactiveAnomalySummary(Aws::Utils::Json::JsonView jsonValue); AWS_DEVOPSGURU_API ReactiveAnomalySummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 ReactiveAnomalySummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the reactive anomaly.

*/ inline ReactiveAnomalySummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the reactive anomaly.

*/ inline ReactiveAnomalySummary& 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 ReactiveAnomalySummary& 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 ReactiveAnomalySummary& WithSeverity(AnomalySeverity&& value) { SetSeverity(std::move(value)); return *this;} /** *

The status of the reactive anomaly.

*/ inline const AnomalyStatus& GetStatus() const{ return m_status; } /** *

The status of the reactive anomaly.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the reactive anomaly.

*/ inline void SetStatus(const AnomalyStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the reactive anomaly.

*/ inline void SetStatus(AnomalyStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the reactive anomaly.

*/ inline ReactiveAnomalySummary& WithStatus(const AnomalyStatus& value) { SetStatus(value); return *this;} /** *

The status of the reactive anomaly.

*/ inline ReactiveAnomalySummary& 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 ReactiveAnomalySummary& WithAnomalyTimeRange(const AnomalyTimeRange& value) { SetAnomalyTimeRange(value); return *this;} inline ReactiveAnomalySummary& 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.

*/ inline const AnomalyReportedTimeRange& GetAnomalyReportedTimeRange() const{ return m_anomalyReportedTimeRange; } /** *

An AnomalyReportedTimeRange object that specifies the time * range between when the anomaly is opened and the time when it is closed.

*/ inline bool AnomalyReportedTimeRangeHasBeenSet() const { return m_anomalyReportedTimeRangeHasBeenSet; } /** *

An AnomalyReportedTimeRange object that specifies the time * range between when the anomaly is opened and the time when it is closed.

*/ inline void SetAnomalyReportedTimeRange(const AnomalyReportedTimeRange& value) { m_anomalyReportedTimeRangeHasBeenSet = true; m_anomalyReportedTimeRange = value; } /** *

An AnomalyReportedTimeRange object that specifies the time * range between when the anomaly is opened and the time when it is closed.

*/ inline void SetAnomalyReportedTimeRange(AnomalyReportedTimeRange&& value) { m_anomalyReportedTimeRangeHasBeenSet = true; m_anomalyReportedTimeRange = std::move(value); } /** *

An AnomalyReportedTimeRange object that specifies the time * range between when the anomaly is opened and the time when it is closed.

*/ inline ReactiveAnomalySummary& WithAnomalyReportedTimeRange(const AnomalyReportedTimeRange& value) { SetAnomalyReportedTimeRange(value); return *this;} /** *

An AnomalyReportedTimeRange object that specifies the time * range between when the anomaly is opened and the time when it is closed.

*/ inline ReactiveAnomalySummary& WithAnomalyReportedTimeRange(AnomalyReportedTimeRange&& value) { SetAnomalyReportedTimeRange(std::move(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 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 ReactiveAnomalySummary& 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 ReactiveAnomalySummary& 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 ReactiveAnomalySummary& 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 ReactiveAnomalySummary& 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 ReactiveAnomalySummary& 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 ReactiveAnomalySummary& WithResourceCollection(const ResourceCollection& value) { SetResourceCollection(value); return *this;} inline ReactiveAnomalySummary& 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.

*/ inline const AnomalyType& GetType() const{ return m_type; } /** *

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.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

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.

*/ inline void SetType(const AnomalyType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

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.

*/ inline void SetType(AnomalyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

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.

*/ inline ReactiveAnomalySummary& WithType(const AnomalyType& value) { SetType(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.

*/ inline ReactiveAnomalySummary& WithType(AnomalyType&& value) { SetType(std::move(value)); return *this;} /** *

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 ReactiveAnomalySummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the reactive anomaly.

*/ inline ReactiveAnomalySummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the reactive anomaly.

*/ inline ReactiveAnomalySummary& 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 ReactiveAnomalySummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the reactive anomaly.

*/ inline ReactiveAnomalySummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the reactive anomaly.

*/ inline ReactiveAnomalySummary& 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 ReactiveAnomalySummary& 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 ReactiveAnomalySummary& 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 ReactiveAnomalySummary& 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::Vector& GetAnomalyResources() const{ return m_anomalyResources; } /** *

The 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::Vector& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources = value; } /** *

The Amazon Web Services resources in which anomalous behavior was detected by * DevOps Guru.

*/ inline void SetAnomalyResources(Aws::Vector&& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources = std::move(value); } /** *

The Amazon Web Services resources in which anomalous behavior was detected by * DevOps Guru.

*/ inline ReactiveAnomalySummary& WithAnomalyResources(const Aws::Vector& value) { SetAnomalyResources(value); return *this;} /** *

The Amazon Web Services resources in which anomalous behavior was detected by * DevOps Guru.

*/ inline ReactiveAnomalySummary& WithAnomalyResources(Aws::Vector&& value) { SetAnomalyResources(std::move(value)); return *this;} /** *

The Amazon Web Services resources in which anomalous behavior was detected by * DevOps Guru.

*/ inline ReactiveAnomalySummary& 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 ReactiveAnomalySummary& 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 m_anomalyResources; bool m_anomalyResourcesHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws