AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ConsumedCapacity.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DynamoDB
24{
25namespace Model
26{
27
40 {
41 public:
42 AWS_DYNAMODB_API ConsumedCapacity() = default;
43 AWS_DYNAMODB_API ConsumedCapacity(Aws::Utils::Json::JsonView jsonValue);
45 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
54 inline const Aws::String& GetTableName() const { return m_tableName; }
55 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
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>
59 ConsumedCapacity& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
61
63
66 inline double GetCapacityUnits() const { return m_capacityUnits; }
67 inline bool CapacityUnitsHasBeenSet() const { return m_capacityUnitsHasBeenSet; }
68 inline void SetCapacityUnits(double value) { m_capacityUnitsHasBeenSet = true; m_capacityUnits = value; }
69 inline ConsumedCapacity& WithCapacityUnits(double value) { SetCapacityUnits(value); return *this;}
71
73
76 inline double GetReadCapacityUnits() const { return m_readCapacityUnits; }
77 inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; }
78 inline void SetReadCapacityUnits(double value) { m_readCapacityUnitsHasBeenSet = true; m_readCapacityUnits = value; }
79 inline ConsumedCapacity& WithReadCapacityUnits(double value) { SetReadCapacityUnits(value); return *this;}
81
83
86 inline double GetWriteCapacityUnits() const { return m_writeCapacityUnits; }
87 inline bool WriteCapacityUnitsHasBeenSet() const { return m_writeCapacityUnitsHasBeenSet; }
88 inline void SetWriteCapacityUnits(double value) { m_writeCapacityUnitsHasBeenSet = true; m_writeCapacityUnits = value; }
89 inline ConsumedCapacity& WithWriteCapacityUnits(double value) { SetWriteCapacityUnits(value); return *this;}
91
93
96 inline const Capacity& GetTable() const { return m_table; }
97 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
98 template<typename TableT = Capacity>
99 void SetTable(TableT&& value) { m_tableHasBeenSet = true; m_table = std::forward<TableT>(value); }
100 template<typename TableT = Capacity>
101 ConsumedCapacity& WithTable(TableT&& value) { SetTable(std::forward<TableT>(value)); return *this;}
103
105
109 inline const Aws::Map<Aws::String, Capacity>& GetLocalSecondaryIndexes() const { return m_localSecondaryIndexes; }
110 inline bool LocalSecondaryIndexesHasBeenSet() const { return m_localSecondaryIndexesHasBeenSet; }
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>>
114 ConsumedCapacity& WithLocalSecondaryIndexes(LocalSecondaryIndexesT&& value) { SetLocalSecondaryIndexes(std::forward<LocalSecondaryIndexesT>(value)); return *this;}
115 template<typename LocalSecondaryIndexesKeyT = Aws::String, typename LocalSecondaryIndexesValueT = Capacity>
116 ConsumedCapacity& AddLocalSecondaryIndexes(LocalSecondaryIndexesKeyT&& key, LocalSecondaryIndexesValueT&& value) {
117 m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes.emplace(std::forward<LocalSecondaryIndexesKeyT>(key), std::forward<LocalSecondaryIndexesValueT>(value)); return *this;
118 }
120
122
126 inline const Aws::Map<Aws::String, Capacity>& GetGlobalSecondaryIndexes() const { return m_globalSecondaryIndexes; }
127 inline bool GlobalSecondaryIndexesHasBeenSet() const { return m_globalSecondaryIndexesHasBeenSet; }
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>>
131 ConsumedCapacity& WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) { SetGlobalSecondaryIndexes(std::forward<GlobalSecondaryIndexesT>(value)); return *this;}
132 template<typename GlobalSecondaryIndexesKeyT = Aws::String, typename GlobalSecondaryIndexesValueT = Capacity>
133 ConsumedCapacity& AddGlobalSecondaryIndexes(GlobalSecondaryIndexesKeyT&& key, GlobalSecondaryIndexesValueT&& value) {
134 m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.emplace(std::forward<GlobalSecondaryIndexesKeyT>(key), std::forward<GlobalSecondaryIndexesValueT>(value)); return *this;
135 }
137 private:
138
139 Aws::String m_tableName;
140 bool m_tableNameHasBeenSet = false;
141
142 double m_capacityUnits{0.0};
143 bool m_capacityUnitsHasBeenSet = false;
144
145 double m_readCapacityUnits{0.0};
146 bool m_readCapacityUnitsHasBeenSet = false;
147
148 double m_writeCapacityUnits{0.0};
149 bool m_writeCapacityUnitsHasBeenSet = false;
150
151 Capacity m_table;
152 bool m_tableHasBeenSet = false;
153
154 Aws::Map<Aws::String, Capacity> m_localSecondaryIndexes;
155 bool m_localSecondaryIndexesHasBeenSet = false;
156
157 Aws::Map<Aws::String, Capacity> m_globalSecondaryIndexes;
158 bool m_globalSecondaryIndexesHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace DynamoDB
163} // namespace Aws
const Aws::String & GetTableName() const
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)
AWS_DYNAMODB_API ConsumedCapacity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API ConsumedCapacity(Aws::Utils::Json::JsonView jsonValue)
ConsumedCapacity & WithReadCapacityUnits(double value)
ConsumedCapacity & WithCapacityUnits(double value)
ConsumedCapacity & WithTable(TableT &&value)
ConsumedCapacity & WithLocalSecondaryIndexes(LocalSecondaryIndexesT &&value)
const Aws::Map< Aws::String, Capacity > & GetGlobalSecondaryIndexes() const
AWS_DYNAMODB_API ConsumedCapacity()=default
ConsumedCapacity & WithWriteCapacityUnits(double value)
ConsumedCapacity & AddGlobalSecondaryIndexes(GlobalSecondaryIndexesKeyT &&key, GlobalSecondaryIndexesValueT &&value)
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