AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExecuteTransactionResult.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/ItemResponse.h>
11#include <aws/dynamodb/model/ConsumedCapacity.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DynamoDB
27{
28namespace Model
29{
31 {
32 public:
33 AWS_DYNAMODB_API ExecuteTransactionResult();
36
37
39
42 inline const Aws::Vector<ItemResponse>& GetResponses() const{ return m_responses; }
43 inline void SetResponses(const Aws::Vector<ItemResponse>& value) { m_responses = value; }
44 inline void SetResponses(Aws::Vector<ItemResponse>&& value) { m_responses = std::move(value); }
46 inline ExecuteTransactionResult& WithResponses(Aws::Vector<ItemResponse>&& value) { SetResponses(std::move(value)); return *this;}
47 inline ExecuteTransactionResult& AddResponses(const ItemResponse& value) { m_responses.push_back(value); return *this; }
48 inline ExecuteTransactionResult& AddResponses(ItemResponse&& value) { m_responses.push_back(std::move(value)); return *this; }
50
52
56 inline const Aws::Vector<ConsumedCapacity>& GetConsumedCapacity() const{ return m_consumedCapacity; }
57 inline void SetConsumedCapacity(const Aws::Vector<ConsumedCapacity>& value) { m_consumedCapacity = value; }
58 inline void SetConsumedCapacity(Aws::Vector<ConsumedCapacity>&& value) { m_consumedCapacity = std::move(value); }
61 inline ExecuteTransactionResult& AddConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity.push_back(value); return *this; }
62 inline ExecuteTransactionResult& AddConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity.push_back(std::move(value)); return *this; }
64
66
67 inline const Aws::String& GetRequestId() const{ return m_requestId; }
68 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
69 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
70 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
71 inline ExecuteTransactionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
72 inline ExecuteTransactionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
73 inline ExecuteTransactionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
75 private:
76
77 Aws::Vector<ItemResponse> m_responses;
78
79 Aws::Vector<ConsumedCapacity> m_consumedCapacity;
80
81 Aws::String m_requestId;
82 };
83
84} // namespace Model
85} // namespace DynamoDB
86} // namespace Aws
ExecuteTransactionResult & AddConsumedCapacity(const ConsumedCapacity &value)
ExecuteTransactionResult & WithConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
ExecuteTransactionResult & WithRequestId(const char *value)
AWS_DYNAMODB_API ExecuteTransactionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ExecuteTransactionResult & WithRequestId(const Aws::String &value)
const Aws::Vector< ConsumedCapacity > & GetConsumedCapacity() const
ExecuteTransactionResult & WithConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
void SetConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
ExecuteTransactionResult & AddConsumedCapacity(ConsumedCapacity &&value)
void SetConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
AWS_DYNAMODB_API ExecuteTransactionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ExecuteTransactionResult & WithResponses(const Aws::Vector< ItemResponse > &value)
ExecuteTransactionResult & WithRequestId(Aws::String &&value)
void SetResponses(Aws::Vector< ItemResponse > &&value)
ExecuteTransactionResult & AddResponses(ItemResponse &&value)
void SetResponses(const Aws::Vector< ItemResponse > &value)
const Aws::Vector< ItemResponse > & GetResponses() const
ExecuteTransactionResult & AddResponses(const ItemResponse &value)
ExecuteTransactionResult & WithResponses(Aws::Vector< ItemResponse > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue