AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchWriteItemResult.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/dynamodb/model/ConsumedCapacity.h>
12#include <aws/dynamodb/model/WriteRequest.h>
13#include <aws/dynamodb/model/ItemCollectionMetrics.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace DynamoDB
29{
30namespace Model
31{
39 {
40 public:
41 AWS_DYNAMODB_API BatchWriteItemResult();
44
45
47
73 inline const Aws::Map<Aws::String, Aws::Vector<WriteRequest>>& GetUnprocessedItems() const{ return m_unprocessedItems; }
74 inline void SetUnprocessedItems(const Aws::Map<Aws::String, Aws::Vector<WriteRequest>>& value) { m_unprocessedItems = value; }
75 inline void SetUnprocessedItems(Aws::Map<Aws::String, Aws::Vector<WriteRequest>>&& value) { m_unprocessedItems = std::move(value); }
78 inline BatchWriteItemResult& AddUnprocessedItems(const Aws::String& key, const Aws::Vector<WriteRequest>& value) { m_unprocessedItems.emplace(key, value); return *this; }
79 inline BatchWriteItemResult& AddUnprocessedItems(Aws::String&& key, const Aws::Vector<WriteRequest>& value) { m_unprocessedItems.emplace(std::move(key), value); return *this; }
80 inline BatchWriteItemResult& AddUnprocessedItems(const Aws::String& key, Aws::Vector<WriteRequest>&& value) { m_unprocessedItems.emplace(key, std::move(value)); return *this; }
81 inline BatchWriteItemResult& AddUnprocessedItems(Aws::String&& key, Aws::Vector<WriteRequest>&& value) { m_unprocessedItems.emplace(std::move(key), std::move(value)); return *this; }
82 inline BatchWriteItemResult& AddUnprocessedItems(const char* key, Aws::Vector<WriteRequest>&& value) { m_unprocessedItems.emplace(key, std::move(value)); return *this; }
83 inline BatchWriteItemResult& AddUnprocessedItems(const char* key, const Aws::Vector<WriteRequest>& value) { m_unprocessedItems.emplace(key, value); return *this; }
85
87
103 inline const Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>& GetItemCollectionMetrics() const{ return m_itemCollectionMetrics; }
104 inline void SetItemCollectionMetrics(const Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>& value) { m_itemCollectionMetrics = value; }
105 inline void SetItemCollectionMetrics(Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>&& value) { m_itemCollectionMetrics = std::move(value); }
108 inline BatchWriteItemResult& AddItemCollectionMetrics(const Aws::String& key, const Aws::Vector<ItemCollectionMetrics>& value) { m_itemCollectionMetrics.emplace(key, value); return *this; }
109 inline BatchWriteItemResult& AddItemCollectionMetrics(Aws::String&& key, const Aws::Vector<ItemCollectionMetrics>& value) { m_itemCollectionMetrics.emplace(std::move(key), value); return *this; }
110 inline BatchWriteItemResult& AddItemCollectionMetrics(const Aws::String& key, Aws::Vector<ItemCollectionMetrics>&& value) { m_itemCollectionMetrics.emplace(key, std::move(value)); return *this; }
111 inline BatchWriteItemResult& AddItemCollectionMetrics(Aws::String&& key, Aws::Vector<ItemCollectionMetrics>&& value) { m_itemCollectionMetrics.emplace(std::move(key), std::move(value)); return *this; }
112 inline BatchWriteItemResult& AddItemCollectionMetrics(const char* key, Aws::Vector<ItemCollectionMetrics>&& value) { m_itemCollectionMetrics.emplace(key, std::move(value)); return *this; }
113 inline BatchWriteItemResult& AddItemCollectionMetrics(const char* key, const Aws::Vector<ItemCollectionMetrics>& value) { m_itemCollectionMetrics.emplace(key, value); return *this; }
115
117
124 inline const Aws::Vector<ConsumedCapacity>& GetConsumedCapacity() const{ return m_consumedCapacity; }
125 inline void SetConsumedCapacity(const Aws::Vector<ConsumedCapacity>& value) { m_consumedCapacity = value; }
126 inline void SetConsumedCapacity(Aws::Vector<ConsumedCapacity>&& value) { m_consumedCapacity = std::move(value); }
129 inline BatchWriteItemResult& AddConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity.push_back(value); return *this; }
130 inline BatchWriteItemResult& AddConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity.push_back(std::move(value)); return *this; }
132
134
135 inline const Aws::String& GetRequestId() const{ return m_requestId; }
136 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
137 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
138 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
139 inline BatchWriteItemResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
140 inline BatchWriteItemResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
141 inline BatchWriteItemResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
143 private:
144
146
148
149 Aws::Vector<ConsumedCapacity> m_consumedCapacity;
150
151 Aws::String m_requestId;
152 };
153
154} // namespace Model
155} // namespace DynamoDB
156} // namespace Aws
BatchWriteItemResult & AddItemCollectionMetrics(const Aws::String &key, const Aws::Vector< ItemCollectionMetrics > &value)
BatchWriteItemResult & WithRequestId(const char *value)
void SetUnprocessedItems(const Aws::Map< Aws::String, Aws::Vector< WriteRequest > > &value)
void SetConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
BatchWriteItemResult & WithConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
BatchWriteItemResult & AddUnprocessedItems(Aws::String &&key, Aws::Vector< WriteRequest > &&value)
BatchWriteItemResult & AddItemCollectionMetrics(Aws::String &&key, const Aws::Vector< ItemCollectionMetrics > &value)
BatchWriteItemResult & AddUnprocessedItems(const Aws::String &key, Aws::Vector< WriteRequest > &&value)
BatchWriteItemResult & WithUnprocessedItems(Aws::Map< Aws::String, Aws::Vector< WriteRequest > > &&value)
void SetConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
BatchWriteItemResult & AddUnprocessedItems(const Aws::String &key, const Aws::Vector< WriteRequest > &value)
AWS_DYNAMODB_API BatchWriteItemResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchWriteItemResult & WithConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
BatchWriteItemResult & AddItemCollectionMetrics(const char *key, Aws::Vector< ItemCollectionMetrics > &&value)
BatchWriteItemResult & AddItemCollectionMetrics(Aws::String &&key, Aws::Vector< ItemCollectionMetrics > &&value)
void SetItemCollectionMetrics(const Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics > > &value)
BatchWriteItemResult & AddUnprocessedItems(Aws::String &&key, const Aws::Vector< WriteRequest > &value)
const Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics > > & GetItemCollectionMetrics() const
BatchWriteItemResult & AddUnprocessedItems(const char *key, Aws::Vector< WriteRequest > &&value)
BatchWriteItemResult & WithRequestId(Aws::String &&value)
BatchWriteItemResult & WithUnprocessedItems(const Aws::Map< Aws::String, Aws::Vector< WriteRequest > > &value)
BatchWriteItemResult & WithItemCollectionMetrics(Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics > > &&value)
BatchWriteItemResult & AddItemCollectionMetrics(const Aws::String &key, Aws::Vector< ItemCollectionMetrics > &&value)
BatchWriteItemResult & WithItemCollectionMetrics(const Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics > > &value)
void SetItemCollectionMetrics(Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics > > &&value)
BatchWriteItemResult & WithRequestId(const Aws::String &value)
BatchWriteItemResult & AddUnprocessedItems(const char *key, const Aws::Vector< WriteRequest > &value)
BatchWriteItemResult & AddConsumedCapacity(const ConsumedCapacity &value)
AWS_DYNAMODB_API BatchWriteItemResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchWriteItemResult & AddConsumedCapacity(ConsumedCapacity &&value)
const Aws::Vector< ConsumedCapacity > & GetConsumedCapacity() const
const Aws::Map< Aws::String, Aws::Vector< WriteRequest > > & GetUnprocessedItems() const
void SetUnprocessedItems(Aws::Map< Aws::String, Aws::Vector< WriteRequest > > &&value)
BatchWriteItemResult & AddItemCollectionMetrics(const char *key, const 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