AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransactWriteItemsResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/dynamodb/model/ConsumedCapacity.h>
12#include <aws/dynamodb/model/ItemCollectionMetrics.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 TransactWriteItemsResult();
37
38
40
45 inline const Aws::Vector<ConsumedCapacity>& GetConsumedCapacity() const{ return m_consumedCapacity; }
46 inline void SetConsumedCapacity(const Aws::Vector<ConsumedCapacity>& value) { m_consumedCapacity = value; }
47 inline void SetConsumedCapacity(Aws::Vector<ConsumedCapacity>&& value) { m_consumedCapacity = std::move(value); }
50 inline TransactWriteItemsResult& AddConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity.push_back(value); return *this; }
51 inline TransactWriteItemsResult& AddConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity.push_back(std::move(value)); return *this; }
53
55
61 inline const Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>& GetItemCollectionMetrics() const{ return m_itemCollectionMetrics; }
62 inline void SetItemCollectionMetrics(const Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>& value) { m_itemCollectionMetrics = value; }
63 inline void SetItemCollectionMetrics(Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>&& value) { m_itemCollectionMetrics = std::move(value); }
66 inline TransactWriteItemsResult& AddItemCollectionMetrics(const Aws::String& key, const Aws::Vector<ItemCollectionMetrics>& value) { m_itemCollectionMetrics.emplace(key, value); return *this; }
67 inline TransactWriteItemsResult& AddItemCollectionMetrics(Aws::String&& key, const Aws::Vector<ItemCollectionMetrics>& value) { m_itemCollectionMetrics.emplace(std::move(key), value); return *this; }
68 inline TransactWriteItemsResult& AddItemCollectionMetrics(const Aws::String& key, Aws::Vector<ItemCollectionMetrics>&& value) { m_itemCollectionMetrics.emplace(key, std::move(value)); return *this; }
69 inline TransactWriteItemsResult& AddItemCollectionMetrics(Aws::String&& key, Aws::Vector<ItemCollectionMetrics>&& value) { m_itemCollectionMetrics.emplace(std::move(key), std::move(value)); return *this; }
70 inline TransactWriteItemsResult& AddItemCollectionMetrics(const char* key, Aws::Vector<ItemCollectionMetrics>&& value) { m_itemCollectionMetrics.emplace(key, std::move(value)); return *this; }
71 inline TransactWriteItemsResult& AddItemCollectionMetrics(const char* key, const Aws::Vector<ItemCollectionMetrics>& value) { m_itemCollectionMetrics.emplace(key, value); return *this; }
73
75
76 inline const Aws::String& GetRequestId() const{ return m_requestId; }
77 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
78 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
79 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
80 inline TransactWriteItemsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
81 inline TransactWriteItemsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
82 inline TransactWriteItemsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
84 private:
85
86 Aws::Vector<ConsumedCapacity> m_consumedCapacity;
87
89
90 Aws::String m_requestId;
91 };
92
93} // namespace Model
94} // namespace DynamoDB
95} // namespace Aws
TransactWriteItemsResult & WithConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
TransactWriteItemsResult & AddItemCollectionMetrics(const char *key, Aws::Vector< ItemCollectionMetrics > &&value)
void SetConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
TransactWriteItemsResult & AddConsumedCapacity(ConsumedCapacity &&value)
TransactWriteItemsResult & WithRequestId(const Aws::String &value)
TransactWriteItemsResult & WithItemCollectionMetrics(Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics > > &&value)
TransactWriteItemsResult & AddItemCollectionMetrics(Aws::String &&key, Aws::Vector< ItemCollectionMetrics > &&value)
TransactWriteItemsResult & AddItemCollectionMetrics(Aws::String &&key, const Aws::Vector< ItemCollectionMetrics > &value)
TransactWriteItemsResult & AddItemCollectionMetrics(const Aws::String &key, Aws::Vector< ItemCollectionMetrics > &&value)
TransactWriteItemsResult & WithItemCollectionMetrics(const Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics > > &value)
void SetItemCollectionMetrics(const Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics > > &value)
TransactWriteItemsResult & WithRequestId(Aws::String &&value)
TransactWriteItemsResult & WithRequestId(const char *value)
TransactWriteItemsResult & AddItemCollectionMetrics(const Aws::String &key, const Aws::Vector< ItemCollectionMetrics > &value)
const Aws::Vector< ConsumedCapacity > & GetConsumedCapacity() const
TransactWriteItemsResult & AddConsumedCapacity(const ConsumedCapacity &value)
AWS_DYNAMODB_API TransactWriteItemsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TransactWriteItemsResult & WithConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
TransactWriteItemsResult & AddItemCollectionMetrics(const char *key, const Aws::Vector< ItemCollectionMetrics > &value)
void SetConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
AWS_DYNAMODB_API TransactWriteItemsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics > > & GetItemCollectionMetrics() const
void SetItemCollectionMetrics(Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics > > &&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