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

Details for the requested item.

See Also:

AWS * API Reference

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

Map of attribute data consisting of the data type and attribute value.

*/ inline const Aws::Map& GetItem() const{ return m_item; } /** *

Map of attribute data consisting of the data type and attribute value.

*/ inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; } /** *

Map of attribute data consisting of the data type and attribute value.

*/ inline void SetItem(const Aws::Map& value) { m_itemHasBeenSet = true; m_item = value; } /** *

Map of attribute data consisting of the data type and attribute value.

*/ inline void SetItem(Aws::Map&& value) { m_itemHasBeenSet = true; m_item = std::move(value); } /** *

Map of attribute data consisting of the data type and attribute value.

*/ inline ItemResponse& WithItem(const Aws::Map& value) { SetItem(value); return *this;} /** *

Map of attribute data consisting of the data type and attribute value.

*/ inline ItemResponse& WithItem(Aws::Map&& value) { SetItem(std::move(value)); return *this;} /** *

Map of attribute data consisting of the data type and attribute value.

*/ inline ItemResponse& AddItem(const Aws::String& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; } /** *

Map of attribute data consisting of the data type and attribute value.

*/ inline ItemResponse& AddItem(Aws::String&& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), value); return *this; } /** *

Map of attribute data consisting of the data type and attribute value.

*/ inline ItemResponse& AddItem(const Aws::String& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; } /** *

Map of attribute data consisting of the data type and attribute value.

*/ inline ItemResponse& AddItem(Aws::String&& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), std::move(value)); return *this; } /** *

Map of attribute data consisting of the data type and attribute value.

*/ inline ItemResponse& AddItem(const char* key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; } /** *

Map of attribute data consisting of the data type and attribute value.

*/ inline ItemResponse& AddItem(const char* key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; } private: Aws::Map m_item; bool m_itemHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws