AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutRequest.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 PutRequest();
38 AWS_DYNAMODB_API PutRequest(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DYNAMODB_API PutRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
52 inline const Aws::Map<Aws::String, AttributeValue>& GetItem() const{ return m_item; }
53 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
54 inline void SetItem(const Aws::Map<Aws::String, AttributeValue>& value) { m_itemHasBeenSet = true; m_item = value; }
55 inline void SetItem(Aws::Map<Aws::String, AttributeValue>&& value) { m_itemHasBeenSet = true; m_item = std::move(value); }
56 inline PutRequest& WithItem(const Aws::Map<Aws::String, AttributeValue>& value) { SetItem(value); return *this;}
57 inline PutRequest& WithItem(Aws::Map<Aws::String, AttributeValue>&& value) { SetItem(std::move(value)); return *this;}
58 inline PutRequest& AddItem(const Aws::String& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
59 inline PutRequest& AddItem(Aws::String&& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), value); return *this; }
60 inline PutRequest& AddItem(const Aws::String& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
61 inline PutRequest& AddItem(Aws::String&& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), std::move(value)); return *this; }
62 inline PutRequest& AddItem(const char* key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
63 inline PutRequest& AddItem(const char* key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
65 private:
66
68 bool m_itemHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace DynamoDB
73} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
PutRequest & WithItem(const Aws::Map< Aws::String, AttributeValue > &value)
Definition PutRequest.h:56
AWS_DYNAMODB_API PutRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
PutRequest & AddItem(const Aws::String &key, const AttributeValue &value)
Definition PutRequest.h:58
PutRequest & AddItem(const char *key, const AttributeValue &value)
Definition PutRequest.h:63
const Aws::Map< Aws::String, AttributeValue > & GetItem() const
Definition PutRequest.h:52
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API PutRequest(Aws::Utils::Json::JsonView jsonValue)
void SetItem(Aws::Map< Aws::String, AttributeValue > &&value)
Definition PutRequest.h:55
void SetItem(const Aws::Map< Aws::String, AttributeValue > &value)
Definition PutRequest.h:54
PutRequest & WithItem(Aws::Map< Aws::String, AttributeValue > &&value)
Definition PutRequest.h:57
PutRequest & AddItem(const Aws::String &key, AttributeValue &&value)
Definition PutRequest.h:60
PutRequest & AddItem(Aws::String &&key, AttributeValue &&value)
Definition PutRequest.h:61
PutRequest & AddItem(const char *key, AttributeValue &&value)
Definition PutRequest.h:62
PutRequest & AddItem(Aws::String &&key, const AttributeValue &value)
Definition PutRequest.h:59
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue