AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ExecuteStatementResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dynamodb/DynamoDB_EXPORTS.h>
11#include <aws/dynamodb/model/AttributeValue.h>
12#include <aws/dynamodb/model/ConsumedCapacity.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace DynamoDB {
26namespace Model {
28 public:
29 AWS_DYNAMODB_API ExecuteStatementResult() = default;
32
34
39 inline const Aws::Vector<Aws::Map<Aws::String, AttributeValue>>& GetItems() const { return m_items; }
40 template <typename ItemsT = Aws::Vector<Aws::Map<Aws::String, AttributeValue>>>
41 void SetItems(ItemsT&& value) {
42 m_itemsHasBeenSet = true;
43 m_items = std::forward<ItemsT>(value);
44 }
45 template <typename ItemsT = Aws::Vector<Aws::Map<Aws::String, AttributeValue>>>
47 SetItems(std::forward<ItemsT>(value));
48 return *this;
49 }
50 template <typename ItemsT = Aws::Map<Aws::String, AttributeValue>>
52 m_itemsHasBeenSet = true;
53 m_items.emplace_back(std::forward<ItemsT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetNextToken() const { return m_nextToken; }
65 template <typename NextTokenT = Aws::String>
66 void SetNextToken(NextTokenT&& value) {
67 m_nextTokenHasBeenSet = true;
68 m_nextToken = std::forward<NextTokenT>(value);
69 }
70 template <typename NextTokenT = Aws::String>
72 SetNextToken(std::forward<NextTokenT>(value));
73 return *this;
74 }
76
78
79 inline const ConsumedCapacity& GetConsumedCapacity() const { return m_consumedCapacity; }
80 template <typename ConsumedCapacityT = ConsumedCapacity>
81 void SetConsumedCapacity(ConsumedCapacityT&& value) {
82 m_consumedCapacityHasBeenSet = true;
83 m_consumedCapacity = std::forward<ConsumedCapacityT>(value);
84 }
85 template <typename ConsumedCapacityT = ConsumedCapacity>
86 ExecuteStatementResult& WithConsumedCapacity(ConsumedCapacityT&& value) {
87 SetConsumedCapacity(std::forward<ConsumedCapacityT>(value));
88 return *this;
89 }
91
93
103 inline const Aws::Map<Aws::String, AttributeValue>& GetLastEvaluatedKey() const { return m_lastEvaluatedKey; }
104 template <typename LastEvaluatedKeyT = Aws::Map<Aws::String, AttributeValue>>
105 void SetLastEvaluatedKey(LastEvaluatedKeyT&& value) {
106 m_lastEvaluatedKeyHasBeenSet = true;
107 m_lastEvaluatedKey = std::forward<LastEvaluatedKeyT>(value);
108 }
109 template <typename LastEvaluatedKeyT = Aws::Map<Aws::String, AttributeValue>>
110 ExecuteStatementResult& WithLastEvaluatedKey(LastEvaluatedKeyT&& value) {
111 SetLastEvaluatedKey(std::forward<LastEvaluatedKeyT>(value));
112 return *this;
113 }
114 template <typename LastEvaluatedKeyKeyT = Aws::String, typename LastEvaluatedKeyValueT = AttributeValue>
115 ExecuteStatementResult& AddLastEvaluatedKey(LastEvaluatedKeyKeyT&& key, LastEvaluatedKeyValueT&& value) {
116 m_lastEvaluatedKeyHasBeenSet = true;
117 m_lastEvaluatedKey.emplace(std::forward<LastEvaluatedKeyKeyT>(key), std::forward<LastEvaluatedKeyValueT>(value));
118 return *this;
119 }
121
123
124 inline const Aws::String& GetRequestId() const { return m_requestId; }
125 template <typename RequestIdT = Aws::String>
126 void SetRequestId(RequestIdT&& value) {
127 m_requestIdHasBeenSet = true;
128 m_requestId = std::forward<RequestIdT>(value);
129 }
130 template <typename RequestIdT = Aws::String>
132 SetRequestId(std::forward<RequestIdT>(value));
133 return *this;
134 }
136 private:
138
139 Aws::String m_nextToken;
140
141 ConsumedCapacity m_consumedCapacity;
142
143 Aws::Map<Aws::String, AttributeValue> m_lastEvaluatedKey;
144
145 Aws::String m_requestId;
146 bool m_itemsHasBeenSet = false;
147 bool m_nextTokenHasBeenSet = false;
148 bool m_consumedCapacityHasBeenSet = false;
149 bool m_lastEvaluatedKeyHasBeenSet = false;
150 bool m_requestIdHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace DynamoDB
155} // namespace Aws
const ConsumedCapacity & GetConsumedCapacity() const
void SetLastEvaluatedKey(LastEvaluatedKeyT &&value)
ExecuteStatementResult & WithConsumedCapacity(ConsumedCapacityT &&value)
ExecuteStatementResult & AddLastEvaluatedKey(LastEvaluatedKeyKeyT &&key, LastEvaluatedKeyValueT &&value)
const Aws::Vector< Aws::Map< Aws::String, AttributeValue > > & GetItems() const
ExecuteStatementResult & WithNextToken(NextTokenT &&value)
ExecuteStatementResult & WithItems(ItemsT &&value)
const Aws::Map< Aws::String, AttributeValue > & GetLastEvaluatedKey() const
AWS_DYNAMODB_API ExecuteStatementResult()=default
AWS_DYNAMODB_API ExecuteStatementResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetConsumedCapacity(ConsumedCapacityT &&value)
ExecuteStatementResult & WithLastEvaluatedKey(LastEvaluatedKeyT &&value)
AWS_DYNAMODB_API ExecuteStatementResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ExecuteStatementResult & WithRequestId(RequestIdT &&value)
ExecuteStatementResult & AddItems(ItemsT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue