/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about a historical metric. For a description of each
* metric, see Historical
* Metrics Definitions in the Amazon Connect Administrator
* Guide.See Also:
AWS
* API Reference
The name of the metric.
*/ inline const HistoricalMetricName& GetName() const{ return m_name; } /** *The name of the metric.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the metric.
*/ inline void SetName(const HistoricalMetricName& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the metric.
*/ inline void SetName(HistoricalMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the metric.
*/ inline HistoricalMetric& WithName(const HistoricalMetricName& value) { SetName(value); return *this;} /** *The name of the metric.
*/ inline HistoricalMetric& WithName(HistoricalMetricName&& value) { SetName(std::move(value)); return *this;} /** *The threshold for the metric, used with service level metrics.
*/ inline const Threshold& GetThreshold() const{ return m_threshold; } /** *The threshold for the metric, used with service level metrics.
*/ inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; } /** *The threshold for the metric, used with service level metrics.
*/ inline void SetThreshold(const Threshold& value) { m_thresholdHasBeenSet = true; m_threshold = value; } /** *The threshold for the metric, used with service level metrics.
*/ inline void SetThreshold(Threshold&& value) { m_thresholdHasBeenSet = true; m_threshold = std::move(value); } /** *The threshold for the metric, used with service level metrics.
*/ inline HistoricalMetric& WithThreshold(const Threshold& value) { SetThreshold(value); return *this;} /** *The threshold for the metric, used with service level metrics.
*/ inline HistoricalMetric& WithThreshold(Threshold&& value) { SetThreshold(std::move(value)); return *this;} /** *The statistic for the metric.
*/ inline const Statistic& GetStatistic() const{ return m_statistic; } /** *The statistic for the metric.
*/ inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; } /** *The statistic for the metric.
*/ inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; } /** *The statistic for the metric.
*/ inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); } /** *The statistic for the metric.
*/ inline HistoricalMetric& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;} /** *The statistic for the metric.
*/ inline HistoricalMetric& WithStatistic(Statistic&& value) { SetStatistic(std::move(value)); return *this;} /** *The unit for the metric.
*/ inline const Unit& GetUnit() const{ return m_unit; } /** *The unit for the metric.
*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *The unit for the metric.
*/ inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; } /** *The unit for the metric.
*/ inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *The unit for the metric.
*/ inline HistoricalMetric& WithUnit(const Unit& value) { SetUnit(value); return *this;} /** *The unit for the metric.
*/ inline HistoricalMetric& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;} private: HistoricalMetricName m_name; bool m_nameHasBeenSet = false; Threshold m_threshold; bool m_thresholdHasBeenSet = false; Statistic m_statistic; bool m_statisticHasBeenSet = false; Unit m_unit; bool m_unitHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws