AWS SDK for C++  0.14.3
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 
131  inline const Aws::String& GetOperation() const{ return m_operation; }
132 
139  inline void SetOperation(const Aws::String& value) { m_operationHasBeenSet = true; m_operation = value; }
140 
147  inline void SetOperation(Aws::String&& value) { m_operationHasBeenSet = true; m_operation = value; }
148 
155  inline void SetOperation(const char* value) { m_operationHasBeenSet = true; m_operation.assign(value); }
156 
163  inline DynamoDBAction& WithOperation(const Aws::String& value) { SetOperation(value); return *this;}
164 
171  inline DynamoDBAction& WithOperation(Aws::String&& value) { SetOperation(value); return *this;}
172 
179  inline DynamoDBAction& WithOperation(const char* value) { SetOperation(value); return *this;}
180 
184  inline const Aws::String& GetHashKeyField() const{ return m_hashKeyField; }
185 
189  inline void SetHashKeyField(const Aws::String& value) { m_hashKeyFieldHasBeenSet = true; m_hashKeyField = value; }
190 
194  inline void SetHashKeyField(Aws::String&& value) { m_hashKeyFieldHasBeenSet = true; m_hashKeyField = value; }
195 
199  inline void SetHashKeyField(const char* value) { m_hashKeyFieldHasBeenSet = true; m_hashKeyField.assign(value); }
200 
204  inline DynamoDBAction& WithHashKeyField(const Aws::String& value) { SetHashKeyField(value); return *this;}
205 
209  inline DynamoDBAction& WithHashKeyField(Aws::String&& value) { SetHashKeyField(value); return *this;}
210 
214  inline DynamoDBAction& WithHashKeyField(const char* value) { SetHashKeyField(value); return *this;}
215 
219  inline const Aws::String& GetHashKeyValue() const{ return m_hashKeyValue; }
220 
224  inline void SetHashKeyValue(const Aws::String& value) { m_hashKeyValueHasBeenSet = true; m_hashKeyValue = value; }
225 
229  inline void SetHashKeyValue(Aws::String&& value) { m_hashKeyValueHasBeenSet = true; m_hashKeyValue = value; }
230 
234  inline void SetHashKeyValue(const char* value) { m_hashKeyValueHasBeenSet = true; m_hashKeyValue.assign(value); }
235 
239  inline DynamoDBAction& WithHashKeyValue(const Aws::String& value) { SetHashKeyValue(value); return *this;}
240 
244  inline DynamoDBAction& WithHashKeyValue(Aws::String&& value) { SetHashKeyValue(value); return *this;}
245 
249  inline DynamoDBAction& WithHashKeyValue(const char* value) { SetHashKeyValue(value); return *this;}
250 
254  inline const DynamoKeyType& GetHashKeyType() const{ return m_hashKeyType; }
255 
259  inline void SetHashKeyType(const DynamoKeyType& value) { m_hashKeyTypeHasBeenSet = true; m_hashKeyType = value; }
260 
264  inline void SetHashKeyType(DynamoKeyType&& value) { m_hashKeyTypeHasBeenSet = true; m_hashKeyType = value; }
265 
269  inline DynamoDBAction& WithHashKeyType(const DynamoKeyType& value) { SetHashKeyType(value); return *this;}
270 
274  inline DynamoDBAction& WithHashKeyType(DynamoKeyType&& value) { SetHashKeyType(value); return *this;}
275 
279  inline const Aws::String& GetRangeKeyField() const{ return m_rangeKeyField; }
280 
284  inline void SetRangeKeyField(const Aws::String& value) { m_rangeKeyFieldHasBeenSet = true; m_rangeKeyField = value; }
285 
289  inline void SetRangeKeyField(Aws::String&& value) { m_rangeKeyFieldHasBeenSet = true; m_rangeKeyField = value; }
290 
294  inline void SetRangeKeyField(const char* value) { m_rangeKeyFieldHasBeenSet = true; m_rangeKeyField.assign(value); }
295 
299  inline DynamoDBAction& WithRangeKeyField(const Aws::String& value) { SetRangeKeyField(value); return *this;}
300 
304  inline DynamoDBAction& WithRangeKeyField(Aws::String&& value) { SetRangeKeyField(value); return *this;}
305 
309  inline DynamoDBAction& WithRangeKeyField(const char* value) { SetRangeKeyField(value); return *this;}
310 
314  inline const Aws::String& GetRangeKeyValue() const{ return m_rangeKeyValue; }
315 
319  inline void SetRangeKeyValue(const Aws::String& value) { m_rangeKeyValueHasBeenSet = true; m_rangeKeyValue = value; }
320 
324  inline void SetRangeKeyValue(Aws::String&& value) { m_rangeKeyValueHasBeenSet = true; m_rangeKeyValue = value; }
325 
329  inline void SetRangeKeyValue(const char* value) { m_rangeKeyValueHasBeenSet = true; m_rangeKeyValue.assign(value); }
330 
334  inline DynamoDBAction& WithRangeKeyValue(const Aws::String& value) { SetRangeKeyValue(value); return *this;}
335 
339  inline DynamoDBAction& WithRangeKeyValue(Aws::String&& value) { SetRangeKeyValue(value); return *this;}
340 
344  inline DynamoDBAction& WithRangeKeyValue(const char* value) { SetRangeKeyValue(value); return *this;}
345 
349  inline const DynamoKeyType& GetRangeKeyType() const{ return m_rangeKeyType; }
350 
354  inline void SetRangeKeyType(const DynamoKeyType& value) { m_rangeKeyTypeHasBeenSet = true; m_rangeKeyType = value; }
355 
359  inline void SetRangeKeyType(DynamoKeyType&& value) { m_rangeKeyTypeHasBeenSet = true; m_rangeKeyType = value; }
360 
364  inline DynamoDBAction& WithRangeKeyType(const DynamoKeyType& value) { SetRangeKeyType(value); return *this;}
365 
369  inline DynamoDBAction& WithRangeKeyType(DynamoKeyType&& value) { SetRangeKeyType(value); return *this;}
370 
374  inline const Aws::String& GetPayloadField() const{ return m_payloadField; }
375 
379  inline void SetPayloadField(const Aws::String& value) { m_payloadFieldHasBeenSet = true; m_payloadField = value; }
380 
384  inline void SetPayloadField(Aws::String&& value) { m_payloadFieldHasBeenSet = true; m_payloadField = value; }
385 
389  inline void SetPayloadField(const char* value) { m_payloadFieldHasBeenSet = true; m_payloadField.assign(value); }
390 
394  inline DynamoDBAction& WithPayloadField(const Aws::String& value) { SetPayloadField(value); return *this;}
395 
399  inline DynamoDBAction& WithPayloadField(Aws::String&& value) { SetPayloadField(value); return *this;}
400 
404  inline DynamoDBAction& WithPayloadField(const char* value) { SetPayloadField(value); return *this;}
405 
406  private:
407  Aws::String m_tableName;
408  bool m_tableNameHasBeenSet;
409  Aws::String m_roleArn;
410  bool m_roleArnHasBeenSet;
411  Aws::String m_operation;
412  bool m_operationHasBeenSet;
413  Aws::String m_hashKeyField;
414  bool m_hashKeyFieldHasBeenSet;
415  Aws::String m_hashKeyValue;
416  bool m_hashKeyValueHasBeenSet;
417  DynamoKeyType m_hashKeyType;
418  bool m_hashKeyTypeHasBeenSet;
419  Aws::String m_rangeKeyField;
420  bool m_rangeKeyFieldHasBeenSet;
421  Aws::String m_rangeKeyValue;
422  bool m_rangeKeyValueHasBeenSet;
423  DynamoKeyType m_rangeKeyType;
424  bool m_rangeKeyTypeHasBeenSet;
425  Aws::String m_payloadField;
426  bool m_payloadFieldHasBeenSet;
427  };
428 
429 } // namespace Model
430 } // namespace IoT
431 } // namespace Aws
DynamoDBAction & WithRangeKeyType(DynamoKeyType &&value)
DynamoDBAction & WithOperation(const char *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
DynamoDBAction & WithOperation(Aws::String &&value)
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)
void SetOperation(const char *value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
void SetRoleArn(const Aws::String &value)
void SetRoleArn(const char *value)
void SetRoleArn(Aws::String &&value)
DynamoDBAction & WithHashKeyType(DynamoKeyType &&value)
const Aws::String & GetOperation() const
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 SetOperation(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 & WithOperation(const 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)
void SetOperation(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)