AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ItemResponse.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
34 {
35 public:
36 AWS_DYNAMODB_API ItemResponse();
37 AWS_DYNAMODB_API ItemResponse(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Map<Aws::String, AttributeValue>& GetItem() const{ return m_item; }
47 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
48 inline void SetItem(const Aws::Map<Aws::String, AttributeValue>& value) { m_itemHasBeenSet = true; m_item = value; }
49 inline void SetItem(Aws::Map<Aws::String, AttributeValue>&& value) { m_itemHasBeenSet = true; m_item = std::move(value); }
50 inline ItemResponse& WithItem(const Aws::Map<Aws::String, AttributeValue>& value) { SetItem(value); return *this;}
51 inline ItemResponse& WithItem(Aws::Map<Aws::String, AttributeValue>&& value) { SetItem(std::move(value)); return *this;}
52 inline ItemResponse& AddItem(const Aws::String& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
53 inline ItemResponse& AddItem(Aws::String&& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), value); return *this; }
54 inline ItemResponse& AddItem(const Aws::String& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
55 inline ItemResponse& AddItem(Aws::String&& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), std::move(value)); return *this; }
56 inline ItemResponse& AddItem(const char* key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
57 inline ItemResponse& AddItem(const char* key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
59 private:
60
62 bool m_itemHasBeenSet = false;
63 };
64
65} // namespace Model
66} // namespace DynamoDB
67} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
void SetItem(Aws::Map< Aws::String, AttributeValue > &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API ItemResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
ItemResponse & AddItem(Aws::String &&key, AttributeValue &&value)
ItemResponse & AddItem(const Aws::String &key, AttributeValue &&value)
ItemResponse & WithItem(Aws::Map< Aws::String, AttributeValue > &&value)
ItemResponse & AddItem(const char *key, const AttributeValue &value)
ItemResponse & AddItem(const char *key, AttributeValue &&value)
void SetItem(const Aws::Map< Aws::String, AttributeValue > &value)
const Aws::Map< Aws::String, AttributeValue > & GetItem() const
AWS_DYNAMODB_API ItemResponse(Aws::Utils::Json::JsonView jsonValue)
ItemResponse & WithItem(const Aws::Map< Aws::String, AttributeValue > &value)
ItemResponse & AddItem(const Aws::String &key, const AttributeValue &value)
ItemResponse & AddItem(Aws::String &&key, const AttributeValue &value)
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