AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DeleteRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/DynamoDB_EXPORTS.h>
10#include <aws/dynamodb/model/AttributeValue.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DynamoDB {
22namespace Model {
23
31 public:
32 AWS_DYNAMODB_API DeleteRequest() = default;
33 AWS_DYNAMODB_API DeleteRequest(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Map<Aws::String, AttributeValue>& GetKey() const { return m_key; }
44 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
45 template <typename KeyT = Aws::Map<Aws::String, AttributeValue>>
46 void SetKey(KeyT&& value) {
47 m_keyHasBeenSet = true;
48 m_key = std::forward<KeyT>(value);
49 }
50 template <typename KeyT = Aws::Map<Aws::String, AttributeValue>>
51 DeleteRequest& WithKey(KeyT&& value) {
52 SetKey(std::forward<KeyT>(value));
53 return *this;
54 }
55 template <typename KeyKeyT = Aws::String, typename KeyValueT = AttributeValue>
56 DeleteRequest& AddKey(KeyKeyT&& key, KeyValueT&& value) {
57 m_keyHasBeenSet = true;
58 m_key.emplace(std::forward<KeyKeyT>(key), std::forward<KeyValueT>(value));
59 return *this;
60 }
62 private:
64 bool m_keyHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace DynamoDB
69} // namespace Aws
DeleteRequest & WithKey(KeyT &&value)
AWS_DYNAMODB_API DeleteRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, AttributeValue > & GetKey() const
AWS_DYNAMODB_API DeleteRequest()=default
AWS_DYNAMODB_API DeleteRequest(Aws::Utils::Json::JsonView jsonValue)
DeleteRequest & AddKey(KeyKeyT &&key, KeyValueT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue