AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchGetItemResult.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/dynamodb/model/KeysAndAttributes.h>
12#include <aws/dynamodb/model/ConsumedCapacity.h>
13#include <aws/dynamodb/model/AttributeValue.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace DynamoDB
29{
30namespace Model
31{
39 {
40 public:
41 AWS_DYNAMODB_API BatchGetItemResult();
44
45
47
53 inline void SetResponses(const Aws::Map<Aws::String, Aws::Vector<Aws::Map<Aws::String, AttributeValue>>>& value) { m_responses = value; }
54 inline void SetResponses(Aws::Map<Aws::String, Aws::Vector<Aws::Map<Aws::String, AttributeValue>>>&& value) { m_responses = std::move(value); }
57 inline BatchGetItemResult& AddResponses(const Aws::String& key, const Aws::Vector<Aws::Map<Aws::String, AttributeValue>>& value) { m_responses.emplace(key, value); return *this; }
58 inline BatchGetItemResult& AddResponses(Aws::String&& key, const Aws::Vector<Aws::Map<Aws::String, AttributeValue>>& value) { m_responses.emplace(std::move(key), value); return *this; }
59 inline BatchGetItemResult& AddResponses(const Aws::String& key, Aws::Vector<Aws::Map<Aws::String, AttributeValue>>&& value) { m_responses.emplace(key, std::move(value)); return *this; }
60 inline BatchGetItemResult& AddResponses(Aws::String&& key, Aws::Vector<Aws::Map<Aws::String, AttributeValue>>&& value) { m_responses.emplace(std::move(key), std::move(value)); return *this; }
61 inline BatchGetItemResult& AddResponses(const char* key, Aws::Vector<Aws::Map<Aws::String, AttributeValue>>&& value) { m_responses.emplace(key, std::move(value)); return *this; }
62 inline BatchGetItemResult& AddResponses(const char* key, const Aws::Vector<Aws::Map<Aws::String, AttributeValue>>& value) { m_responses.emplace(key, value); return *this; }
64
66
83 inline const Aws::Map<Aws::String, KeysAndAttributes>& GetUnprocessedKeys() const{ return m_unprocessedKeys; }
84 inline void SetUnprocessedKeys(const Aws::Map<Aws::String, KeysAndAttributes>& value) { m_unprocessedKeys = value; }
85 inline void SetUnprocessedKeys(Aws::Map<Aws::String, KeysAndAttributes>&& value) { m_unprocessedKeys = std::move(value); }
88 inline BatchGetItemResult& AddUnprocessedKeys(const Aws::String& key, const KeysAndAttributes& value) { m_unprocessedKeys.emplace(key, value); return *this; }
89 inline BatchGetItemResult& AddUnprocessedKeys(Aws::String&& key, const KeysAndAttributes& value) { m_unprocessedKeys.emplace(std::move(key), value); return *this; }
90 inline BatchGetItemResult& AddUnprocessedKeys(const Aws::String& key, KeysAndAttributes&& value) { m_unprocessedKeys.emplace(key, std::move(value)); return *this; }
91 inline BatchGetItemResult& AddUnprocessedKeys(Aws::String&& key, KeysAndAttributes&& value) { m_unprocessedKeys.emplace(std::move(key), std::move(value)); return *this; }
92 inline BatchGetItemResult& AddUnprocessedKeys(const char* key, KeysAndAttributes&& value) { m_unprocessedKeys.emplace(key, std::move(value)); return *this; }
93 inline BatchGetItemResult& AddUnprocessedKeys(const char* key, const KeysAndAttributes& value) { m_unprocessedKeys.emplace(key, value); return *this; }
95
97
104 inline const Aws::Vector<ConsumedCapacity>& GetConsumedCapacity() const{ return m_consumedCapacity; }
105 inline void SetConsumedCapacity(const Aws::Vector<ConsumedCapacity>& value) { m_consumedCapacity = value; }
106 inline void SetConsumedCapacity(Aws::Vector<ConsumedCapacity>&& value) { m_consumedCapacity = std::move(value); }
109 inline BatchGetItemResult& AddConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity.push_back(value); return *this; }
110 inline BatchGetItemResult& AddConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity.push_back(std::move(value)); return *this; }
112
114
115 inline const Aws::String& GetRequestId() const{ return m_requestId; }
116 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
117 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
118 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
119 inline BatchGetItemResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
120 inline BatchGetItemResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
121 inline BatchGetItemResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
123 private:
124
126
128
129 Aws::Vector<ConsumedCapacity> m_consumedCapacity;
130
131 Aws::String m_requestId;
132 };
133
134} // namespace Model
135} // namespace DynamoDB
136} // namespace Aws
BatchGetItemResult & AddUnprocessedKeys(const Aws::String &key, KeysAndAttributes &&value)
BatchGetItemResult & WithResponses(const Aws::Map< Aws::String, Aws::Vector< Aws::Map< Aws::String, AttributeValue > > > &value)
BatchGetItemResult & AddResponses(const char *key, Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &&value)
BatchGetItemResult & WithConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
void SetConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
const Aws::Vector< ConsumedCapacity > & GetConsumedCapacity() const
BatchGetItemResult & WithUnprocessedKeys(Aws::Map< Aws::String, KeysAndAttributes > &&value)
BatchGetItemResult & AddUnprocessedKeys(const char *key, KeysAndAttributes &&value)
void SetRequestId(const Aws::String &value)
BatchGetItemResult & WithConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
BatchGetItemResult & AddUnprocessedKeys(const Aws::String &key, const KeysAndAttributes &value)
BatchGetItemResult & AddConsumedCapacity(ConsumedCapacity &&value)
AWS_DYNAMODB_API BatchGetItemResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, KeysAndAttributes > & GetUnprocessedKeys() const
BatchGetItemResult & AddUnprocessedKeys(Aws::String &&key, const KeysAndAttributes &value)
BatchGetItemResult & AddResponses(const Aws::String &key, Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &&value)
BatchGetItemResult & AddResponses(const char *key, const Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &value)
BatchGetItemResult & AddResponses(const Aws::String &key, const Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &value)
void SetResponses(Aws::Map< Aws::String, Aws::Vector< Aws::Map< Aws::String, AttributeValue > > > &&value)
void SetResponses(const Aws::Map< Aws::String, Aws::Vector< Aws::Map< Aws::String, AttributeValue > > > &value)
void SetUnprocessedKeys(const Aws::Map< Aws::String, KeysAndAttributes > &value)
BatchGetItemResult & WithResponses(Aws::Map< Aws::String, Aws::Vector< Aws::Map< Aws::String, AttributeValue > > > &&value)
BatchGetItemResult & AddUnprocessedKeys(Aws::String &&key, KeysAndAttributes &&value)
BatchGetItemResult & AddConsumedCapacity(const ConsumedCapacity &value)
BatchGetItemResult & WithRequestId(const char *value)
BatchGetItemResult & WithUnprocessedKeys(const Aws::Map< Aws::String, KeysAndAttributes > &value)
void SetConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
BatchGetItemResult & WithRequestId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::Map< Aws::String, AttributeValue > > > & GetResponses() const
BatchGetItemResult & AddUnprocessedKeys(const char *key, const KeysAndAttributes &value)
void SetUnprocessedKeys(Aws::Map< Aws::String, KeysAndAttributes > &&value)
BatchGetItemResult & AddResponses(Aws::String &&key, Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &&value)
BatchGetItemResult & WithRequestId(const Aws::String &value)
BatchGetItemResult & AddResponses(Aws::String &&key, const Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &value)
AWS_DYNAMODB_API BatchGetItemResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue