/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an anomaly that is related to a recommendation.
* See Also:
AWS
* API Reference
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::VectorAn 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::VectorAn 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::VectorAn 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::VectorAn 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::VectorAn 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::VectorInformation 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::VectorInformation about where the anomalous behavior related the recommendation * was found. For example, details in Amazon CloudWatch metrics.
*/ inline void SetSourceDetails(Aws::VectorInformation about where the anomalous behavior related the recommendation * was found. For example, details in Amazon CloudWatch metrics.
*/ inline RecommendationRelatedAnomaly& WithSourceDetails(const Aws::VectorInformation about where the anomalous behavior related the recommendation * was found. For example, details in Amazon CloudWatch metrics.
*/ inline RecommendationRelatedAnomaly& WithSourceDetails(Aws::VectorInformation 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