AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
QueryResult.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/dynamodb/model/ConsumedCapacity.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/dynamodb/model/AttributeValue.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DynamoDB
28{
29namespace Model
30{
38 {
39 public:
40 AWS_DYNAMODB_API QueryResult();
43
44
46
50 inline const Aws::Vector<Aws::Map<Aws::String, AttributeValue>>& GetItems() const{ return m_items; }
51 inline void SetItems(const Aws::Vector<Aws::Map<Aws::String, AttributeValue>>& value) { m_items = value; }
52 inline void SetItems(Aws::Vector<Aws::Map<Aws::String, AttributeValue>>&& value) { m_items = std::move(value); }
53 inline QueryResult& WithItems(const Aws::Vector<Aws::Map<Aws::String, AttributeValue>>& value) { SetItems(value); return *this;}
54 inline QueryResult& WithItems(Aws::Vector<Aws::Map<Aws::String, AttributeValue>>&& value) { SetItems(std::move(value)); return *this;}
55 inline QueryResult& AddItems(const Aws::Map<Aws::String, AttributeValue>& value) { m_items.push_back(value); return *this; }
56 inline QueryResult& AddItems(Aws::Map<Aws::String, AttributeValue>&& value) { m_items.push_back(std::move(value)); return *this; }
58
60
68 inline int GetCount() const{ return m_count; }
69 inline void SetCount(int value) { m_count = value; }
70 inline QueryResult& WithCount(int value) { SetCount(value); return *this;}
72
74
84 inline int GetScannedCount() const{ return m_scannedCount; }
85 inline void SetScannedCount(int value) { m_scannedCount = value; }
86 inline QueryResult& WithScannedCount(int value) { SetScannedCount(value); return *this;}
88
90
100 inline const Aws::Map<Aws::String, AttributeValue>& GetLastEvaluatedKey() const{ return m_lastEvaluatedKey; }
101 inline void SetLastEvaluatedKey(const Aws::Map<Aws::String, AttributeValue>& value) { m_lastEvaluatedKey = value; }
102 inline void SetLastEvaluatedKey(Aws::Map<Aws::String, AttributeValue>&& value) { m_lastEvaluatedKey = std::move(value); }
105 inline QueryResult& AddLastEvaluatedKey(const Aws::String& key, const AttributeValue& value) { m_lastEvaluatedKey.emplace(key, value); return *this; }
106 inline QueryResult& AddLastEvaluatedKey(Aws::String&& key, const AttributeValue& value) { m_lastEvaluatedKey.emplace(std::move(key), value); return *this; }
107 inline QueryResult& AddLastEvaluatedKey(const Aws::String& key, AttributeValue&& value) { m_lastEvaluatedKey.emplace(key, std::move(value)); return *this; }
108 inline QueryResult& AddLastEvaluatedKey(Aws::String&& key, AttributeValue&& value) { m_lastEvaluatedKey.emplace(std::move(key), std::move(value)); return *this; }
109 inline QueryResult& AddLastEvaluatedKey(const char* key, AttributeValue&& value) { m_lastEvaluatedKey.emplace(key, std::move(value)); return *this; }
110 inline QueryResult& AddLastEvaluatedKey(const char* key, const AttributeValue& value) { m_lastEvaluatedKey.emplace(key, value); return *this; }
112
114
125 inline const ConsumedCapacity& GetConsumedCapacity() const{ return m_consumedCapacity; }
126 inline void SetConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity = value; }
127 inline void SetConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity = std::move(value); }
128 inline QueryResult& WithConsumedCapacity(const ConsumedCapacity& value) { SetConsumedCapacity(value); return *this;}
129 inline QueryResult& WithConsumedCapacity(ConsumedCapacity&& value) { SetConsumedCapacity(std::move(value)); return *this;}
131
133
134 inline const Aws::String& GetRequestId() const{ return m_requestId; }
135 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
136 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
137 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
138 inline QueryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
139 inline QueryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
140 inline QueryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
142 private:
143
145
146 int m_count;
147
148 int m_scannedCount;
149
150 Aws::Map<Aws::String, AttributeValue> m_lastEvaluatedKey;
151
152 ConsumedCapacity m_consumedCapacity;
153
154 Aws::String m_requestId;
155 };
156
157} // namespace Model
158} // namespace DynamoDB
159} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
const ConsumedCapacity & GetConsumedCapacity() const
QueryResult & AddLastEvaluatedKey(const char *key, const AttributeValue &value)
const Aws::Vector< Aws::Map< Aws::String, AttributeValue > > & GetItems() const
Definition QueryResult.h:50
void SetConsumedCapacity(const ConsumedCapacity &value)
QueryResult & WithConsumedCapacity(const ConsumedCapacity &value)
QueryResult & AddItems(Aws::Map< Aws::String, AttributeValue > &&value)
Definition QueryResult.h:56
void SetConsumedCapacity(ConsumedCapacity &&value)
QueryResult & WithRequestId(const char *value)
QueryResult & WithConsumedCapacity(ConsumedCapacity &&value)
void SetLastEvaluatedKey(Aws::Map< Aws::String, AttributeValue > &&value)
QueryResult & AddLastEvaluatedKey(const Aws::String &key, const AttributeValue &value)
QueryResult & AddLastEvaluatedKey(const Aws::String &key, AttributeValue &&value)
void SetRequestId(const Aws::String &value)
QueryResult & WithRequestId(const Aws::String &value)
AWS_DYNAMODB_API QueryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
QueryResult & WithLastEvaluatedKey(const Aws::Map< Aws::String, AttributeValue > &value)
void SetItems(const Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &value)
Definition QueryResult.h:51
QueryResult & WithLastEvaluatedKey(Aws::Map< Aws::String, AttributeValue > &&value)
QueryResult & WithRequestId(Aws::String &&value)
QueryResult & AddLastEvaluatedKey(const char *key, AttributeValue &&value)
const Aws::Map< Aws::String, AttributeValue > & GetLastEvaluatedKey() const
void SetRequestId(const char *value)
QueryResult & AddLastEvaluatedKey(Aws::String &&key, const AttributeValue &value)
void SetItems(Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &&value)
Definition QueryResult.h:52
AWS_DYNAMODB_API QueryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
QueryResult & AddLastEvaluatedKey(Aws::String &&key, AttributeValue &&value)
void SetLastEvaluatedKey(const Aws::Map< Aws::String, AttributeValue > &value)
const Aws::String & GetRequestId() const
QueryResult & WithItems(const Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &value)
Definition QueryResult.h:53
QueryResult & WithCount(int value)
Definition QueryResult.h:70
void SetRequestId(Aws::String &&value)
QueryResult & WithItems(Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &&value)
Definition QueryResult.h:54
QueryResult & WithScannedCount(int value)
Definition QueryResult.h:86
QueryResult & AddItems(const Aws::Map< Aws::String, AttributeValue > &value)
Definition QueryResult.h:55
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