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

Contains information about the historical metrics retrieved.

See * Also:

AWS * API Reference

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

The dimension for the metrics.

*/ inline const Dimensions& GetDimensions() const{ return m_dimensions; } /** *

The dimension for the metrics.

*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *

The dimension for the metrics.

*/ inline void SetDimensions(const Dimensions& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; } /** *

The dimension for the metrics.

*/ inline void SetDimensions(Dimensions&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); } /** *

The dimension for the metrics.

*/ inline HistoricalMetricResult& WithDimensions(const Dimensions& value) { SetDimensions(value); return *this;} /** *

The dimension for the metrics.

*/ inline HistoricalMetricResult& WithDimensions(Dimensions&& value) { SetDimensions(std::move(value)); return *this;} /** *

The set of metrics.

*/ inline const Aws::Vector& GetCollections() const{ return m_collections; } /** *

The set of metrics.

*/ inline bool CollectionsHasBeenSet() const { return m_collectionsHasBeenSet; } /** *

The set of metrics.

*/ inline void SetCollections(const Aws::Vector& value) { m_collectionsHasBeenSet = true; m_collections = value; } /** *

The set of metrics.

*/ inline void SetCollections(Aws::Vector&& value) { m_collectionsHasBeenSet = true; m_collections = std::move(value); } /** *

The set of metrics.

*/ inline HistoricalMetricResult& WithCollections(const Aws::Vector& value) { SetCollections(value); return *this;} /** *

The set of metrics.

*/ inline HistoricalMetricResult& WithCollections(Aws::Vector&& value) { SetCollections(std::move(value)); return *this;} /** *

The set of metrics.

*/ inline HistoricalMetricResult& AddCollections(const HistoricalMetricData& value) { m_collectionsHasBeenSet = true; m_collections.push_back(value); return *this; } /** *

The set of metrics.

*/ inline HistoricalMetricResult& AddCollections(HistoricalMetricData&& value) { m_collectionsHasBeenSet = true; m_collections.push_back(std::move(value)); return *this; } private: Dimensions m_dimensions; bool m_dimensionsHasBeenSet = false; Aws::Vector m_collections; bool m_collectionsHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws