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

A pair that contains metric values at the respective timestamp.

See * Also:

AWS * API Reference

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

A Timestamp that specifies the time the event occurred.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

A Timestamp that specifies the time the event occurred.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

A Timestamp that specifies the time the event occurred.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

A Timestamp that specifies the time the event occurred.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

A Timestamp that specifies the time the event occurred.

*/ inline TimestampMetricValuePair& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

A Timestamp that specifies the time the event occurred.

*/ inline TimestampMetricValuePair& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *

Value of the anomalous metric data point at respective Timestamp.

*/ inline double GetMetricValue() const{ return m_metricValue; } /** *

Value of the anomalous metric data point at respective Timestamp.

*/ inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; } /** *

Value of the anomalous metric data point at respective Timestamp.

*/ inline void SetMetricValue(double value) { m_metricValueHasBeenSet = true; m_metricValue = value; } /** *

Value of the anomalous metric data point at respective Timestamp.

*/ inline TimestampMetricValuePair& WithMetricValue(double value) { SetMetricValue(value); return *this;} private: Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; double m_metricValue; bool m_metricValueHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws