/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 the source of the anomalous operational data that triggered * the anomaly.

See Also:

AWS * API Reference

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

An array of CloudWatchMetricsDetail objects that contain * information about analyzed CloudWatch metrics that show anomalous behavior.

*/ inline const Aws::Vector& GetCloudWatchMetrics() const{ return m_cloudWatchMetrics; } /** *

An array of CloudWatchMetricsDetail objects that contain * information about analyzed CloudWatch metrics that show anomalous behavior.

*/ inline bool CloudWatchMetricsHasBeenSet() const { return m_cloudWatchMetricsHasBeenSet; } /** *

An array of CloudWatchMetricsDetail objects that contain * information about analyzed CloudWatch metrics that show anomalous behavior.

*/ inline void SetCloudWatchMetrics(const Aws::Vector& value) { m_cloudWatchMetricsHasBeenSet = true; m_cloudWatchMetrics = value; } /** *

An array of CloudWatchMetricsDetail objects that contain * information about analyzed CloudWatch metrics that show anomalous behavior.

*/ inline void SetCloudWatchMetrics(Aws::Vector&& value) { m_cloudWatchMetricsHasBeenSet = true; m_cloudWatchMetrics = std::move(value); } /** *

An array of CloudWatchMetricsDetail objects that contain * information about analyzed CloudWatch metrics that show anomalous behavior.

*/ inline AnomalySourceDetails& WithCloudWatchMetrics(const Aws::Vector& value) { SetCloudWatchMetrics(value); return *this;} /** *

An array of CloudWatchMetricsDetail objects that contain * information about analyzed CloudWatch metrics that show anomalous behavior.

*/ inline AnomalySourceDetails& WithCloudWatchMetrics(Aws::Vector&& value) { SetCloudWatchMetrics(std::move(value)); return *this;} /** *

An array of CloudWatchMetricsDetail objects that contain * information about analyzed CloudWatch metrics that show anomalous behavior.

*/ inline AnomalySourceDetails& AddCloudWatchMetrics(const CloudWatchMetricsDetail& value) { m_cloudWatchMetricsHasBeenSet = true; m_cloudWatchMetrics.push_back(value); return *this; } /** *

An array of CloudWatchMetricsDetail objects that contain * information about analyzed CloudWatch metrics that show anomalous behavior.

*/ inline AnomalySourceDetails& AddCloudWatchMetrics(CloudWatchMetricsDetail&& value) { m_cloudWatchMetricsHasBeenSet = true; m_cloudWatchMetrics.push_back(std::move(value)); return *this; } /** *

An array of PerformanceInsightsMetricsDetail objects that * contain information about analyzed Performance Insights metrics that show * anomalous behavior.

*/ inline const Aws::Vector& GetPerformanceInsightsMetrics() const{ return m_performanceInsightsMetrics; } /** *

An array of PerformanceInsightsMetricsDetail objects that * contain information about analyzed Performance Insights metrics that show * anomalous behavior.

*/ inline bool PerformanceInsightsMetricsHasBeenSet() const { return m_performanceInsightsMetricsHasBeenSet; } /** *

An array of PerformanceInsightsMetricsDetail objects that * contain information about analyzed Performance Insights metrics that show * anomalous behavior.

*/ inline void SetPerformanceInsightsMetrics(const Aws::Vector& value) { m_performanceInsightsMetricsHasBeenSet = true; m_performanceInsightsMetrics = value; } /** *

An array of PerformanceInsightsMetricsDetail objects that * contain information about analyzed Performance Insights metrics that show * anomalous behavior.

*/ inline void SetPerformanceInsightsMetrics(Aws::Vector&& value) { m_performanceInsightsMetricsHasBeenSet = true; m_performanceInsightsMetrics = std::move(value); } /** *

An array of PerformanceInsightsMetricsDetail objects that * contain information about analyzed Performance Insights metrics that show * anomalous behavior.

*/ inline AnomalySourceDetails& WithPerformanceInsightsMetrics(const Aws::Vector& value) { SetPerformanceInsightsMetrics(value); return *this;} /** *

An array of PerformanceInsightsMetricsDetail objects that * contain information about analyzed Performance Insights metrics that show * anomalous behavior.

*/ inline AnomalySourceDetails& WithPerformanceInsightsMetrics(Aws::Vector&& value) { SetPerformanceInsightsMetrics(std::move(value)); return *this;} /** *

An array of PerformanceInsightsMetricsDetail objects that * contain information about analyzed Performance Insights metrics that show * anomalous behavior.

*/ inline AnomalySourceDetails& AddPerformanceInsightsMetrics(const PerformanceInsightsMetricsDetail& value) { m_performanceInsightsMetricsHasBeenSet = true; m_performanceInsightsMetrics.push_back(value); return *this; } /** *

An array of PerformanceInsightsMetricsDetail objects that * contain information about analyzed Performance Insights metrics that show * anomalous behavior.

*/ inline AnomalySourceDetails& AddPerformanceInsightsMetrics(PerformanceInsightsMetricsDetail&& value) { m_performanceInsightsMetricsHasBeenSet = true; m_performanceInsightsMetrics.push_back(std::move(value)); return *this; } private: Aws::Vector m_cloudWatchMetrics; bool m_cloudWatchMetricsHasBeenSet = false; Aws::Vector m_performanceInsightsMetrics; bool m_performanceInsightsMetricsHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws