AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DynamoDBAction.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/DynamoKeyType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT
23{
24namespace Model
25{
26
43 {
44 public:
45 AWS_IOT_API DynamoDBAction();
49
50
52
55 inline const Aws::String& GetTableName() const{ return m_tableName; }
56 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
57 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
58 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
59 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
60 inline DynamoDBAction& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
61 inline DynamoDBAction& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
62 inline DynamoDBAction& WithTableName(const char* value) { SetTableName(value); return *this;}
64
66
69 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
70 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
71 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
72 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
73 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
74 inline DynamoDBAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
75 inline DynamoDBAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
76 inline DynamoDBAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
78
80
86 inline const Aws::String& GetOperation() const{ return m_operation; }
87 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
88 inline void SetOperation(const Aws::String& value) { m_operationHasBeenSet = true; m_operation = value; }
89 inline void SetOperation(Aws::String&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
90 inline void SetOperation(const char* value) { m_operationHasBeenSet = true; m_operation.assign(value); }
91 inline DynamoDBAction& WithOperation(const Aws::String& value) { SetOperation(value); return *this;}
92 inline DynamoDBAction& WithOperation(Aws::String&& value) { SetOperation(std::move(value)); return *this;}
93 inline DynamoDBAction& WithOperation(const char* value) { SetOperation(value); return *this;}
95
97
100 inline const Aws::String& GetHashKeyField() const{ return m_hashKeyField; }
101 inline bool HashKeyFieldHasBeenSet() const { return m_hashKeyFieldHasBeenSet; }
102 inline void SetHashKeyField(const Aws::String& value) { m_hashKeyFieldHasBeenSet = true; m_hashKeyField = value; }
103 inline void SetHashKeyField(Aws::String&& value) { m_hashKeyFieldHasBeenSet = true; m_hashKeyField = std::move(value); }
104 inline void SetHashKeyField(const char* value) { m_hashKeyFieldHasBeenSet = true; m_hashKeyField.assign(value); }
105 inline DynamoDBAction& WithHashKeyField(const Aws::String& value) { SetHashKeyField(value); return *this;}
106 inline DynamoDBAction& WithHashKeyField(Aws::String&& value) { SetHashKeyField(std::move(value)); return *this;}
107 inline DynamoDBAction& WithHashKeyField(const char* value) { SetHashKeyField(value); return *this;}
109
111
114 inline const Aws::String& GetHashKeyValue() const{ return m_hashKeyValue; }
115 inline bool HashKeyValueHasBeenSet() const { return m_hashKeyValueHasBeenSet; }
116 inline void SetHashKeyValue(const Aws::String& value) { m_hashKeyValueHasBeenSet = true; m_hashKeyValue = value; }
117 inline void SetHashKeyValue(Aws::String&& value) { m_hashKeyValueHasBeenSet = true; m_hashKeyValue = std::move(value); }
118 inline void SetHashKeyValue(const char* value) { m_hashKeyValueHasBeenSet = true; m_hashKeyValue.assign(value); }
119 inline DynamoDBAction& WithHashKeyValue(const Aws::String& value) { SetHashKeyValue(value); return *this;}
120 inline DynamoDBAction& WithHashKeyValue(Aws::String&& value) { SetHashKeyValue(std::move(value)); return *this;}
121 inline DynamoDBAction& WithHashKeyValue(const char* value) { SetHashKeyValue(value); return *this;}
123
125
128 inline const DynamoKeyType& GetHashKeyType() const{ return m_hashKeyType; }
129 inline bool HashKeyTypeHasBeenSet() const { return m_hashKeyTypeHasBeenSet; }
130 inline void SetHashKeyType(const DynamoKeyType& value) { m_hashKeyTypeHasBeenSet = true; m_hashKeyType = value; }
131 inline void SetHashKeyType(DynamoKeyType&& value) { m_hashKeyTypeHasBeenSet = true; m_hashKeyType = std::move(value); }
132 inline DynamoDBAction& WithHashKeyType(const DynamoKeyType& value) { SetHashKeyType(value); return *this;}
133 inline DynamoDBAction& WithHashKeyType(DynamoKeyType&& value) { SetHashKeyType(std::move(value)); return *this;}
135
137
140 inline const Aws::String& GetRangeKeyField() const{ return m_rangeKeyField; }
141 inline bool RangeKeyFieldHasBeenSet() const { return m_rangeKeyFieldHasBeenSet; }
142 inline void SetRangeKeyField(const Aws::String& value) { m_rangeKeyFieldHasBeenSet = true; m_rangeKeyField = value; }
143 inline void SetRangeKeyField(Aws::String&& value) { m_rangeKeyFieldHasBeenSet = true; m_rangeKeyField = std::move(value); }
144 inline void SetRangeKeyField(const char* value) { m_rangeKeyFieldHasBeenSet = true; m_rangeKeyField.assign(value); }
145 inline DynamoDBAction& WithRangeKeyField(const Aws::String& value) { SetRangeKeyField(value); return *this;}
146 inline DynamoDBAction& WithRangeKeyField(Aws::String&& value) { SetRangeKeyField(std::move(value)); return *this;}
147 inline DynamoDBAction& WithRangeKeyField(const char* value) { SetRangeKeyField(value); return *this;}
149
151
154 inline const Aws::String& GetRangeKeyValue() const{ return m_rangeKeyValue; }
155 inline bool RangeKeyValueHasBeenSet() const { return m_rangeKeyValueHasBeenSet; }
156 inline void SetRangeKeyValue(const Aws::String& value) { m_rangeKeyValueHasBeenSet = true; m_rangeKeyValue = value; }
157 inline void SetRangeKeyValue(Aws::String&& value) { m_rangeKeyValueHasBeenSet = true; m_rangeKeyValue = std::move(value); }
158 inline void SetRangeKeyValue(const char* value) { m_rangeKeyValueHasBeenSet = true; m_rangeKeyValue.assign(value); }
159 inline DynamoDBAction& WithRangeKeyValue(const Aws::String& value) { SetRangeKeyValue(value); return *this;}
160 inline DynamoDBAction& WithRangeKeyValue(Aws::String&& value) { SetRangeKeyValue(std::move(value)); return *this;}
161 inline DynamoDBAction& WithRangeKeyValue(const char* value) { SetRangeKeyValue(value); return *this;}
163
165
168 inline const DynamoKeyType& GetRangeKeyType() const{ return m_rangeKeyType; }
169 inline bool RangeKeyTypeHasBeenSet() const { return m_rangeKeyTypeHasBeenSet; }
170 inline void SetRangeKeyType(const DynamoKeyType& value) { m_rangeKeyTypeHasBeenSet = true; m_rangeKeyType = value; }
171 inline void SetRangeKeyType(DynamoKeyType&& value) { m_rangeKeyTypeHasBeenSet = true; m_rangeKeyType = std::move(value); }
172 inline DynamoDBAction& WithRangeKeyType(const DynamoKeyType& value) { SetRangeKeyType(value); return *this;}
173 inline DynamoDBAction& WithRangeKeyType(DynamoKeyType&& value) { SetRangeKeyType(std::move(value)); return *this;}
175
177
180 inline const Aws::String& GetPayloadField() const{ return m_payloadField; }
181 inline bool PayloadFieldHasBeenSet() const { return m_payloadFieldHasBeenSet; }
182 inline void SetPayloadField(const Aws::String& value) { m_payloadFieldHasBeenSet = true; m_payloadField = value; }
183 inline void SetPayloadField(Aws::String&& value) { m_payloadFieldHasBeenSet = true; m_payloadField = std::move(value); }
184 inline void SetPayloadField(const char* value) { m_payloadFieldHasBeenSet = true; m_payloadField.assign(value); }
185 inline DynamoDBAction& WithPayloadField(const Aws::String& value) { SetPayloadField(value); return *this;}
186 inline DynamoDBAction& WithPayloadField(Aws::String&& value) { SetPayloadField(std::move(value)); return *this;}
187 inline DynamoDBAction& WithPayloadField(const char* value) { SetPayloadField(value); return *this;}
189 private:
190
191 Aws::String m_tableName;
192 bool m_tableNameHasBeenSet = false;
193
194 Aws::String m_roleArn;
195 bool m_roleArnHasBeenSet = false;
196
197 Aws::String m_operation;
198 bool m_operationHasBeenSet = false;
199
200 Aws::String m_hashKeyField;
201 bool m_hashKeyFieldHasBeenSet = false;
202
203 Aws::String m_hashKeyValue;
204 bool m_hashKeyValueHasBeenSet = false;
205
206 DynamoKeyType m_hashKeyType;
207 bool m_hashKeyTypeHasBeenSet = false;
208
209 Aws::String m_rangeKeyField;
210 bool m_rangeKeyFieldHasBeenSet = false;
211
212 Aws::String m_rangeKeyValue;
213 bool m_rangeKeyValueHasBeenSet = false;
214
215 DynamoKeyType m_rangeKeyType;
216 bool m_rangeKeyTypeHasBeenSet = false;
217
218 Aws::String m_payloadField;
219 bool m_payloadFieldHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace IoT
224} // namespace Aws
DynamoDBAction & WithRangeKeyField(const Aws::String &value)
void SetOperation(const Aws::String &value)
DynamoDBAction & WithRangeKeyType(const DynamoKeyType &value)
const Aws::String & GetHashKeyValue() const
const DynamoKeyType & GetRangeKeyType() const
void SetHashKeyType(const DynamoKeyType &value)
void SetOperation(const char *value)
DynamoDBAction & WithTableName(Aws::String &&value)
void SetRangeKeyValue(const Aws::String &value)
DynamoDBAction & WithHashKeyType(const DynamoKeyType &value)
const Aws::String & GetRangeKeyField() const
const Aws::String & GetOperation() const
DynamoDBAction & WithPayloadField(const char *value)
DynamoDBAction & WithHashKeyField(Aws::String &&value)
const Aws::String & GetHashKeyField() const
DynamoDBAction & WithOperation(const Aws::String &value)
DynamoDBAction & WithRoleArn(Aws::String &&value)
void SetOperation(Aws::String &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPayloadField(const Aws::String &value)
void SetRangeKeyType(const DynamoKeyType &value)
void SetTableName(const char *value)
DynamoDBAction & WithHashKeyType(DynamoKeyType &&value)
void SetRangeKeyValue(const char *value)
void SetPayloadField(Aws::String &&value)
DynamoDBAction & WithOperation(const char *value)
const Aws::String & GetPayloadField() const
void SetHashKeyField(Aws::String &&value)
void SetRoleArn(const char *value)
AWS_IOT_API DynamoDBAction(Aws::Utils::Json::JsonView jsonValue)
DynamoDBAction & WithOperation(Aws::String &&value)
DynamoDBAction & WithHashKeyValue(const Aws::String &value)
DynamoDBAction & WithRangeKeyType(DynamoKeyType &&value)
DynamoDBAction & WithRangeKeyField(Aws::String &&value)
void SetHashKeyValue(Aws::String &&value)
void SetHashKeyValue(const Aws::String &value)
DynamoDBAction & WithPayloadField(const Aws::String &value)
DynamoDBAction & WithTableName(const Aws::String &value)
void SetHashKeyValue(const char *value)
const Aws::String & GetRoleArn() const
void SetRoleArn(Aws::String &&value)
const Aws::String & GetRangeKeyValue() const
DynamoDBAction & WithRangeKeyValue(const Aws::String &value)
void SetTableName(Aws::String &&value)
void SetRangeKeyType(DynamoKeyType &&value)
void SetHashKeyType(DynamoKeyType &&value)
DynamoDBAction & WithHashKeyField(const char *value)
DynamoDBAction & WithRoleArn(const char *value)
void SetHashKeyField(const Aws::String &value)
DynamoDBAction & WithTableName(const char *value)
AWS_IOT_API DynamoDBAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRangeKeyField(const char *value)
DynamoDBAction & WithPayloadField(Aws::String &&value)
DynamoDBAction & WithHashKeyField(const Aws::String &value)
DynamoDBAction & WithRangeKeyValue(const char *value)
void SetPayloadField(const char *value)
DynamoDBAction & WithHashKeyValue(Aws::String &&value)
void SetRangeKeyValue(Aws::String &&value)
void SetRoleArn(const Aws::String &value)
DynamoDBAction & WithRoleArn(const Aws::String &value)
DynamoDBAction & WithHashKeyValue(const char *value)
DynamoDBAction & WithRangeKeyField(const char *value)
void SetRangeKeyField(Aws::String &&value)
void SetRangeKeyField(const Aws::String &value)
void SetTableName(const Aws::String &value)
const DynamoKeyType & GetHashKeyType() const
const Aws::String & GetTableName() const
DynamoDBAction & WithRangeKeyValue(Aws::String &&value)
void SetHashKeyField(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue