AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransactGetItemsResult.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/dynamodb/model/ItemResponse.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 TransactGetItemsResult();
36
37
39
46 inline const Aws::Vector<ConsumedCapacity>& GetConsumedCapacity() const{ return m_consumedCapacity; }
47 inline void SetConsumedCapacity(const Aws::Vector<ConsumedCapacity>& value) { m_consumedCapacity = value; }
48 inline void SetConsumedCapacity(Aws::Vector<ConsumedCapacity>&& value) { m_consumedCapacity = std::move(value); }
51 inline TransactGetItemsResult& AddConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity.push_back(value); return *this; }
52 inline TransactGetItemsResult& AddConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity.push_back(std::move(value)); return *this; }
54
56
66 inline const Aws::Vector<ItemResponse>& GetResponses() const{ return m_responses; }
67 inline void SetResponses(const Aws::Vector<ItemResponse>& value) { m_responses = value; }
68 inline void SetResponses(Aws::Vector<ItemResponse>&& value) { m_responses = std::move(value); }
69 inline TransactGetItemsResult& WithResponses(const Aws::Vector<ItemResponse>& value) { SetResponses(value); return *this;}
70 inline TransactGetItemsResult& WithResponses(Aws::Vector<ItemResponse>&& value) { SetResponses(std::move(value)); return *this;}
71 inline TransactGetItemsResult& AddResponses(const ItemResponse& value) { m_responses.push_back(value); return *this; }
72 inline TransactGetItemsResult& AddResponses(ItemResponse&& value) { m_responses.push_back(std::move(value)); return *this; }
74
76
77 inline const Aws::String& GetRequestId() const{ return m_requestId; }
78 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
79 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
80 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
81 inline TransactGetItemsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
82 inline TransactGetItemsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
83 inline TransactGetItemsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
85 private:
86
87 Aws::Vector<ConsumedCapacity> m_consumedCapacity;
88
89 Aws::Vector<ItemResponse> m_responses;
90
91 Aws::String m_requestId;
92 };
93
94} // namespace Model
95} // namespace DynamoDB
96} // namespace Aws
AWS_DYNAMODB_API TransactGetItemsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TransactGetItemsResult & AddConsumedCapacity(const ConsumedCapacity &value)
const Aws::Vector< ConsumedCapacity > & GetConsumedCapacity() const
TransactGetItemsResult & AddResponses(const ItemResponse &value)
void SetConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
TransactGetItemsResult & WithRequestId(const char *value)
TransactGetItemsResult & WithRequestId(const Aws::String &value)
void SetConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
TransactGetItemsResult & WithResponses(Aws::Vector< ItemResponse > &&value)
TransactGetItemsResult & WithConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
const Aws::Vector< ItemResponse > & GetResponses() const
TransactGetItemsResult & WithResponses(const Aws::Vector< ItemResponse > &value)
TransactGetItemsResult & AddConsumedCapacity(ConsumedCapacity &&value)
void SetResponses(const Aws::Vector< ItemResponse > &value)
void SetResponses(Aws::Vector< ItemResponse > &&value)
TransactGetItemsResult & WithRequestId(Aws::String &&value)
AWS_DYNAMODB_API TransactGetItemsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TransactGetItemsResult & WithConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
TransactGetItemsResult & AddResponses(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