/** * 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 array of descriptions and aggregated values for each dimension within a * dimension group.

See Also:

AWS * API Reference

*/ class AWS_PI_API DimensionKeyDescription { public: DimensionKeyDescription(); DimensionKeyDescription(Aws::Utils::Json::JsonView jsonValue); DimensionKeyDescription& operator=(Aws::Utils::Json::JsonView jsonValue); 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 dimension(s), over the requested time * range.

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

The aggregated metric value for the dimension(s), over the requested time * range.

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

The aggregated metric value for the dimension(s), over the requested time * range.

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

The aggregated metric value for the dimension(s), over the requested time * range.

*/ inline DimensionKeyDescription& WithTotal(double value) { SetTotal(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; double m_total; bool m_totalHasBeenSet; Aws::Vector m_partitions; bool m_partitionsHasBeenSet; }; } // namespace Model } // namespace PI } // namespace Aws