AWS SDK for C++  0.12.9
AWS SDK for C++
DynamoDBAction.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
16 #include <aws/iot/IoT_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace IoT
30 {
31 namespace Model
32 {
33 
48  {
49  public:
52  DynamoDBAction& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
53  Aws::Utils::Json::JsonValue Jsonize() const;
54 
58  inline const Aws::String& GetTableName() const{ return m_tableName; }
59 
63  inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
64 
68  inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
69 
73  inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
74 
78  inline DynamoDBAction& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
79 
83  inline DynamoDBAction& WithTableName(Aws::String&& value) { SetTableName(value); return *this;}
84 
88  inline DynamoDBAction& WithTableName(const char* value) { SetTableName(value); return *this;}
89 
93  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
94 
98  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
99 
103  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
104 
108  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
109 
113  inline DynamoDBAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
114 
118  inline DynamoDBAction& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
119 
123  inline DynamoDBAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
124 
128  inline const Aws::String& GetHashKeyField() const{ return m_hashKeyField; }
129 
133  inline void SetHashKeyField(const Aws::String& value) { m_hashKeyFieldHasBeenSet = true; m_hashKeyField = value; }
134 
138  inline void SetHashKeyField(Aws::String&& value) { m_hashKeyFieldHasBeenSet = true; m_hashKeyField = value; }
139 
143  inline void SetHashKeyField(const char* value) { m_hashKeyFieldHasBeenSet = true; m_hashKeyField.assign(value); }
144 
148  inline DynamoDBAction& WithHashKeyField(const Aws::String& value) { SetHashKeyField(value); return *this;}
149 
153  inline DynamoDBAction& WithHashKeyField(Aws::String&& value) { SetHashKeyField(value); return *this;}
154 
158  inline DynamoDBAction& WithHashKeyField(const char* value) { SetHashKeyField(value); return *this;}
159 
163  inline const Aws::String& GetHashKeyValue() const{ return m_hashKeyValue; }
164 
168  inline void SetHashKeyValue(const Aws::String& value) { m_hashKeyValueHasBeenSet = true; m_hashKeyValue = value; }
169 
173  inline void SetHashKeyValue(Aws::String&& value) { m_hashKeyValueHasBeenSet = true; m_hashKeyValue = value; }
174 
178  inline void SetHashKeyValue(const char* value) { m_hashKeyValueHasBeenSet = true; m_hashKeyValue.assign(value); }
179 
183  inline DynamoDBAction& WithHashKeyValue(const Aws::String& value) { SetHashKeyValue(value); return *this;}
184 
188  inline DynamoDBAction& WithHashKeyValue(Aws::String&& value) { SetHashKeyValue(value); return *this;}
189 
193  inline DynamoDBAction& WithHashKeyValue(const char* value) { SetHashKeyValue(value); return *this;}
194 
198  inline const DynamoKeyType& GetHashKeyType() const{ return m_hashKeyType; }
199 
203  inline void SetHashKeyType(const DynamoKeyType& value) { m_hashKeyTypeHasBeenSet = true; m_hashKeyType = value; }
204 
208  inline void SetHashKeyType(DynamoKeyType&& value) { m_hashKeyTypeHasBeenSet = true; m_hashKeyType = value; }
209 
213  inline DynamoDBAction& WithHashKeyType(const DynamoKeyType& value) { SetHashKeyType(value); return *this;}
214 
218  inline DynamoDBAction& WithHashKeyType(DynamoKeyType&& value) { SetHashKeyType(value); return *this;}
219 
223  inline const Aws::String& GetRangeKeyField() const{ return m_rangeKeyField; }
224 
228  inline void SetRangeKeyField(const Aws::String& value) { m_rangeKeyFieldHasBeenSet = true; m_rangeKeyField = value; }
229 
233  inline void SetRangeKeyField(Aws::String&& value) { m_rangeKeyFieldHasBeenSet = true; m_rangeKeyField = value; }
234 
238  inline void SetRangeKeyField(const char* value) { m_rangeKeyFieldHasBeenSet = true; m_rangeKeyField.assign(value); }
239 
243  inline DynamoDBAction& WithRangeKeyField(const Aws::String& value) { SetRangeKeyField(value); return *this;}
244 
248  inline DynamoDBAction& WithRangeKeyField(Aws::String&& value) { SetRangeKeyField(value); return *this;}
249 
253  inline DynamoDBAction& WithRangeKeyField(const char* value) { SetRangeKeyField(value); return *this;}
254 
258  inline const Aws::String& GetRangeKeyValue() const{ return m_rangeKeyValue; }
259 
263  inline void SetRangeKeyValue(const Aws::String& value) { m_rangeKeyValueHasBeenSet = true; m_rangeKeyValue = value; }
264 
268  inline void SetRangeKeyValue(Aws::String&& value) { m_rangeKeyValueHasBeenSet = true; m_rangeKeyValue = value; }
269 
273  inline void SetRangeKeyValue(const char* value) { m_rangeKeyValueHasBeenSet = true; m_rangeKeyValue.assign(value); }
274 
278  inline DynamoDBAction& WithRangeKeyValue(const Aws::String& value) { SetRangeKeyValue(value); return *this;}
279 
283  inline DynamoDBAction& WithRangeKeyValue(Aws::String&& value) { SetRangeKeyValue(value); return *this;}
284 
288  inline DynamoDBAction& WithRangeKeyValue(const char* value) { SetRangeKeyValue(value); return *this;}
289 
293  inline const DynamoKeyType& GetRangeKeyType() const{ return m_rangeKeyType; }
294 
298  inline void SetRangeKeyType(const DynamoKeyType& value) { m_rangeKeyTypeHasBeenSet = true; m_rangeKeyType = value; }
299 
303  inline void SetRangeKeyType(DynamoKeyType&& value) { m_rangeKeyTypeHasBeenSet = true; m_rangeKeyType = value; }
304 
308  inline DynamoDBAction& WithRangeKeyType(const DynamoKeyType& value) { SetRangeKeyType(value); return *this;}
309 
313  inline DynamoDBAction& WithRangeKeyType(DynamoKeyType&& value) { SetRangeKeyType(value); return *this;}
314 
318  inline const Aws::String& GetPayloadField() const{ return m_payloadField; }
319 
323  inline void SetPayloadField(const Aws::String& value) { m_payloadFieldHasBeenSet = true; m_payloadField = value; }
324 
328  inline void SetPayloadField(Aws::String&& value) { m_payloadFieldHasBeenSet = true; m_payloadField = value; }
329 
333  inline void SetPayloadField(const char* value) { m_payloadFieldHasBeenSet = true; m_payloadField.assign(value); }
334 
338  inline DynamoDBAction& WithPayloadField(const Aws::String& value) { SetPayloadField(value); return *this;}
339 
343  inline DynamoDBAction& WithPayloadField(Aws::String&& value) { SetPayloadField(value); return *this;}
344 
348  inline DynamoDBAction& WithPayloadField(const char* value) { SetPayloadField(value); return *this;}
349 
350  private:
351  Aws::String m_tableName;
352  bool m_tableNameHasBeenSet;
353  Aws::String m_roleArn;
354  bool m_roleArnHasBeenSet;
355  Aws::String m_hashKeyField;
356  bool m_hashKeyFieldHasBeenSet;
357  Aws::String m_hashKeyValue;
358  bool m_hashKeyValueHasBeenSet;
359  DynamoKeyType m_hashKeyType;
360  bool m_hashKeyTypeHasBeenSet;
361  Aws::String m_rangeKeyField;
362  bool m_rangeKeyFieldHasBeenSet;
363  Aws::String m_rangeKeyValue;
364  bool m_rangeKeyValueHasBeenSet;
365  DynamoKeyType m_rangeKeyType;
366  bool m_rangeKeyTypeHasBeenSet;
367  Aws::String m_payloadField;
368  bool m_payloadFieldHasBeenSet;
369  };
370 
371 } // namespace Model
372 } // namespace IoT
373 } // namespace Aws
DynamoDBAction & WithRangeKeyType(DynamoKeyType &&value)
DynamoDBAction & WithHashKeyField(const char *value)
void SetRangeKeyValue(const Aws::String &value)
const DynamoKeyType & GetHashKeyType() const
DynamoDBAction & WithRangeKeyField(const Aws::String &value)
void SetHashKeyType(const DynamoKeyType &value)
const Aws::String & GetHashKeyField() const
void SetPayloadField(const char *value)
const Aws::String & GetRangeKeyField() const
void SetTableName(const Aws::String &value)
void SetHashKeyValue(const Aws::String &value)
DynamoDBAction & WithRangeKeyField(Aws::String &&value)
void SetRangeKeyType(const DynamoKeyType &value)
DynamoDBAction & WithRoleArn(const char *value)
void SetRangeKeyField(Aws::String &&value)
DynamoDBAction & WithRangeKeyValue(const char *value)
void SetHashKeyValue(Aws::String &&value)
DynamoDBAction & WithTableName(const Aws::String &value)
DynamoDBAction & WithRoleArn(Aws::String &&value)
const Aws::String & GetHashKeyValue() const
DynamoDBAction & WithRangeKeyField(const char *value)
const Aws::String & GetPayloadField() const
void SetRangeKeyValue(const char *value)
void SetHashKeyField(Aws::String &&value)
void SetHashKeyValue(const char *value)
DynamoDBAction & WithHashKeyType(const DynamoKeyType &value)
void SetHashKeyField(const char *value)
void SetRangeKeyField(const char *value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:34
void SetRoleArn(const Aws::String &value)
void SetRoleArn(const char *value)
void SetRoleArn(Aws::String &&value)
DynamoDBAction & WithHashKeyType(DynamoKeyType &&value)
DynamoDBAction & WithHashKeyValue(Aws::String &&value)
DynamoDBAction & WithRangeKeyValue(Aws::String &&value)
DynamoDBAction & WithPayloadField(const char *value)
const Aws::String & GetRangeKeyValue() const
void SetRangeKeyField(const Aws::String &value)
const DynamoKeyType & GetRangeKeyType() const
DynamoDBAction & WithRangeKeyValue(const Aws::String &value)
DynamoDBAction & WithHashKeyField(const Aws::String &value)
void SetPayloadField(const Aws::String &value)
const Aws::String & GetTableName() const
DynamoDBAction & WithPayloadField(const Aws::String &value)
DynamoDBAction & WithTableName(Aws::String &&value)
void SetHashKeyType(DynamoKeyType &&value)
DynamoDBAction & WithHashKeyField(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetRangeKeyType(DynamoKeyType &&value)
void SetPayloadField(Aws::String &&value)
void SetTableName(Aws::String &&value)
DynamoDBAction & WithHashKeyValue(const char *value)
const Aws::String & GetRoleArn() const
DynamoDBAction & WithRoleArn(const Aws::String &value)
void SetHashKeyField(const Aws::String &value)
DynamoDBAction & WithPayloadField(Aws::String &&value)
void SetTableName(const char *value)
void SetRangeKeyValue(Aws::String &&value)
DynamoDBAction & WithTableName(const char *value)
JSON (JavaScript Object Notation).
DynamoDBAction & WithHashKeyValue(const Aws::String &value)
DynamoDBAction & WithRangeKeyType(const DynamoKeyType &value)