AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchWriteItemRequest.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/DynamoDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/dynamodb/model/ReturnConsumedCapacity.h>
11#include <aws/dynamodb/model/ReturnItemCollectionMetrics.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/dynamodb/model/WriteRequest.h>
15#include <utility>
16
17namespace Aws
18{
19namespace DynamoDB
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_DYNAMODB_API BatchWriteItemRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "BatchWriteItem"; }
40
41 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
42
44
45
47
71 inline const Aws::Map<Aws::String, Aws::Vector<WriteRequest>>& GetRequestItems() const{ return m_requestItems; }
72 inline bool RequestItemsHasBeenSet() const { return m_requestItemsHasBeenSet; }
73 inline void SetRequestItems(const Aws::Map<Aws::String, Aws::Vector<WriteRequest>>& value) { m_requestItemsHasBeenSet = true; m_requestItems = value; }
74 inline void SetRequestItems(Aws::Map<Aws::String, Aws::Vector<WriteRequest>>&& value) { m_requestItemsHasBeenSet = true; m_requestItems = std::move(value); }
77 inline BatchWriteItemRequest& AddRequestItems(const Aws::String& key, const Aws::Vector<WriteRequest>& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(key, value); return *this; }
78 inline BatchWriteItemRequest& AddRequestItems(Aws::String&& key, const Aws::Vector<WriteRequest>& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(std::move(key), value); return *this; }
79 inline BatchWriteItemRequest& AddRequestItems(const Aws::String& key, Aws::Vector<WriteRequest>&& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(key, std::move(value)); return *this; }
80 inline BatchWriteItemRequest& AddRequestItems(Aws::String&& key, Aws::Vector<WriteRequest>&& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(std::move(key), std::move(value)); return *this; }
81 inline BatchWriteItemRequest& AddRequestItems(const char* key, Aws::Vector<WriteRequest>&& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(key, std::move(value)); return *this; }
82 inline BatchWriteItemRequest& AddRequestItems(const char* key, const Aws::Vector<WriteRequest>& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(key, value); return *this; }
84
86
87 inline const ReturnConsumedCapacity& GetReturnConsumedCapacity() const{ return m_returnConsumedCapacity; }
88 inline bool ReturnConsumedCapacityHasBeenSet() const { return m_returnConsumedCapacityHasBeenSet; }
89 inline void SetReturnConsumedCapacity(const ReturnConsumedCapacity& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = value; }
90 inline void SetReturnConsumedCapacity(ReturnConsumedCapacity&& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = std::move(value); }
94
96
102 inline const ReturnItemCollectionMetrics& GetReturnItemCollectionMetrics() const{ return m_returnItemCollectionMetrics; }
103 inline bool ReturnItemCollectionMetricsHasBeenSet() const { return m_returnItemCollectionMetricsHasBeenSet; }
104 inline void SetReturnItemCollectionMetrics(const ReturnItemCollectionMetrics& value) { m_returnItemCollectionMetricsHasBeenSet = true; m_returnItemCollectionMetrics = value; }
105 inline void SetReturnItemCollectionMetrics(ReturnItemCollectionMetrics&& value) { m_returnItemCollectionMetricsHasBeenSet = true; m_returnItemCollectionMetrics = std::move(value); }
109 private:
110
112 bool m_requestItemsHasBeenSet = false;
113
114 ReturnConsumedCapacity m_returnConsumedCapacity;
115 bool m_returnConsumedCapacityHasBeenSet = false;
116
117 ReturnItemCollectionMetrics m_returnItemCollectionMetrics;
118 bool m_returnItemCollectionMetricsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace DynamoDB
123} // namespace Aws
const Aws::Map< Aws::String, Aws::Vector< WriteRequest > > & GetRequestItems() const
void SetReturnItemCollectionMetrics(const ReturnItemCollectionMetrics &value)
BatchWriteItemRequest & AddRequestItems(const Aws::String &key, Aws::Vector< WriteRequest > &&value)
BatchWriteItemRequest & WithRequestItems(Aws::Map< Aws::String, Aws::Vector< WriteRequest > > &&value)
const ReturnConsumedCapacity & GetReturnConsumedCapacity() const
void SetRequestItems(const Aws::Map< Aws::String, Aws::Vector< WriteRequest > > &value)
virtual const char * GetServiceRequestName() const override
void SetReturnItemCollectionMetrics(ReturnItemCollectionMetrics &&value)
BatchWriteItemRequest & WithReturnItemCollectionMetrics(ReturnItemCollectionMetrics &&value)
BatchWriteItemRequest & AddRequestItems(Aws::String &&key, const Aws::Vector< WriteRequest > &value)
const ReturnItemCollectionMetrics & GetReturnItemCollectionMetrics() const
BatchWriteItemRequest & AddRequestItems(const char *key, Aws::Vector< WriteRequest > &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
void SetReturnConsumedCapacity(const ReturnConsumedCapacity &value)
BatchWriteItemRequest & AddRequestItems(const char *key, const Aws::Vector< WriteRequest > &value)
BatchWriteItemRequest & WithReturnItemCollectionMetrics(const ReturnItemCollectionMetrics &value)
BatchWriteItemRequest & WithReturnConsumedCapacity(ReturnConsumedCapacity &&value)
void SetRequestItems(Aws::Map< Aws::String, Aws::Vector< WriteRequest > > &&value)
BatchWriteItemRequest & AddRequestItems(Aws::String &&key, Aws::Vector< WriteRequest > &&value)
void SetReturnConsumedCapacity(ReturnConsumedCapacity &&value)
BatchWriteItemRequest & AddRequestItems(const Aws::String &key, const Aws::Vector< WriteRequest > &value)
BatchWriteItemRequest & WithReturnConsumedCapacity(const ReturnConsumedCapacity &value)
BatchWriteItemRequest & WithRequestItems(const Aws::Map< Aws::String, Aws::Vector< WriteRequest > > &value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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