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

One level of grouped data in the results.

See Also:

AWS API * Reference

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

The keys that are included in this group.

*/ inline const Aws::Vector& GetKeys() const{ return m_keys; } /** *

The keys that are included in this group.

*/ inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; } /** *

The keys that are included in this group.

*/ inline void SetKeys(const Aws::Vector& value) { m_keysHasBeenSet = true; m_keys = value; } /** *

The keys that are included in this group.

*/ inline void SetKeys(Aws::Vector&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); } /** *

The keys that are included in this group.

*/ inline Group& WithKeys(const Aws::Vector& value) { SetKeys(value); return *this;} /** *

The keys that are included in this group.

*/ inline Group& WithKeys(Aws::Vector&& value) { SetKeys(std::move(value)); return *this;} /** *

The keys that are included in this group.

*/ inline Group& AddKeys(const Aws::String& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; } /** *

The keys that are included in this group.

*/ inline Group& AddKeys(Aws::String&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; } /** *

The keys that are included in this group.

*/ inline Group& AddKeys(const char* value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; } /** *

The metrics that are included in this group.

*/ inline const Aws::Map& GetMetrics() const{ return m_metrics; } /** *

The metrics that are included in this group.

*/ inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; } /** *

The metrics that are included in this group.

*/ inline void SetMetrics(const Aws::Map& value) { m_metricsHasBeenSet = true; m_metrics = value; } /** *

The metrics that are included in this group.

*/ inline void SetMetrics(Aws::Map&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); } /** *

The metrics that are included in this group.

*/ inline Group& WithMetrics(const Aws::Map& value) { SetMetrics(value); return *this;} /** *

The metrics that are included in this group.

*/ inline Group& WithMetrics(Aws::Map&& value) { SetMetrics(std::move(value)); return *this;} /** *

The metrics that are included in this group.

*/ inline Group& AddMetrics(const Aws::String& key, const MetricValue& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; } /** *

The metrics that are included in this group.

*/ inline Group& AddMetrics(Aws::String&& key, const MetricValue& value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), value); return *this; } /** *

The metrics that are included in this group.

*/ inline Group& AddMetrics(const Aws::String& key, MetricValue&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, std::move(value)); return *this; } /** *

The metrics that are included in this group.

*/ inline Group& AddMetrics(Aws::String&& key, MetricValue&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), std::move(value)); return *this; } /** *

The metrics that are included in this group.

*/ inline Group& AddMetrics(const char* key, MetricValue&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, std::move(value)); return *this; } /** *

The metrics that are included in this group.

*/ inline Group& AddMetrics(const char* key, const MetricValue& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; } private: Aws::Vector m_keys; bool m_keysHasBeenSet = false; Aws::Map m_metrics; bool m_metricsHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws