AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
BulkOperationUsage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/DynamoDB_EXPORTS.h>
10#include <aws/dynamodb/model/BulkOperationBytes.h>
11#include <aws/dynamodb/model/BulkOperationVectorBytes.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDB {
23namespace Model {
24
32 public:
33 AWS_DYNAMODB_API BulkOperationUsage() = default;
36 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetTableName() const { return m_tableName; }
43 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
44 template <typename TableNameT = Aws::String>
45 void SetTableName(TableNameT&& value) {
46 m_tableNameHasBeenSet = true;
47 m_tableName = std::forward<TableNameT>(value);
48 }
49 template <typename TableNameT = Aws::String>
50 BulkOperationUsage& WithTableName(TableNameT&& value) {
51 SetTableName(std::forward<TableNameT>(value));
52 return *this;
53 }
55
57
61 inline long long GetBulkPutBytes() const { return m_bulkPutBytes; }
62 inline bool BulkPutBytesHasBeenSet() const { return m_bulkPutBytesHasBeenSet; }
63 inline void SetBulkPutBytes(long long value) {
64 m_bulkPutBytesHasBeenSet = true;
65 m_bulkPutBytes = value;
66 }
67 inline BulkOperationUsage& WithBulkPutBytes(long long value) {
68 SetBulkPutBytes(value);
69 return *this;
70 }
72
74
77 inline const BulkOperationBytes& GetTable() const { return m_table; }
78 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
79 template <typename TableT = BulkOperationBytes>
80 void SetTable(TableT&& value) {
81 m_tableHasBeenSet = true;
82 m_table = std::forward<TableT>(value);
83 }
84 template <typename TableT = BulkOperationBytes>
85 BulkOperationUsage& WithTable(TableT&& value) {
86 SetTable(std::forward<TableT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Map<Aws::String, BulkOperationBytes>& GetLocalSecondaryIndexes() const { return m_localSecondaryIndexes; }
97 inline bool LocalSecondaryIndexesHasBeenSet() const { return m_localSecondaryIndexesHasBeenSet; }
98 template <typename LocalSecondaryIndexesT = Aws::Map<Aws::String, BulkOperationBytes>>
99 void SetLocalSecondaryIndexes(LocalSecondaryIndexesT&& value) {
100 m_localSecondaryIndexesHasBeenSet = true;
101 m_localSecondaryIndexes = std::forward<LocalSecondaryIndexesT>(value);
102 }
103 template <typename LocalSecondaryIndexesT = Aws::Map<Aws::String, BulkOperationBytes>>
104 BulkOperationUsage& WithLocalSecondaryIndexes(LocalSecondaryIndexesT&& value) {
105 SetLocalSecondaryIndexes(std::forward<LocalSecondaryIndexesT>(value));
106 return *this;
107 }
108 template <typename LocalSecondaryIndexesKeyT = Aws::String, typename LocalSecondaryIndexesValueT = BulkOperationBytes>
109 BulkOperationUsage& AddLocalSecondaryIndexes(LocalSecondaryIndexesKeyT&& key, LocalSecondaryIndexesValueT&& value) {
110 m_localSecondaryIndexesHasBeenSet = true;
111 m_localSecondaryIndexes.emplace(std::forward<LocalSecondaryIndexesKeyT>(key), std::forward<LocalSecondaryIndexesValueT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::Map<Aws::String, BulkOperationBytes>& GetGlobalSecondaryIndexes() const { return m_globalSecondaryIndexes; }
122 inline bool GlobalSecondaryIndexesHasBeenSet() const { return m_globalSecondaryIndexesHasBeenSet; }
123 template <typename GlobalSecondaryIndexesT = Aws::Map<Aws::String, BulkOperationBytes>>
124 void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
125 m_globalSecondaryIndexesHasBeenSet = true;
126 m_globalSecondaryIndexes = std::forward<GlobalSecondaryIndexesT>(value);
127 }
128 template <typename GlobalSecondaryIndexesT = Aws::Map<Aws::String, BulkOperationBytes>>
129 BulkOperationUsage& WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
130 SetGlobalSecondaryIndexes(std::forward<GlobalSecondaryIndexesT>(value));
131 return *this;
132 }
133 template <typename GlobalSecondaryIndexesKeyT = Aws::String, typename GlobalSecondaryIndexesValueT = BulkOperationBytes>
134 BulkOperationUsage& AddGlobalSecondaryIndexes(GlobalSecondaryIndexesKeyT&& key, GlobalSecondaryIndexesValueT&& value) {
135 m_globalSecondaryIndexesHasBeenSet = true;
136 m_globalSecondaryIndexes.emplace(std::forward<GlobalSecondaryIndexesKeyT>(key), std::forward<GlobalSecondaryIndexesValueT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::Map<Aws::String, BulkOperationVectorBytes>& GetVectorIndexes() const { return m_vectorIndexes; }
147 inline bool VectorIndexesHasBeenSet() const { return m_vectorIndexesHasBeenSet; }
148 template <typename VectorIndexesT = Aws::Map<Aws::String, BulkOperationVectorBytes>>
149 void SetVectorIndexes(VectorIndexesT&& value) {
150 m_vectorIndexesHasBeenSet = true;
151 m_vectorIndexes = std::forward<VectorIndexesT>(value);
152 }
153 template <typename VectorIndexesT = Aws::Map<Aws::String, BulkOperationVectorBytes>>
154 BulkOperationUsage& WithVectorIndexes(VectorIndexesT&& value) {
155 SetVectorIndexes(std::forward<VectorIndexesT>(value));
156 return *this;
157 }
158 template <typename VectorIndexesKeyT = Aws::String, typename VectorIndexesValueT = BulkOperationVectorBytes>
159 BulkOperationUsage& AddVectorIndexes(VectorIndexesKeyT&& key, VectorIndexesValueT&& value) {
160 m_vectorIndexesHasBeenSet = true;
161 m_vectorIndexes.emplace(std::forward<VectorIndexesKeyT>(key), std::forward<VectorIndexesValueT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_tableName;
167
168 long long m_bulkPutBytes{0};
169
170 BulkOperationBytes m_table;
171
172 Aws::Map<Aws::String, BulkOperationBytes> m_localSecondaryIndexes;
173
174 Aws::Map<Aws::String, BulkOperationBytes> m_globalSecondaryIndexes;
175
177 bool m_tableNameHasBeenSet = false;
178 bool m_bulkPutBytesHasBeenSet = false;
179 bool m_tableHasBeenSet = false;
180 bool m_localSecondaryIndexesHasBeenSet = false;
181 bool m_globalSecondaryIndexesHasBeenSet = false;
182 bool m_vectorIndexesHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace DynamoDB
187} // namespace Aws
void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
void SetLocalSecondaryIndexes(LocalSecondaryIndexesT &&value)
BulkOperationUsage & WithLocalSecondaryIndexes(LocalSecondaryIndexesT &&value)
const Aws::Map< Aws::String, BulkOperationBytes > & GetGlobalSecondaryIndexes() const
BulkOperationUsage & WithTable(TableT &&value)
BulkOperationUsage & WithVectorIndexes(VectorIndexesT &&value)
BulkOperationUsage & AddVectorIndexes(VectorIndexesKeyT &&key, VectorIndexesValueT &&value)
AWS_DYNAMODB_API BulkOperationUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
BulkOperationUsage & AddGlobalSecondaryIndexes(GlobalSecondaryIndexesKeyT &&key, GlobalSecondaryIndexesValueT &&value)
BulkOperationUsage & WithBulkPutBytes(long long value)
const BulkOperationBytes & GetTable() const
AWS_DYNAMODB_API BulkOperationUsage(Aws::Utils::Json::JsonView jsonValue)
BulkOperationUsage & WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
AWS_DYNAMODB_API BulkOperationUsage()=default
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, BulkOperationBytes > & GetLocalSecondaryIndexes() const
void SetVectorIndexes(VectorIndexesT &&value)
BulkOperationUsage & WithTableName(TableNameT &&value)
BulkOperationUsage & AddLocalSecondaryIndexes(LocalSecondaryIndexesKeyT &&key, LocalSecondaryIndexesValueT &&value)
const Aws::Map< Aws::String, BulkOperationVectorBytes > & GetVectorIndexes() const
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
Aws::Utils::Json::JsonValue JsonValue