AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
44
45
47
73 inline const Aws::Map<Aws::String, Aws::Vector<WriteRequest>>& GetUnprocessedItems() const { return m_unprocessedItems; }
74 template<typename UnprocessedItemsT = Aws::Map<Aws::String, Aws::Vector<WriteRequest>>>
75 void SetUnprocessedItems(UnprocessedItemsT&& value) { m_unprocessedItemsHasBeenSet = true; m_unprocessedItems = std::forward<UnprocessedItemsT>(value); }
76 template<typename UnprocessedItemsT = Aws::Map<Aws::String, Aws::Vector<WriteRequest>>>
77 BatchWriteItemResult& WithUnprocessedItems(UnprocessedItemsT&& value) { SetUnprocessedItems(std::forward<UnprocessedItemsT>(value)); return *this;}
78 template<typename UnprocessedItemsKeyT = Aws::String, typename UnprocessedItemsValueT = Aws::Vector<WriteRequest>>
79 BatchWriteItemResult& AddUnprocessedItems(UnprocessedItemsKeyT&& key, UnprocessedItemsValueT&& value) {
80 m_unprocessedItemsHasBeenSet = true; m_unprocessedItems.emplace(std::forward<UnprocessedItemsKeyT>(key), std::forward<UnprocessedItemsValueT>(value)); return *this;
81 }
83
85
101 inline const Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>& GetItemCollectionMetrics() const { return m_itemCollectionMetrics; }
102 template<typename ItemCollectionMetricsT = Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>>
103 void SetItemCollectionMetrics(ItemCollectionMetricsT&& value) { m_itemCollectionMetricsHasBeenSet = true; m_itemCollectionMetrics = std::forward<ItemCollectionMetricsT>(value); }
104 template<typename ItemCollectionMetricsT = Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>>
105 BatchWriteItemResult& WithItemCollectionMetrics(ItemCollectionMetricsT&& value) { SetItemCollectionMetrics(std::forward<ItemCollectionMetricsT>(value)); return *this;}
106 template<typename ItemCollectionMetricsKeyT = Aws::String, typename ItemCollectionMetricsValueT = Aws::Vector<ItemCollectionMetrics>>
107 BatchWriteItemResult& AddItemCollectionMetrics(ItemCollectionMetricsKeyT&& key, ItemCollectionMetricsValueT&& value) {
108 m_itemCollectionMetricsHasBeenSet = true; m_itemCollectionMetrics.emplace(std::forward<ItemCollectionMetricsKeyT>(key), std::forward<ItemCollectionMetricsValueT>(value)); return *this;
109 }
111
113
120 inline const Aws::Vector<ConsumedCapacity>& GetConsumedCapacity() const { return m_consumedCapacity; }
121 template<typename ConsumedCapacityT = Aws::Vector<ConsumedCapacity>>
122 void SetConsumedCapacity(ConsumedCapacityT&& value) { m_consumedCapacityHasBeenSet = true; m_consumedCapacity = std::forward<ConsumedCapacityT>(value); }
123 template<typename ConsumedCapacityT = Aws::Vector<ConsumedCapacity>>
124 BatchWriteItemResult& WithConsumedCapacity(ConsumedCapacityT&& value) { SetConsumedCapacity(std::forward<ConsumedCapacityT>(value)); return *this;}
125 template<typename ConsumedCapacityT = ConsumedCapacity>
126 BatchWriteItemResult& AddConsumedCapacity(ConsumedCapacityT&& value) { m_consumedCapacityHasBeenSet = true; m_consumedCapacity.emplace_back(std::forward<ConsumedCapacityT>(value)); return *this; }
128
130
131 inline const Aws::String& GetRequestId() const { return m_requestId; }
132 template<typename RequestIdT = Aws::String>
133 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
134 template<typename RequestIdT = Aws::String>
135 BatchWriteItemResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
137 private:
138
140 bool m_unprocessedItemsHasBeenSet = false;
141
143 bool m_itemCollectionMetricsHasBeenSet = false;
144
145 Aws::Vector<ConsumedCapacity> m_consumedCapacity;
146 bool m_consumedCapacityHasBeenSet = false;
147
148 Aws::String m_requestId;
149 bool m_requestIdHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace DynamoDB
154} // namespace Aws
BatchWriteItemResult & AddConsumedCapacity(ConsumedCapacityT &&value)
BatchWriteItemResult & WithConsumedCapacity(ConsumedCapacityT &&value)
AWS_DYNAMODB_API BatchWriteItemResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchWriteItemResult & WithRequestId(RequestIdT &&value)
void SetUnprocessedItems(UnprocessedItemsT &&value)
AWS_DYNAMODB_API BatchWriteItemResult()=default
const Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics > > & GetItemCollectionMetrics() const
void SetItemCollectionMetrics(ItemCollectionMetricsT &&value)
BatchWriteItemResult & WithUnprocessedItems(UnprocessedItemsT &&value)
BatchWriteItemResult & AddUnprocessedItems(UnprocessedItemsKeyT &&key, UnprocessedItemsValueT &&value)
void SetConsumedCapacity(ConsumedCapacityT &&value)
AWS_DYNAMODB_API BatchWriteItemResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchWriteItemResult & AddItemCollectionMetrics(ItemCollectionMetricsKeyT &&key, ItemCollectionMetricsValueT &&value)
const Aws::Vector< ConsumedCapacity > & GetConsumedCapacity() const
const Aws::Map< Aws::String, Aws::Vector< WriteRequest > > & GetUnprocessedItems() const
BatchWriteItemResult & WithItemCollectionMetrics(ItemCollectionMetricsT &&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