/** * 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 Connect { namespace Model { /** *

Contains the data for a real-time metric.

See Also:

AWS * API Reference

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

Information about the metric.

*/ inline const CurrentMetric& GetMetric() const{ return m_metric; } /** *

Information about the metric.

*/ inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; } /** *

Information about the metric.

*/ inline void SetMetric(const CurrentMetric& value) { m_metricHasBeenSet = true; m_metric = value; } /** *

Information about the metric.

*/ inline void SetMetric(CurrentMetric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); } /** *

Information about the metric.

*/ inline CurrentMetricData& WithMetric(const CurrentMetric& value) { SetMetric(value); return *this;} /** *

Information about the metric.

*/ inline CurrentMetricData& WithMetric(CurrentMetric&& value) { SetMetric(std::move(value)); return *this;} /** *

The value of the metric.

*/ inline double GetValue() const{ return m_value; } /** *

The value of the metric.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the metric.

*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the metric.

*/ inline CurrentMetricData& WithValue(double value) { SetValue(value); return *this;} private: CurrentMetric m_metric; bool m_metricHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws