7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/model/Capacity.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
56 template<
typename TableNameT = Aws::String>
57 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet =
true; m_tableName = std::forward<TableNameT>(value); }
58 template<
typename TableNameT = Aws::String>
68 inline void SetCapacityUnits(
double value) { m_capacityUnitsHasBeenSet =
true; m_capacityUnits = value; }
78 inline void SetReadCapacityUnits(
double value) { m_readCapacityUnitsHasBeenSet =
true; m_readCapacityUnits = value; }
88 inline void SetWriteCapacityUnits(
double value) { m_writeCapacityUnitsHasBeenSet =
true; m_writeCapacityUnits = value; }
98 template<
typename TableT = Capacity>
99 void SetTable(TableT&& value) { m_tableHasBeenSet =
true; m_table = std::forward<TableT>(value); }
100 template<
typename TableT = Capacity>
111 template<
typename LocalSecondaryIndexesT = Aws::Map<Aws::String, Capacity>>
112 void SetLocalSecondaryIndexes(LocalSecondaryIndexesT&& value) { m_localSecondaryIndexesHasBeenSet =
true; m_localSecondaryIndexes = std::forward<LocalSecondaryIndexesT>(value); }
113 template<
typename LocalSecondaryIndexesT = Aws::Map<Aws::String, Capacity>>
115 template<
typename LocalSecondaryIndexesKeyT = Aws::String,
typename LocalSecondaryIndexesValueT = Capacity>
117 m_localSecondaryIndexesHasBeenSet =
true; m_localSecondaryIndexes.emplace(std::forward<LocalSecondaryIndexesKeyT>(key), std::forward<LocalSecondaryIndexesValueT>(value));
return *
this;
128 template<
typename GlobalSecondaryIndexesT = Aws::Map<Aws::String, Capacity>>
129 void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) { m_globalSecondaryIndexesHasBeenSet =
true; m_globalSecondaryIndexes = std::forward<GlobalSecondaryIndexesT>(value); }
130 template<
typename GlobalSecondaryIndexesT = Aws::Map<Aws::String, Capacity>>
132 template<
typename GlobalSecondaryIndexesKeyT = Aws::String,
typename GlobalSecondaryIndexesValueT = Capacity>
134 m_globalSecondaryIndexesHasBeenSet =
true; m_globalSecondaryIndexes.emplace(std::forward<GlobalSecondaryIndexesKeyT>(key), std::forward<GlobalSecondaryIndexesValueT>(value));
return *
this;
140 bool m_tableNameHasBeenSet =
false;
142 double m_capacityUnits{0.0};
143 bool m_capacityUnitsHasBeenSet =
false;
145 double m_readCapacityUnits{0.0};
146 bool m_readCapacityUnitsHasBeenSet =
false;
148 double m_writeCapacityUnits{0.0};
149 bool m_writeCapacityUnitsHasBeenSet =
false;
152 bool m_tableHasBeenSet =
false;
155 bool m_localSecondaryIndexesHasBeenSet =
false;
158 bool m_globalSecondaryIndexesHasBeenSet =
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 & 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)
void SetTable(TableT &&value)
ConsumedCapacity & WithCapacityUnits(double value)
ConsumedCapacity & WithTable(TableT &&value)
double GetCapacityUnits() const
bool CapacityUnitsHasBeenSet() const
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
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