/** * 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 { /** *

An object that includes the requested dimension key values and aggregated * metric values within a dimension group.

See Also:

AWS * API Reference

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

A map of name-value pairs for the dimensions in the group.

*/ inline const Aws::Map& GetDimensions() const{ return m_dimensions; } /** *

A map of name-value pairs for the dimensions in the group.

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

A map of name-value pairs for the dimensions in the group.

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

A map of name-value pairs for the dimensions in the group.

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

A map of name-value pairs for the dimensions in the group.

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

A map of name-value pairs for the dimensions in the group.

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

A map of name-value pairs for the dimensions in the group.

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

A map of name-value pairs for the dimensions in the group.

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

A map of name-value pairs for the dimensions in the group.

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

A map of name-value pairs for the dimensions in the group.

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

A map of name-value pairs for the dimensions in the group.

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

A map of name-value pairs for the dimensions in the group.

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

A map of name-value pairs for the dimensions in the group.

*/ inline DimensionKeyDescription& AddDimensions(const char* key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; } /** *

The aggregated metric value for the dimensions, over the requested time * range.

*/ inline double GetTotal() const{ return m_total; } /** *

The aggregated metric value for the dimensions, over the requested time * range.

*/ inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; } /** *

The aggregated metric value for the dimensions, over the requested time * range.

*/ inline void SetTotal(double value) { m_totalHasBeenSet = true; m_total = value; } /** *

The aggregated metric value for the dimensions, over the requested time * range.

*/ inline DimensionKeyDescription& WithTotal(double value) { SetTotal(value); return *this;} /** *

A map that contains the value for each additional metric.

*/ inline const Aws::Map& GetAdditionalMetrics() const{ return m_additionalMetrics; } /** *

A map that contains the value for each additional metric.

*/ inline bool AdditionalMetricsHasBeenSet() const { return m_additionalMetricsHasBeenSet; } /** *

A map that contains the value for each additional metric.

*/ inline void SetAdditionalMetrics(const Aws::Map& value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics = value; } /** *

A map that contains the value for each additional metric.

*/ inline void SetAdditionalMetrics(Aws::Map&& value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics = std::move(value); } /** *

A map that contains the value for each additional metric.

*/ inline DimensionKeyDescription& WithAdditionalMetrics(const Aws::Map& value) { SetAdditionalMetrics(value); return *this;} /** *

A map that contains the value for each additional metric.

*/ inline DimensionKeyDescription& WithAdditionalMetrics(Aws::Map&& value) { SetAdditionalMetrics(std::move(value)); return *this;} /** *

A map that contains the value for each additional metric.

*/ inline DimensionKeyDescription& AddAdditionalMetrics(const Aws::String& key, double value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics.emplace(key, value); return *this; } /** *

A map that contains the value for each additional metric.

*/ inline DimensionKeyDescription& AddAdditionalMetrics(Aws::String&& key, double value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics.emplace(std::move(key), value); return *this; } /** *

A map that contains the value for each additional metric.

*/ inline DimensionKeyDescription& AddAdditionalMetrics(const char* key, double value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics.emplace(key, value); return *this; } /** *

If PartitionBy was specified, PartitionKeys * contains the dimensions that were.

*/ inline const Aws::Vector& GetPartitions() const{ return m_partitions; } /** *

If PartitionBy was specified, PartitionKeys * contains the dimensions that were.

*/ inline bool PartitionsHasBeenSet() const { return m_partitionsHasBeenSet; } /** *

If PartitionBy was specified, PartitionKeys * contains the dimensions that were.

*/ inline void SetPartitions(const Aws::Vector& value) { m_partitionsHasBeenSet = true; m_partitions = value; } /** *

If PartitionBy was specified, PartitionKeys * contains the dimensions that were.

*/ inline void SetPartitions(Aws::Vector&& value) { m_partitionsHasBeenSet = true; m_partitions = std::move(value); } /** *

If PartitionBy was specified, PartitionKeys * contains the dimensions that were.

*/ inline DimensionKeyDescription& WithPartitions(const Aws::Vector& value) { SetPartitions(value); return *this;} /** *

If PartitionBy was specified, PartitionKeys * contains the dimensions that were.

*/ inline DimensionKeyDescription& WithPartitions(Aws::Vector&& value) { SetPartitions(std::move(value)); return *this;} /** *

If PartitionBy was specified, PartitionKeys * contains the dimensions that were.

*/ inline DimensionKeyDescription& AddPartitions(double value) { m_partitionsHasBeenSet = true; m_partitions.push_back(value); return *this; } private: Aws::Map m_dimensions; bool m_dimensionsHasBeenSet = false; double m_total; bool m_totalHasBeenSet = false; Aws::Map m_additionalMetrics; bool m_additionalMetricsHasBeenSet = false; Aws::Vector m_partitions; bool m_partitionsHasBeenSet = false; }; } // namespace Model } // namespace PI } // namespace Aws