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/Capacity.h>
11#include <aws/dynamodb/model/VectorCapacity.h>
51 template <
typename TableNameT = Aws::String>
53 m_tableNameHasBeenSet =
true;
54 m_tableName = std::forward<TableNameT>(value);
56 template <
typename TableNameT = Aws::String>
70 m_capacityUnitsHasBeenSet =
true;
71 m_capacityUnits = value;
86 m_readCapacityUnitsHasBeenSet =
true;
87 m_readCapacityUnits = value;
102 m_writeCapacityUnitsHasBeenSet =
true;
103 m_writeCapacityUnits = value;
117 template <
typename TableT = Capacity>
119 m_tableHasBeenSet =
true;
120 m_table = std::forward<TableT>(value);
122 template <
typename TableT = Capacity>
124 SetTable(std::forward<TableT>(value));
136 template <
typename LocalSecondaryIndexesT = Aws::Map<Aws::String, Capacity>>
138 m_localSecondaryIndexesHasBeenSet =
true;
139 m_localSecondaryIndexes = std::forward<LocalSecondaryIndexesT>(value);
141 template <
typename LocalSecondaryIndexesT = Aws::Map<Aws::String, Capacity>>
146 template <
typename LocalSecondaryIndexesKeyT = Aws::String,
typename LocalSecondaryIndexesValueT = Capacity>
148 m_localSecondaryIndexesHasBeenSet =
true;
149 m_localSecondaryIndexes.emplace(std::forward<LocalSecondaryIndexesKeyT>(key), std::forward<LocalSecondaryIndexesValueT>(value));
161 template <
typename GlobalSecondaryIndexesT = Aws::Map<Aws::String, Capacity>>
163 m_globalSecondaryIndexesHasBeenSet =
true;
164 m_globalSecondaryIndexes = std::forward<GlobalSecondaryIndexesT>(value);
166 template <
typename GlobalSecondaryIndexesT = Aws::Map<Aws::String, Capacity>>
171 template <
typename GlobalSecondaryIndexesKeyT = Aws::String,
typename GlobalSecondaryIndexesValueT = Capacity>
173 m_globalSecondaryIndexesHasBeenSet =
true;
174 m_globalSecondaryIndexes.emplace(std::forward<GlobalSecondaryIndexesKeyT>(key), std::forward<GlobalSecondaryIndexesValueT>(value));
188 template <
typename VectorIndexesT = Aws::Map<Aws::String, VectorCapacity>>
190 m_vectorIndexesHasBeenSet =
true;
191 m_vectorIndexes = std::forward<VectorIndexesT>(value);
193 template <
typename VectorIndexesT = Aws::Map<Aws::String, VectorCapacity>>
198 template <
typename VectorIndexesKeyT = Aws::String,
typename VectorIndexesValueT = VectorCapacity>
200 m_vectorIndexesHasBeenSet =
true;
201 m_vectorIndexes.emplace(std::forward<VectorIndexesKeyT>(key), std::forward<VectorIndexesValueT>(value));
208 double m_capacityUnits{0.0};
210 double m_readCapacityUnits{0.0};
212 double m_writeCapacityUnits{0.0};
221 bool m_tableNameHasBeenSet =
false;
222 bool m_capacityUnitsHasBeenSet =
false;
223 bool m_readCapacityUnitsHasBeenSet =
false;
224 bool m_writeCapacityUnitsHasBeenSet =
false;
225 bool m_tableHasBeenSet =
false;
226 bool m_localSecondaryIndexesHasBeenSet =
false;
227 bool m_globalSecondaryIndexesHasBeenSet =
false;
228 bool m_vectorIndexesHasBeenSet =
false;
void SetCapacityUnits(double value)
bool LocalSecondaryIndexesHasBeenSet() const
const Aws::String & GetTableName() const
void SetWriteCapacityUnits(double value)
ConsumedCapacity & WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
void SetLocalSecondaryIndexes(LocalSecondaryIndexesT &&value)
void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
ConsumedCapacity & AddLocalSecondaryIndexes(LocalSecondaryIndexesKeyT &&key, LocalSecondaryIndexesValueT &&value)
ConsumedCapacity & AddVectorIndexes(VectorIndexesKeyT &&key, VectorIndexesValueT &&value)
ConsumedCapacity & WithTableName(TableNameT &&value)
void SetReadCapacityUnits(double value)
bool TableNameHasBeenSet() const
bool TableHasBeenSet() const
const Capacity & GetTable() const
AWS_DYNAMODB_API ConsumedCapacity & operator=(Aws::Utils::Json::JsonView jsonValue)
bool WriteCapacityUnitsHasBeenSet() const
AWS_DYNAMODB_API ConsumedCapacity(Aws::Utils::Json::JsonView jsonValue)
void SetTableName(TableNameT &&value)
ConsumedCapacity & WithReadCapacityUnits(double value)
const Aws::Map< Aws::String, VectorCapacity > & GetVectorIndexes() const
bool VectorIndexesHasBeenSet() const
void SetTable(TableT &&value)
ConsumedCapacity & WithCapacityUnits(double value)
ConsumedCapacity & WithTable(TableT &&value)
double GetCapacityUnits() const
bool CapacityUnitsHasBeenSet() const
ConsumedCapacity & WithVectorIndexes(VectorIndexesT &&value)
double GetReadCapacityUnits() const
ConsumedCapacity & WithLocalSecondaryIndexes(LocalSecondaryIndexesT &&value)
double GetWriteCapacityUnits() const
const Aws::Map< Aws::String, Capacity > & GetGlobalSecondaryIndexes() const
bool ReadCapacityUnitsHasBeenSet() const
AWS_DYNAMODB_API ConsumedCapacity()=default
void SetVectorIndexes(VectorIndexesT &&value)
ConsumedCapacity & WithWriteCapacityUnits(double value)
ConsumedCapacity & AddGlobalSecondaryIndexes(GlobalSecondaryIndexesKeyT &&key, GlobalSecondaryIndexesValueT &&value)
bool GlobalSecondaryIndexesHasBeenSet() const
const Aws::Map< Aws::String, Capacity > & GetLocalSecondaryIndexes() 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