AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetItemResult.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/dynamodb/model/ConsumedCapacity.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/dynamodb/model/AttributeValue.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DynamoDB
27{
28namespace Model
29{
37 {
38 public:
39 AWS_DYNAMODB_API GetItemResult();
42
43
45
49 inline const Aws::Map<Aws::String, AttributeValue>& GetItem() const{ return m_item; }
50 inline void SetItem(const Aws::Map<Aws::String, AttributeValue>& value) { m_item = value; }
51 inline void SetItem(Aws::Map<Aws::String, AttributeValue>&& value) { m_item = std::move(value); }
52 inline GetItemResult& WithItem(const Aws::Map<Aws::String, AttributeValue>& value) { SetItem(value); return *this;}
53 inline GetItemResult& WithItem(Aws::Map<Aws::String, AttributeValue>&& value) { SetItem(std::move(value)); return *this;}
54 inline GetItemResult& AddItem(const Aws::String& key, const AttributeValue& value) { m_item.emplace(key, value); return *this; }
55 inline GetItemResult& AddItem(Aws::String&& key, const AttributeValue& value) { m_item.emplace(std::move(key), value); return *this; }
56 inline GetItemResult& AddItem(const Aws::String& key, AttributeValue&& value) { m_item.emplace(key, std::move(value)); return *this; }
57 inline GetItemResult& AddItem(Aws::String&& key, AttributeValue&& value) { m_item.emplace(std::move(key), std::move(value)); return *this; }
58 inline GetItemResult& AddItem(const char* key, AttributeValue&& value) { m_item.emplace(key, std::move(value)); return *this; }
59 inline GetItemResult& AddItem(const char* key, const AttributeValue& value) { m_item.emplace(key, value); return *this; }
61
63
74 inline const ConsumedCapacity& GetConsumedCapacity() const{ return m_consumedCapacity; }
75 inline void SetConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity = value; }
76 inline void SetConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity = std::move(value); }
77 inline GetItemResult& WithConsumedCapacity(const ConsumedCapacity& value) { SetConsumedCapacity(value); return *this;}
78 inline GetItemResult& WithConsumedCapacity(ConsumedCapacity&& value) { SetConsumedCapacity(std::move(value)); return *this;}
80
82
83 inline const Aws::String& GetRequestId() const{ return m_requestId; }
84 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
85 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
86 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
87 inline GetItemResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
88 inline GetItemResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
89 inline GetItemResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
91 private:
92
94
95 ConsumedCapacity m_consumedCapacity;
96
97 Aws::String m_requestId;
98 };
99
100} // namespace Model
101} // namespace DynamoDB
102} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
GetItemResult & WithRequestId(const char *value)
GetItemResult & WithRequestId(Aws::String &&value)
const Aws::String & GetRequestId() const
void SetRequestId(const char *value)
void SetConsumedCapacity(ConsumedCapacity &&value)
AWS_DYNAMODB_API GetItemResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetItemResult & WithRequestId(const Aws::String &value)
GetItemResult & AddItem(Aws::String &&key, const AttributeValue &value)
GetItemResult & AddItem(Aws::String &&key, AttributeValue &&value)
const Aws::Map< Aws::String, AttributeValue > & GetItem() const
GetItemResult & AddItem(const Aws::String &key, AttributeValue &&value)
void SetConsumedCapacity(const ConsumedCapacity &value)
void SetItem(const Aws::Map< Aws::String, AttributeValue > &value)
AWS_DYNAMODB_API GetItemResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetItemResult & AddItem(const Aws::String &key, const AttributeValue &value)
GetItemResult & WithItem(const Aws::Map< Aws::String, AttributeValue > &value)
void SetRequestId(Aws::String &&value)
GetItemResult & WithConsumedCapacity(const ConsumedCapacity &value)
GetItemResult & WithConsumedCapacity(ConsumedCapacity &&value)
GetItemResult & AddItem(const char *key, AttributeValue &&value)
void SetRequestId(const Aws::String &value)
const ConsumedCapacity & GetConsumedCapacity() const
GetItemResult & WithItem(Aws::Map< Aws::String, AttributeValue > &&value)
GetItemResult & AddItem(const char *key, const AttributeValue &value)
void SetItem(Aws::Map< Aws::String, 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