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

Information about an anomaly that is related to a recommendation. *

See Also:

AWS * API Reference

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

An array of objects that represent resources in which DevOps Guru detected * anomalous behavior. Each object contains the name and type of the resource.

*/ inline const Aws::Vector& GetResources() const{ return m_resources; } /** *

An array of objects that represent resources in which DevOps Guru detected * anomalous behavior. Each object contains the name and type of the resource.

*/ inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } /** *

An array of objects that represent resources in which DevOps Guru detected * anomalous behavior. Each object contains the name and type of the resource.

*/ inline void SetResources(const Aws::Vector& value) { m_resourcesHasBeenSet = true; m_resources = value; } /** *

An array of objects that represent resources in which DevOps Guru detected * anomalous behavior. Each object contains the name and type of the resource.

*/ inline void SetResources(Aws::Vector&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } /** *

An array of objects that represent resources in which DevOps Guru detected * anomalous behavior. Each object contains the name and type of the resource.

*/ inline RecommendationRelatedAnomaly& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} /** *

An array of objects that represent resources in which DevOps Guru detected * anomalous behavior. Each object contains the name and type of the resource.

*/ inline RecommendationRelatedAnomaly& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} /** *

An array of objects that represent resources in which DevOps Guru detected * anomalous behavior. Each object contains the name and type of the resource.

*/ inline RecommendationRelatedAnomaly& AddResources(const RecommendationRelatedAnomalyResource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

An array of objects that represent resources in which DevOps Guru detected * anomalous behavior. Each object contains the name and type of the resource.

*/ inline RecommendationRelatedAnomaly& AddResources(RecommendationRelatedAnomalyResource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } /** *

Information about where the anomalous behavior related the recommendation * was found. For example, details in Amazon CloudWatch metrics.

*/ inline const Aws::Vector& GetSourceDetails() const{ return m_sourceDetails; } /** *

Information about where the anomalous behavior related the recommendation * was found. For example, details in Amazon CloudWatch metrics.

*/ inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; } /** *

Information about where the anomalous behavior related the recommendation * was found. For example, details in Amazon CloudWatch metrics.

*/ inline void SetSourceDetails(const Aws::Vector& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = value; } /** *

Information about where the anomalous behavior related the recommendation * was found. For example, details in Amazon CloudWatch metrics.

*/ inline void SetSourceDetails(Aws::Vector&& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = std::move(value); } /** *

Information about where the anomalous behavior related the recommendation * was found. For example, details in Amazon CloudWatch metrics.

*/ inline RecommendationRelatedAnomaly& WithSourceDetails(const Aws::Vector& value) { SetSourceDetails(value); return *this;} /** *

Information about where the anomalous behavior related the recommendation * was found. For example, details in Amazon CloudWatch metrics.

*/ inline RecommendationRelatedAnomaly& WithSourceDetails(Aws::Vector&& value) { SetSourceDetails(std::move(value)); return *this;} /** *

Information about where the anomalous behavior related the recommendation * was found. For example, details in Amazon CloudWatch metrics.

*/ inline RecommendationRelatedAnomaly& AddSourceDetails(const RecommendationRelatedAnomalySourceDetail& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails.push_back(value); return *this; } /** *

Information about where the anomalous behavior related the recommendation * was found. For example, details in Amazon CloudWatch metrics.

*/ inline RecommendationRelatedAnomaly& AddSourceDetails(RecommendationRelatedAnomalySourceDetail&& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails.push_back(std::move(value)); return *this; } /** *

The ID of an anomaly that generated the insight with this recommendation.

*/ inline const Aws::String& GetAnomalyId() const{ return m_anomalyId; } /** *

The ID of an anomaly that generated the insight with this recommendation.

*/ inline bool AnomalyIdHasBeenSet() const { return m_anomalyIdHasBeenSet; } /** *

The ID of an anomaly that generated the insight with this recommendation.

*/ inline void SetAnomalyId(const Aws::String& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = value; } /** *

The ID of an anomaly that generated the insight with this recommendation.

*/ inline void SetAnomalyId(Aws::String&& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = std::move(value); } /** *

The ID of an anomaly that generated the insight with this recommendation.

*/ inline void SetAnomalyId(const char* value) { m_anomalyIdHasBeenSet = true; m_anomalyId.assign(value); } /** *

The ID of an anomaly that generated the insight with this recommendation.

*/ inline RecommendationRelatedAnomaly& WithAnomalyId(const Aws::String& value) { SetAnomalyId(value); return *this;} /** *

The ID of an anomaly that generated the insight with this recommendation.

*/ inline RecommendationRelatedAnomaly& WithAnomalyId(Aws::String&& value) { SetAnomalyId(std::move(value)); return *this;} /** *

The ID of an anomaly that generated the insight with this recommendation.

*/ inline RecommendationRelatedAnomaly& WithAnomalyId(const char* value) { SetAnomalyId(value); return *this;} private: Aws::Vector m_resources; bool m_resourcesHasBeenSet = false; Aws::Vector m_sourceDetails; bool m_sourceDetailsHasBeenSet = false; Aws::String m_anomalyId; bool m_anomalyIdHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws