/** * 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 name, thresholds, and metric filters.

See Also:

* AWS * API Reference

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

The metric name, thresholds, and metric filters of the returned metric.

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

The metric name, thresholds, and metric filters of the returned metric.

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

The metric name, thresholds, and metric filters of the returned metric.

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

The metric name, thresholds, and metric filters of the returned metric.

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

The metric name, thresholds, and metric filters of the returned metric.

*/ inline MetricDataV2& WithMetric(const MetricV2& value) { SetMetric(value); return *this;} /** *

The metric name, thresholds, and metric filters of the returned metric.

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

The corresponding value of the metric returned in the response.

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

The corresponding value of the metric returned in the response.

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

The corresponding value of the metric returned in the response.

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

The corresponding value of the metric returned in the response.

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