AWS SDK for C++  0.12.9
AWS SDK for C++
ConsumedCapacity.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DynamoDB
31 {
32 namespace Model
33 {
34 
44  {
45  public:
48  ConsumedCapacity& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
49  Aws::Utils::Json::JsonValue Jsonize() const;
50 
54  inline const Aws::String& GetTableName() const{ return m_tableName; }
55 
59  inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
60 
64  inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
65 
69  inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
70 
74  inline ConsumedCapacity& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
75 
79  inline ConsumedCapacity& WithTableName(Aws::String&& value) { SetTableName(value); return *this;}
80 
84  inline ConsumedCapacity& WithTableName(const char* value) { SetTableName(value); return *this;}
85 
89  inline double GetCapacityUnits() const{ return m_capacityUnits; }
90 
94  inline void SetCapacityUnits(double value) { m_capacityUnitsHasBeenSet = true; m_capacityUnits = value; }
95 
99  inline ConsumedCapacity& WithCapacityUnits(double value) { SetCapacityUnits(value); return *this;}
100 
104  inline const Capacity& GetTable() const{ return m_table; }
105 
109  inline void SetTable(const Capacity& value) { m_tableHasBeenSet = true; m_table = value; }
110 
114  inline void SetTable(Capacity&& value) { m_tableHasBeenSet = true; m_table = value; }
115 
119  inline ConsumedCapacity& WithTable(const Capacity& value) { SetTable(value); return *this;}
120 
124  inline ConsumedCapacity& WithTable(Capacity&& value) { SetTable(value); return *this;}
125 
130  inline const Aws::Map<Aws::String, Capacity>& GetLocalSecondaryIndexes() const{ return m_localSecondaryIndexes; }
131 
136  inline void SetLocalSecondaryIndexes(const Aws::Map<Aws::String, Capacity>& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes = value; }
137 
142  inline void SetLocalSecondaryIndexes(Aws::Map<Aws::String, Capacity>&& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes = value; }
143 
148  inline ConsumedCapacity& WithLocalSecondaryIndexes(const Aws::Map<Aws::String, Capacity>& value) { SetLocalSecondaryIndexes(value); return *this;}
149 
154  inline ConsumedCapacity& WithLocalSecondaryIndexes(Aws::Map<Aws::String, Capacity>&& value) { SetLocalSecondaryIndexes(value); return *this;}
155 
160  inline ConsumedCapacity& AddLocalSecondaryIndexes(const Aws::String& key, const Capacity& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes[key] = value; return *this; }
161 
166  inline ConsumedCapacity& AddLocalSecondaryIndexes(Aws::String&& key, const Capacity& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes[key] = value; return *this; }
167 
172  inline ConsumedCapacity& AddLocalSecondaryIndexes(const Aws::String& key, Capacity&& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes[key] = value; return *this; }
173 
178  inline ConsumedCapacity& AddLocalSecondaryIndexes(Aws::String&& key, Capacity&& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes[key] = value; return *this; }
179 
184  inline ConsumedCapacity& AddLocalSecondaryIndexes(const char* key, Capacity&& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes[key] = value; return *this; }
185 
190  inline ConsumedCapacity& AddLocalSecondaryIndexes(const char* key, const Capacity& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes[key] = value; return *this; }
191 
196  inline const Aws::Map<Aws::String, Capacity>& GetGlobalSecondaryIndexes() const{ return m_globalSecondaryIndexes; }
197 
202  inline void SetGlobalSecondaryIndexes(const Aws::Map<Aws::String, Capacity>& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes = value; }
203 
208  inline void SetGlobalSecondaryIndexes(Aws::Map<Aws::String, Capacity>&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes = value; }
209 
214  inline ConsumedCapacity& WithGlobalSecondaryIndexes(const Aws::Map<Aws::String, Capacity>& value) { SetGlobalSecondaryIndexes(value); return *this;}
215 
220  inline ConsumedCapacity& WithGlobalSecondaryIndexes(Aws::Map<Aws::String, Capacity>&& value) { SetGlobalSecondaryIndexes(value); return *this;}
221 
226  inline ConsumedCapacity& AddGlobalSecondaryIndexes(const Aws::String& key, const Capacity& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes[key] = value; return *this; }
227 
232  inline ConsumedCapacity& AddGlobalSecondaryIndexes(Aws::String&& key, const Capacity& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes[key] = value; return *this; }
233 
238  inline ConsumedCapacity& AddGlobalSecondaryIndexes(const Aws::String& key, Capacity&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes[key] = value; return *this; }
239 
244  inline ConsumedCapacity& AddGlobalSecondaryIndexes(Aws::String&& key, Capacity&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes[key] = value; return *this; }
245 
250  inline ConsumedCapacity& AddGlobalSecondaryIndexes(const char* key, Capacity&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes[key] = value; return *this; }
251 
256  inline ConsumedCapacity& AddGlobalSecondaryIndexes(const char* key, const Capacity& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes[key] = value; return *this; }
257 
258  private:
259  Aws::String m_tableName;
260  bool m_tableNameHasBeenSet;
261  double m_capacityUnits;
262  bool m_capacityUnitsHasBeenSet;
263  Capacity m_table;
264  bool m_tableHasBeenSet;
265  Aws::Map<Aws::String, Capacity> m_localSecondaryIndexes;
266  bool m_localSecondaryIndexesHasBeenSet;
267  Aws::Map<Aws::String, Capacity> m_globalSecondaryIndexes;
268  bool m_globalSecondaryIndexesHasBeenSet;
269  };
270 
271 } // namespace Model
272 } // namespace DynamoDB
273 } // namespace Aws
ConsumedCapacity & AddGlobalSecondaryIndexes(const Aws::String &key, const Capacity &value)
ConsumedCapacity & WithCapacityUnits(double value)
ConsumedCapacity & WithTable(const Capacity &value)
ConsumedCapacity & AddGlobalSecondaryIndexes(Aws::String &&key, Capacity &&value)
ConsumedCapacity & WithTableName(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetLocalSecondaryIndexes(const Aws::Map< Aws::String, Capacity > &value)
ConsumedCapacity & WithTableName(Aws::String &&value)
ConsumedCapacity & WithTable(Capacity &&value)
ConsumedCapacity & AddLocalSecondaryIndexes(const char *key, Capacity &&value)
#define AWS_DYNAMODB_API
ConsumedCapacity & AddGlobalSecondaryIndexes(const char *key, const Capacity &value)
ConsumedCapacity & WithTableName(const Aws::String &value)
void SetTableName(const Aws::String &value)
ConsumedCapacity & AddLocalSecondaryIndexes(const char *key, const Capacity &value)
ConsumedCapacity & WithLocalSecondaryIndexes(Aws::Map< Aws::String, Capacity > &&value)
const Aws::Map< Aws::String, Capacity > & GetLocalSecondaryIndexes() const
const Aws::String & GetTableName() const
ConsumedCapacity & AddGlobalSecondaryIndexes(const char *key, Capacity &&value)
ConsumedCapacity & WithGlobalSecondaryIndexes(Aws::Map< Aws::String, Capacity > &&value)
ConsumedCapacity & AddGlobalSecondaryIndexes(const Aws::String &key, Capacity &&value)
void SetGlobalSecondaryIndexes(Aws::Map< Aws::String, Capacity > &&value)
ConsumedCapacity & AddLocalSecondaryIndexes(const Aws::String &key, const Capacity &value)
void SetTableName(Aws::String &&value)
ConsumedCapacity & WithGlobalSecondaryIndexes(const Aws::Map< Aws::String, Capacity > &value)
void SetTable(const Capacity &value)
ConsumedCapacity & AddLocalSecondaryIndexes(Aws::String &&key, Capacity &&value)
ConsumedCapacity & WithLocalSecondaryIndexes(const Aws::Map< Aws::String, Capacity > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Map< Aws::String, Capacity > & GetGlobalSecondaryIndexes() const
ConsumedCapacity & AddGlobalSecondaryIndexes(Aws::String &&key, const Capacity &value)
ConsumedCapacity & AddLocalSecondaryIndexes(Aws::String &&key, const Capacity &value)
void SetGlobalSecondaryIndexes(const Aws::Map< Aws::String, Capacity > &value)
ConsumedCapacity & AddLocalSecondaryIndexes(const Aws::String &key, Capacity &&value)
void SetLocalSecondaryIndexes(Aws::Map< Aws::String, Capacity > &&value)
JSON (JavaScript Object Notation).