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

The available dimension information for a metric type.

See * Also:

AWS * API Reference

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

The metric type to which the dimension information belongs.

*/ inline const Aws::String& GetMetric() const{ return m_metric; } /** *

The metric type to which the dimension information belongs.

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

The metric type to which the dimension information belongs.

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

The metric type to which the dimension information belongs.

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

The metric type to which the dimension information belongs.

*/ inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); } /** *

The metric type to which the dimension information belongs.

*/ inline MetricDimensionGroups& WithMetric(const Aws::String& value) { SetMetric(value); return *this;} /** *

The metric type to which the dimension information belongs.

*/ inline MetricDimensionGroups& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;} /** *

The metric type to which the dimension information belongs.

*/ inline MetricDimensionGroups& WithMetric(const char* value) { SetMetric(value); return *this;} /** *

The available dimension groups for a metric type.

*/ inline const Aws::Vector& GetGroups() const{ return m_groups; } /** *

The available dimension groups for a metric type.

*/ inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; } /** *

The available dimension groups for a metric type.

*/ inline void SetGroups(const Aws::Vector& value) { m_groupsHasBeenSet = true; m_groups = value; } /** *

The available dimension groups for a metric type.

*/ inline void SetGroups(Aws::Vector&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); } /** *

The available dimension groups for a metric type.

*/ inline MetricDimensionGroups& WithGroups(const Aws::Vector& value) { SetGroups(value); return *this;} /** *

The available dimension groups for a metric type.

*/ inline MetricDimensionGroups& WithGroups(Aws::Vector&& value) { SetGroups(std::move(value)); return *this;} /** *

The available dimension groups for a metric type.

*/ inline MetricDimensionGroups& AddGroups(const DimensionGroupDetail& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *

The available dimension groups for a metric type.

*/ inline MetricDimensionGroups& AddGroups(DimensionGroupDetail&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; } private: Aws::String m_metric; bool m_metricHasBeenSet = false; Aws::Vector m_groups; bool m_groupsHasBeenSet = false; }; } // namespace Model } // namespace PI } // namespace Aws