/** * 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 { /** *

Contains information about the analyzed metrics that displayed anomalous * behavior.

See Also:

AWS * API Reference

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

This is a list of Amazon CloudWatch metric values at given timestamp.

*/ inline const Aws::Vector& GetTimestampMetricValuePairList() const{ return m_timestampMetricValuePairList; } /** *

This is a list of Amazon CloudWatch metric values at given timestamp.

*/ inline bool TimestampMetricValuePairListHasBeenSet() const { return m_timestampMetricValuePairListHasBeenSet; } /** *

This is a list of Amazon CloudWatch metric values at given timestamp.

*/ inline void SetTimestampMetricValuePairList(const Aws::Vector& value) { m_timestampMetricValuePairListHasBeenSet = true; m_timestampMetricValuePairList = value; } /** *

This is a list of Amazon CloudWatch metric values at given timestamp.

*/ inline void SetTimestampMetricValuePairList(Aws::Vector&& value) { m_timestampMetricValuePairListHasBeenSet = true; m_timestampMetricValuePairList = std::move(value); } /** *

This is a list of Amazon CloudWatch metric values at given timestamp.

*/ inline CloudWatchMetricsDataSummary& WithTimestampMetricValuePairList(const Aws::Vector& value) { SetTimestampMetricValuePairList(value); return *this;} /** *

This is a list of Amazon CloudWatch metric values at given timestamp.

*/ inline CloudWatchMetricsDataSummary& WithTimestampMetricValuePairList(Aws::Vector&& value) { SetTimestampMetricValuePairList(std::move(value)); return *this;} /** *

This is a list of Amazon CloudWatch metric values at given timestamp.

*/ inline CloudWatchMetricsDataSummary& AddTimestampMetricValuePairList(const TimestampMetricValuePair& value) { m_timestampMetricValuePairListHasBeenSet = true; m_timestampMetricValuePairList.push_back(value); return *this; } /** *

This is a list of Amazon CloudWatch metric values at given timestamp.

*/ inline CloudWatchMetricsDataSummary& AddTimestampMetricValuePairList(TimestampMetricValuePair&& value) { m_timestampMetricValuePairListHasBeenSet = true; m_timestampMetricValuePairList.push_back(std::move(value)); return *this; } /** *

This is an enum of the status showing whether the metric value pair list has * partial or complete data, or if there was an error.

*/ inline const CloudWatchMetricDataStatusCode& GetStatusCode() const{ return m_statusCode; } /** *

This is an enum of the status showing whether the metric value pair list has * partial or complete data, or if there was an error.

*/ inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } /** *

This is an enum of the status showing whether the metric value pair list has * partial or complete data, or if there was an error.

*/ inline void SetStatusCode(const CloudWatchMetricDataStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } /** *

This is an enum of the status showing whether the metric value pair list has * partial or complete data, or if there was an error.

*/ inline void SetStatusCode(CloudWatchMetricDataStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); } /** *

This is an enum of the status showing whether the metric value pair list has * partial or complete data, or if there was an error.

*/ inline CloudWatchMetricsDataSummary& WithStatusCode(const CloudWatchMetricDataStatusCode& value) { SetStatusCode(value); return *this;} /** *

This is an enum of the status showing whether the metric value pair list has * partial or complete data, or if there was an error.

*/ inline CloudWatchMetricsDataSummary& WithStatusCode(CloudWatchMetricDataStatusCode&& value) { SetStatusCode(std::move(value)); return *this;} private: Aws::Vector m_timestampMetricValuePairList; bool m_timestampMetricValuePairListHasBeenSet = false; CloudWatchMetricDataStatusCode m_statusCode; bool m_statusCodeHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws