/** * 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 a set of real-time metrics.

See * Also:

AWS * API Reference

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

The dimensions for the metrics.

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

The dimensions for the metrics.

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

The dimensions for the metrics.

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

The dimensions for the metrics.

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

The dimensions for the metrics.

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

The dimensions for the metrics.

*/ inline CurrentMetricResult& 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 CurrentMetricResult& WithCollections(const Aws::Vector& value) { SetCollections(value); return *this;} /** *

The set of metrics.

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

The set of metrics.

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

The set of metrics.

*/ inline CurrentMetricResult& AddCollections(CurrentMetricData&& 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