/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace PI { namespace Model { /** *

If PartitionBy was specified in a * DescribeDimensionKeys request, the dimensions are returned in an * array. Each element in the array specifies one dimension.

See * Also:

AWS * API Reference

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

A dimension map that contains the dimensions for this partition.

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

A dimension map that contains the dimensions for this partition.

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

A dimension map that contains the dimensions for this partition.

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

A dimension map that contains the dimensions for this partition.

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

A dimension map that contains the dimensions for this partition.

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

A dimension map that contains the dimensions for this partition.

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

A dimension map that contains the dimensions for this partition.

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

A dimension map that contains the dimensions for this partition.

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

A dimension map that contains the dimensions for this partition.

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

A dimension map that contains the dimensions for this partition.

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

A dimension map that contains the dimensions for this partition.

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

A dimension map that contains the dimensions for this partition.

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

A dimension map that contains the dimensions for this partition.

*/ inline ResponsePartitionKey& AddDimensions(const char* key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; } private: Aws::Map m_dimensions; bool m_dimensionsHasBeenSet = false; }; } // namespace Model } // namespace PI } // namespace Aws