AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DeleteRequest.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dynamodb/model/AttributeValue.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DynamoDB
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DYNAMODB_API DeleteRequest() = default;
38 AWS_DYNAMODB_API DeleteRequest(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Map<Aws::String, AttributeValue>& GetKey() const { return m_key; }
50 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 template<typename KeyT = Aws::Map<Aws::String, AttributeValue>>
52 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
53 template<typename KeyT = Aws::Map<Aws::String, AttributeValue>>
54 DeleteRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
55 template<typename KeyKeyT = Aws::String, typename KeyValueT = AttributeValue>
56 DeleteRequest& AddKey(KeyKeyT&& key, KeyValueT&& value) {
57 m_keyHasBeenSet = true; m_key.emplace(std::forward<KeyKeyT>(key), std::forward<KeyValueT>(value)); return *this;
58 }
60 private:
61
63 bool m_keyHasBeenSet = false;
64 };
65
66} // namespace Model
67} // namespace DynamoDB
68} // 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