/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 metric results.

See Also:

AWS * API Reference

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

The dimension for the metrics.

*/ inline const Aws::Map& 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 Aws::Map& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; } /** *

The dimension for the metrics.

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

The dimension for the metrics.

*/ inline MetricResultV2& WithDimensions(const Aws::Map& value) { SetDimensions(value); return *this;} /** *

The dimension for the metrics.

*/ inline MetricResultV2& WithDimensions(Aws::Map&& value) { SetDimensions(std::move(value)); return *this;} /** *

The dimension for the metrics.

*/ inline MetricResultV2& AddDimensions(const Aws::String& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; } /** *

The dimension for the metrics.

*/ inline MetricResultV2& AddDimensions(Aws::String&& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; } /** *

The dimension for the metrics.

*/ inline MetricResultV2& AddDimensions(const Aws::String& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; } /** *

The dimension for the metrics.

*/ inline MetricResultV2& AddDimensions(Aws::String&& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), std::move(value)); return *this; } /** *

The dimension for the metrics.

*/ inline MetricResultV2& AddDimensions(const char* key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; } /** *

The dimension for the metrics.

*/ inline MetricResultV2& AddDimensions(Aws::String&& key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; } /** *

The dimension for the metrics.

*/ inline MetricResultV2& AddDimensions(const char* key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, 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 MetricResultV2& WithCollections(const Aws::Vector& value) { SetCollections(value); return *this;} /** *

The set of metrics.

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

The set of metrics.

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

The set of metrics.

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