AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
57 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
58 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
59 inline ConsumedCapacity& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
60 inline ConsumedCapacity& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
61 inline ConsumedCapacity& WithTableName(const char* value) { SetTableName(value); return *this;}
63
65
68 inline double GetCapacityUnits() const{ return m_capacityUnits; }
69 inline bool CapacityUnitsHasBeenSet() const { return m_capacityUnitsHasBeenSet; }
70 inline void SetCapacityUnits(double value) { m_capacityUnitsHasBeenSet = true; m_capacityUnits = value; }
71 inline ConsumedCapacity& WithCapacityUnits(double value) { SetCapacityUnits(value); return *this;}
73
75
78 inline double GetReadCapacityUnits() const{ return m_readCapacityUnits; }
79 inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; }
80 inline void SetReadCapacityUnits(double value) { m_readCapacityUnitsHasBeenSet = true; m_readCapacityUnits = value; }
81 inline ConsumedCapacity& WithReadCapacityUnits(double value) { SetReadCapacityUnits(value); return *this;}
83
85
88 inline double GetWriteCapacityUnits() const{ return m_writeCapacityUnits; }
89 inline bool WriteCapacityUnitsHasBeenSet() const { return m_writeCapacityUnitsHasBeenSet; }
90 inline void SetWriteCapacityUnits(double value) { m_writeCapacityUnitsHasBeenSet = true; m_writeCapacityUnits = value; }
91 inline ConsumedCapacity& WithWriteCapacityUnits(double value) { SetWriteCapacityUnits(value); return *this;}
93
95
98 inline const Capacity& GetTable() const{ return m_table; }
99 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
100 inline void SetTable(const Capacity& value) { m_tableHasBeenSet = true; m_table = value; }
101 inline void SetTable(Capacity&& value) { m_tableHasBeenSet = true; m_table = std::move(value); }
102 inline ConsumedCapacity& WithTable(const Capacity& value) { SetTable(value); return *this;}
103 inline ConsumedCapacity& WithTable(Capacity&& value) { SetTable(std::move(value)); return *this;}
105
107
111 inline const Aws::Map<Aws::String, Capacity>& GetLocalSecondaryIndexes() const{ return m_localSecondaryIndexes; }
112 inline bool LocalSecondaryIndexesHasBeenSet() const { return m_localSecondaryIndexesHasBeenSet; }
113 inline void SetLocalSecondaryIndexes(const Aws::Map<Aws::String, Capacity>& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes = value; }
114 inline void SetLocalSecondaryIndexes(Aws::Map<Aws::String, Capacity>&& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes = std::move(value); }
117 inline ConsumedCapacity& AddLocalSecondaryIndexes(const Aws::String& key, const Capacity& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes.emplace(key, value); return *this; }
118 inline ConsumedCapacity& AddLocalSecondaryIndexes(Aws::String&& key, const Capacity& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes.emplace(std::move(key), value); return *this; }
119 inline ConsumedCapacity& AddLocalSecondaryIndexes(const Aws::String& key, Capacity&& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes.emplace(key, std::move(value)); return *this; }
120 inline ConsumedCapacity& AddLocalSecondaryIndexes(Aws::String&& key, Capacity&& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes.emplace(std::move(key), std::move(value)); return *this; }
121 inline ConsumedCapacity& AddLocalSecondaryIndexes(const char* key, Capacity&& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes.emplace(key, std::move(value)); return *this; }
122 inline ConsumedCapacity& AddLocalSecondaryIndexes(const char* key, const Capacity& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes.emplace(key, value); return *this; }
124
126
130 inline const Aws::Map<Aws::String, Capacity>& GetGlobalSecondaryIndexes() const{ return m_globalSecondaryIndexes; }
131 inline bool GlobalSecondaryIndexesHasBeenSet() const { return m_globalSecondaryIndexesHasBeenSet; }
132 inline void SetGlobalSecondaryIndexes(const Aws::Map<Aws::String, Capacity>& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes = value; }
133 inline void SetGlobalSecondaryIndexes(Aws::Map<Aws::String, Capacity>&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes = std::move(value); }
136 inline ConsumedCapacity& AddGlobalSecondaryIndexes(const Aws::String& key, const Capacity& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.emplace(key, value); return *this; }
137 inline ConsumedCapacity& AddGlobalSecondaryIndexes(Aws::String&& key, const Capacity& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.emplace(std::move(key), value); return *this; }
138 inline ConsumedCapacity& AddGlobalSecondaryIndexes(const Aws::String& key, Capacity&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.emplace(key, std::move(value)); return *this; }
139 inline ConsumedCapacity& AddGlobalSecondaryIndexes(Aws::String&& key, Capacity&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.emplace(std::move(key), std::move(value)); return *this; }
140 inline ConsumedCapacity& AddGlobalSecondaryIndexes(const char* key, Capacity&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.emplace(key, std::move(value)); return *this; }
141 inline ConsumedCapacity& AddGlobalSecondaryIndexes(const char* key, const Capacity& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.emplace(key, value); return *this; }
143 private:
144
145 Aws::String m_tableName;
146 bool m_tableNameHasBeenSet = false;
147
148 double m_capacityUnits;
149 bool m_capacityUnitsHasBeenSet = false;
150
151 double m_readCapacityUnits;
152 bool m_readCapacityUnitsHasBeenSet = false;
153
154 double m_writeCapacityUnits;
155 bool m_writeCapacityUnitsHasBeenSet = false;
156
157 Capacity m_table;
158 bool m_tableHasBeenSet = false;
159
160 Aws::Map<Aws::String, Capacity> m_localSecondaryIndexes;
161 bool m_localSecondaryIndexesHasBeenSet = false;
162
163 Aws::Map<Aws::String, Capacity> m_globalSecondaryIndexes;
164 bool m_globalSecondaryIndexesHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace DynamoDB
169} // namespace Aws
ConsumedCapacity & AddLocalSecondaryIndexes(const char *key, Capacity &&value)
ConsumedCapacity & AddGlobalSecondaryIndexes(const char *key, Capacity &&value)
const Aws::String & GetTableName() const
void SetTable(const Capacity &value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTableName(const Aws::String &value)
ConsumedCapacity & AddGlobalSecondaryIndexes(const char *key, const Capacity &value)
ConsumedCapacity & WithTableName(Aws::String &&value)
ConsumedCapacity & WithTable(const Capacity &value)
ConsumedCapacity & WithGlobalSecondaryIndexes(const Aws::Map< Aws::String, Capacity > &value)
AWS_DYNAMODB_API ConsumedCapacity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API ConsumedCapacity(Aws::Utils::Json::JsonView jsonValue)
ConsumedCapacity & WithTableName(const Aws::String &value)
ConsumedCapacity & AddGlobalSecondaryIndexes(const Aws::String &key, Capacity &&value)
void SetLocalSecondaryIndexes(Aws::Map< Aws::String, Capacity > &&value)
ConsumedCapacity & AddLocalSecondaryIndexes(Aws::String &&key, const Capacity &value)
ConsumedCapacity & AddLocalSecondaryIndexes(const Aws::String &key, Capacity &&value)
void SetGlobalSecondaryIndexes(const Aws::Map< Aws::String, Capacity > &value)
ConsumedCapacity & AddGlobalSecondaryIndexes(const Aws::String &key, const Capacity &value)
ConsumedCapacity & WithReadCapacityUnits(double value)
ConsumedCapacity & WithTable(Capacity &&value)
ConsumedCapacity & WithCapacityUnits(double value)
ConsumedCapacity & WithGlobalSecondaryIndexes(Aws::Map< Aws::String, Capacity > &&value)
ConsumedCapacity & AddLocalSecondaryIndexes(const char *key, const Capacity &value)
ConsumedCapacity & AddLocalSecondaryIndexes(Aws::String &&key, Capacity &&value)
void SetGlobalSecondaryIndexes(Aws::Map< Aws::String, Capacity > &&value)
ConsumedCapacity & AddGlobalSecondaryIndexes(Aws::String &&key, Capacity &&value)
ConsumedCapacity & WithLocalSecondaryIndexes(Aws::Map< Aws::String, Capacity > &&value)
ConsumedCapacity & AddGlobalSecondaryIndexes(Aws::String &&key, const Capacity &value)
const Aws::Map< Aws::String, Capacity > & GetGlobalSecondaryIndexes() const
ConsumedCapacity & AddLocalSecondaryIndexes(const Aws::String &key, const Capacity &value)
ConsumedCapacity & WithTableName(const char *value)
void SetTableName(Aws::String &&value)
void SetLocalSecondaryIndexes(const Aws::Map< Aws::String, Capacity > &value)
ConsumedCapacity & WithWriteCapacityUnits(double value)
const Aws::Map< Aws::String, Capacity > & GetLocalSecondaryIndexes() const
ConsumedCapacity & WithLocalSecondaryIndexes(const Aws::Map< Aws::String, Capacity > &value)
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