AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ExecuteStatementResult.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/AWSString.h>
10#include <aws/dynamodb/model/ConsumedCapacity.h>
11#include <aws/core/utils/memory/stl/AWSMap.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{
32 {
33 public:
34 AWS_DYNAMODB_API ExecuteStatementResult() = default;
37
38
40
45 inline const Aws::Vector<Aws::Map<Aws::String, AttributeValue>>& GetItems() const { return m_items; }
46 template<typename ItemsT = Aws::Vector<Aws::Map<Aws::String, AttributeValue>>>
47 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
48 template<typename ItemsT = Aws::Vector<Aws::Map<Aws::String, AttributeValue>>>
49 ExecuteStatementResult& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
50 template<typename ItemsT = Aws::Map<Aws::String, AttributeValue>>
51 ExecuteStatementResult& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
53
55
60 inline const Aws::String& GetNextToken() const { return m_nextToken; }
61 template<typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
63 template<typename NextTokenT = Aws::String>
64 ExecuteStatementResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
66
68
69 inline const ConsumedCapacity& GetConsumedCapacity() const { return m_consumedCapacity; }
70 template<typename ConsumedCapacityT = ConsumedCapacity>
71 void SetConsumedCapacity(ConsumedCapacityT&& value) { m_consumedCapacityHasBeenSet = true; m_consumedCapacity = std::forward<ConsumedCapacityT>(value); }
72 template<typename ConsumedCapacityT = ConsumedCapacity>
73 ExecuteStatementResult& WithConsumedCapacity(ConsumedCapacityT&& value) { SetConsumedCapacity(std::forward<ConsumedCapacityT>(value)); return *this;}
75
77
87 inline const Aws::Map<Aws::String, AttributeValue>& GetLastEvaluatedKey() const { return m_lastEvaluatedKey; }
88 template<typename LastEvaluatedKeyT = Aws::Map<Aws::String, AttributeValue>>
89 void SetLastEvaluatedKey(LastEvaluatedKeyT&& value) { m_lastEvaluatedKeyHasBeenSet = true; m_lastEvaluatedKey = std::forward<LastEvaluatedKeyT>(value); }
90 template<typename LastEvaluatedKeyT = Aws::Map<Aws::String, AttributeValue>>
91 ExecuteStatementResult& WithLastEvaluatedKey(LastEvaluatedKeyT&& value) { SetLastEvaluatedKey(std::forward<LastEvaluatedKeyT>(value)); return *this;}
92 template<typename LastEvaluatedKeyKeyT = Aws::String, typename LastEvaluatedKeyValueT = AttributeValue>
93 ExecuteStatementResult& AddLastEvaluatedKey(LastEvaluatedKeyKeyT&& key, LastEvaluatedKeyValueT&& value) {
94 m_lastEvaluatedKeyHasBeenSet = true; m_lastEvaluatedKey.emplace(std::forward<LastEvaluatedKeyKeyT>(key), std::forward<LastEvaluatedKeyValueT>(value)); return *this;
95 }
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template<typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
103 template<typename RequestIdT = Aws::String>
104 ExecuteStatementResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
106 private:
107
109 bool m_itemsHasBeenSet = false;
110
111 Aws::String m_nextToken;
112 bool m_nextTokenHasBeenSet = false;
113
114 ConsumedCapacity m_consumedCapacity;
115 bool m_consumedCapacityHasBeenSet = false;
116
117 Aws::Map<Aws::String, AttributeValue> m_lastEvaluatedKey;
118 bool m_lastEvaluatedKeyHasBeenSet = false;
119
120 Aws::String m_requestId;
121 bool m_requestIdHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace DynamoDB
126} // 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