AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
37
38
40
45 inline const Aws::Vector<Aws::Map<Aws::String, AttributeValue>>& GetItems() const{ return m_items; }
46 inline void SetItems(const Aws::Vector<Aws::Map<Aws::String, AttributeValue>>& value) { m_items = value; }
47 inline void SetItems(Aws::Vector<Aws::Map<Aws::String, AttributeValue>>&& value) { m_items = std::move(value); }
50 inline ExecuteStatementResult& AddItems(const Aws::Map<Aws::String, AttributeValue>& value) { m_items.push_back(value); return *this; }
51 inline ExecuteStatementResult& AddItems(Aws::Map<Aws::String, AttributeValue>&& value) { m_items.push_back(std::move(value)); return *this; }
53
55
60 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
61 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
62 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
63 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
64 inline ExecuteStatementResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
65 inline ExecuteStatementResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
66 inline ExecuteStatementResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
68
70
71 inline const ConsumedCapacity& GetConsumedCapacity() const{ return m_consumedCapacity; }
72 inline void SetConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity = value; }
73 inline void SetConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity = std::move(value); }
75 inline ExecuteStatementResult& WithConsumedCapacity(ConsumedCapacity&& value) { SetConsumedCapacity(std::move(value)); return *this;}
77
79
89 inline const Aws::Map<Aws::String, AttributeValue>& GetLastEvaluatedKey() const{ return m_lastEvaluatedKey; }
90 inline void SetLastEvaluatedKey(const Aws::Map<Aws::String, AttributeValue>& value) { m_lastEvaluatedKey = value; }
91 inline void SetLastEvaluatedKey(Aws::Map<Aws::String, AttributeValue>&& value) { m_lastEvaluatedKey = std::move(value); }
94 inline ExecuteStatementResult& AddLastEvaluatedKey(const Aws::String& key, const AttributeValue& value) { m_lastEvaluatedKey.emplace(key, value); return *this; }
95 inline ExecuteStatementResult& AddLastEvaluatedKey(Aws::String&& key, const AttributeValue& value) { m_lastEvaluatedKey.emplace(std::move(key), value); return *this; }
96 inline ExecuteStatementResult& AddLastEvaluatedKey(const Aws::String& key, AttributeValue&& value) { m_lastEvaluatedKey.emplace(key, std::move(value)); return *this; }
97 inline ExecuteStatementResult& AddLastEvaluatedKey(Aws::String&& key, AttributeValue&& value) { m_lastEvaluatedKey.emplace(std::move(key), std::move(value)); return *this; }
98 inline ExecuteStatementResult& AddLastEvaluatedKey(const char* key, AttributeValue&& value) { m_lastEvaluatedKey.emplace(key, std::move(value)); return *this; }
99 inline ExecuteStatementResult& AddLastEvaluatedKey(const char* key, const AttributeValue& value) { m_lastEvaluatedKey.emplace(key, value); return *this; }
101
103
104 inline const Aws::String& GetRequestId() const{ return m_requestId; }
105 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
106 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
107 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
108 inline ExecuteStatementResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
109 inline ExecuteStatementResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
110 inline ExecuteStatementResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
112 private:
113
115
116 Aws::String m_nextToken;
117
118 ConsumedCapacity m_consumedCapacity;
119
120 Aws::Map<Aws::String, AttributeValue> m_lastEvaluatedKey;
121
122 Aws::String m_requestId;
123 };
124
125} // namespace Model
126} // namespace DynamoDB
127} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
void SetItems(const Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &value)
ExecuteStatementResult & WithRequestId(const Aws::String &value)
ExecuteStatementResult & AddLastEvaluatedKey(const char *key, const AttributeValue &value)
ExecuteStatementResult & WithNextToken(const char *value)
const ConsumedCapacity & GetConsumedCapacity() const
ExecuteStatementResult & WithNextToken(const Aws::String &value)
ExecuteStatementResult & AddLastEvaluatedKey(const Aws::String &key, const AttributeValue &value)
ExecuteStatementResult & WithLastEvaluatedKey(Aws::Map< Aws::String, AttributeValue > &&value)
ExecuteStatementResult & WithRequestId(Aws::String &&value)
ExecuteStatementResult & WithLastEvaluatedKey(const Aws::Map< Aws::String, AttributeValue > &value)
ExecuteStatementResult & WithItems(const Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &value)
const Aws::Vector< Aws::Map< Aws::String, AttributeValue > > & GetItems() const
void SetItems(Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &&value)
ExecuteStatementResult & AddLastEvaluatedKey(Aws::String &&key, const AttributeValue &value)
ExecuteStatementResult & AddItems(const Aws::Map< Aws::String, AttributeValue > &value)
ExecuteStatementResult & WithItems(Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &&value)
ExecuteStatementResult & WithRequestId(const char *value)
ExecuteStatementResult & WithConsumedCapacity(ConsumedCapacity &&value)
void SetConsumedCapacity(const ConsumedCapacity &value)
const Aws::Map< Aws::String, AttributeValue > & GetLastEvaluatedKey() const
void SetLastEvaluatedKey(const Aws::Map< Aws::String, AttributeValue > &value)
ExecuteStatementResult & AddLastEvaluatedKey(Aws::String &&key, AttributeValue &&value)
ExecuteStatementResult & AddLastEvaluatedKey(const char *key, AttributeValue &&value)
ExecuteStatementResult & AddItems(Aws::Map< Aws::String, AttributeValue > &&value)
AWS_DYNAMODB_API ExecuteStatementResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DYNAMODB_API ExecuteStatementResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ExecuteStatementResult & WithConsumedCapacity(const ConsumedCapacity &value)
ExecuteStatementResult & AddLastEvaluatedKey(const Aws::String &key, AttributeValue &&value)
void SetLastEvaluatedKey(Aws::Map< Aws::String, AttributeValue > &&value)
ExecuteStatementResult & WithNextToken(Aws::String &&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