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

Represents a request to perform a DeleteItem operation on an * item.

See Also:

AWS * API Reference

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

A map of attribute name to attribute values, representing the primary key of * the item to delete. All of the table's primary key attributes must be specified, * and their data types must match those of the table's key schema.

*/ inline const Aws::Map& GetKey() const{ return m_key; } /** *

A map of attribute name to attribute values, representing the primary key of * the item to delete. All of the table's primary key attributes must be specified, * and their data types must match those of the table's key schema.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

A map of attribute name to attribute values, representing the primary key of * the item to delete. All of the table's primary key attributes must be specified, * and their data types must match those of the table's key schema.

*/ inline void SetKey(const Aws::Map& value) { m_keyHasBeenSet = true; m_key = value; } /** *

A map of attribute name to attribute values, representing the primary key of * the item to delete. All of the table's primary key attributes must be specified, * and their data types must match those of the table's key schema.

*/ inline void SetKey(Aws::Map&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

A map of attribute name to attribute values, representing the primary key of * the item to delete. All of the table's primary key attributes must be specified, * and their data types must match those of the table's key schema.

*/ inline DeleteRequest& WithKey(const Aws::Map& value) { SetKey(value); return *this;} /** *

A map of attribute name to attribute values, representing the primary key of * the item to delete. All of the table's primary key attributes must be specified, * and their data types must match those of the table's key schema.

*/ inline DeleteRequest& WithKey(Aws::Map&& value) { SetKey(std::move(value)); return *this;} /** *

A map of attribute name to attribute values, representing the primary key of * the item to delete. All of the table's primary key attributes must be specified, * and their data types must match those of the table's key schema.

*/ inline DeleteRequest& AddKey(const Aws::String& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(key, value); return *this; } /** *

A map of attribute name to attribute values, representing the primary key of * the item to delete. All of the table's primary key attributes must be specified, * and their data types must match those of the table's key schema.

*/ inline DeleteRequest& AddKey(Aws::String&& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(std::move(key), value); return *this; } /** *

A map of attribute name to attribute values, representing the primary key of * the item to delete. All of the table's primary key attributes must be specified, * and their data types must match those of the table's key schema.

*/ inline DeleteRequest& AddKey(const Aws::String& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(key, std::move(value)); return *this; } /** *

A map of attribute name to attribute values, representing the primary key of * the item to delete. All of the table's primary key attributes must be specified, * and their data types must match those of the table's key schema.

*/ inline DeleteRequest& AddKey(Aws::String&& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of attribute name to attribute values, representing the primary key of * the item to delete. All of the table's primary key attributes must be specified, * and their data types must match those of the table's key schema.

*/ inline DeleteRequest& AddKey(const char* key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(key, std::move(value)); return *this; } /** *

A map of attribute name to attribute values, representing the primary key of * the item to delete. All of the table's primary key attributes must be specified, * and their data types must match those of the table's key schema.

*/ inline DeleteRequest& AddKey(const char* key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(key, value); return *this; } private: Aws::Map m_key; bool m_keyHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws