AWS SDK for C++  1.9.130
AWS SDK for C++
TopicRule.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
11 #include <aws/iot/model/Action.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
47 
51  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
52 
56  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
57 
61  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
62 
66  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
67 
71  inline TopicRule& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
72 
76  inline TopicRule& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
77 
81  inline TopicRule& WithRuleName(const char* value) { SetRuleName(value); return *this;}
82 
83 
88  inline const Aws::String& GetSql() const{ return m_sql; }
89 
94  inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; }
95 
100  inline void SetSql(const Aws::String& value) { m_sqlHasBeenSet = true; m_sql = value; }
101 
106  inline void SetSql(Aws::String&& value) { m_sqlHasBeenSet = true; m_sql = std::move(value); }
107 
112  inline void SetSql(const char* value) { m_sqlHasBeenSet = true; m_sql.assign(value); }
113 
118  inline TopicRule& WithSql(const Aws::String& value) { SetSql(value); return *this;}
119 
124  inline TopicRule& WithSql(Aws::String&& value) { SetSql(std::move(value)); return *this;}
125 
130  inline TopicRule& WithSql(const char* value) { SetSql(value); return *this;}
131 
132 
136  inline const Aws::String& GetDescription() const{ return m_description; }
137 
141  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
142 
146  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
147 
151  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
152 
156  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
157 
161  inline TopicRule& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
162 
166  inline TopicRule& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
167 
171  inline TopicRule& WithDescription(const char* value) { SetDescription(value); return *this;}
172 
173 
177  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
178 
182  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
183 
187  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
188 
192  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
193 
197  inline TopicRule& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
198 
202  inline TopicRule& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
203 
204 
208  inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
209 
213  inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
214 
218  inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
219 
223  inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
224 
228  inline TopicRule& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
229 
233  inline TopicRule& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
234 
238  inline TopicRule& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
239 
243  inline TopicRule& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
244 
245 
249  inline bool GetRuleDisabled() const{ return m_ruleDisabled; }
250 
254  inline bool RuleDisabledHasBeenSet() const { return m_ruleDisabledHasBeenSet; }
255 
259  inline void SetRuleDisabled(bool value) { m_ruleDisabledHasBeenSet = true; m_ruleDisabled = value; }
260 
264  inline TopicRule& WithRuleDisabled(bool value) { SetRuleDisabled(value); return *this;}
265 
266 
270  inline const Aws::String& GetAwsIotSqlVersion() const{ return m_awsIotSqlVersion; }
271 
275  inline bool AwsIotSqlVersionHasBeenSet() const { return m_awsIotSqlVersionHasBeenSet; }
276 
280  inline void SetAwsIotSqlVersion(const Aws::String& value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion = value; }
281 
285  inline void SetAwsIotSqlVersion(Aws::String&& value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion = std::move(value); }
286 
290  inline void SetAwsIotSqlVersion(const char* value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion.assign(value); }
291 
295  inline TopicRule& WithAwsIotSqlVersion(const Aws::String& value) { SetAwsIotSqlVersion(value); return *this;}
296 
300  inline TopicRule& WithAwsIotSqlVersion(Aws::String&& value) { SetAwsIotSqlVersion(std::move(value)); return *this;}
301 
305  inline TopicRule& WithAwsIotSqlVersion(const char* value) { SetAwsIotSqlVersion(value); return *this;}
306 
307 
311  inline const Action& GetErrorAction() const{ return m_errorAction; }
312 
316  inline bool ErrorActionHasBeenSet() const { return m_errorActionHasBeenSet; }
317 
321  inline void SetErrorAction(const Action& value) { m_errorActionHasBeenSet = true; m_errorAction = value; }
322 
326  inline void SetErrorAction(Action&& value) { m_errorActionHasBeenSet = true; m_errorAction = std::move(value); }
327 
331  inline TopicRule& WithErrorAction(const Action& value) { SetErrorAction(value); return *this;}
332 
336  inline TopicRule& WithErrorAction(Action&& value) { SetErrorAction(std::move(value)); return *this;}
337 
338  private:
339 
340  Aws::String m_ruleName;
341  bool m_ruleNameHasBeenSet;
342 
343  Aws::String m_sql;
344  bool m_sqlHasBeenSet;
345 
346  Aws::String m_description;
347  bool m_descriptionHasBeenSet;
348 
349  Aws::Utils::DateTime m_createdAt;
350  bool m_createdAtHasBeenSet;
351 
352  Aws::Vector<Action> m_actions;
353  bool m_actionsHasBeenSet;
354 
355  bool m_ruleDisabled;
356  bool m_ruleDisabledHasBeenSet;
357 
358  Aws::String m_awsIotSqlVersion;
359  bool m_awsIotSqlVersionHasBeenSet;
360 
361  Action m_errorAction;
362  bool m_errorActionHasBeenSet;
363  };
364 
365 } // namespace Model
366 } // namespace IoT
367 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::TopicRule::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: TopicRule.h:192
Aws::IoT::Model::TopicRule::WithRuleDisabled
TopicRule & WithRuleDisabled(bool value)
Definition: TopicRule.h:264
Aws::IoT::Model::TopicRule::WithDescription
TopicRule & WithDescription(Aws::String &&value)
Definition: TopicRule.h:166
Aws::IoT::Model::TopicRule::SetErrorAction
void SetErrorAction(const Action &value)
Definition: TopicRule.h:321
Aws::IoT::Model::TopicRule::SetSql
void SetSql(const char *value)
Definition: TopicRule.h:112
Aws::IoT::Model::TopicRule::WithErrorAction
TopicRule & WithErrorAction(Action &&value)
Definition: TopicRule.h:336
Aws::IoT::Model::TopicRule::TopicRule
TopicRule(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::TopicRule::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: TopicRule.h:61
Aws::IoT::Model::TopicRule::RuleDisabledHasBeenSet
bool RuleDisabledHasBeenSet() const
Definition: TopicRule.h:254
Aws::IoT::Model::TopicRule::SetSql
void SetSql(Aws::String &&value)
Definition: TopicRule.h:106
Aws::IoT::Model::TopicRule::AwsIotSqlVersionHasBeenSet
bool AwsIotSqlVersionHasBeenSet() const
Definition: TopicRule.h:275
Aws::IoT::Model::TopicRule::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: TopicRule.h:56
Aws::IoT::Model::TopicRule::SetDescription
void SetDescription(Aws::String &&value)
Definition: TopicRule.h:151
DateTime.h
Aws::IoT::Model::TopicRule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::TopicRule::WithActions
TopicRule & WithActions(const Aws::Vector< Action > &value)
Definition: TopicRule.h:228
Aws::IoT::Model::TopicRule::GetActions
const Aws::Vector< Action > & GetActions() const
Definition: TopicRule.h:208
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::TopicRule::SetRuleDisabled
void SetRuleDisabled(bool value)
Definition: TopicRule.h:259
Aws::IoT::Model::TopicRule::ErrorActionHasBeenSet
bool ErrorActionHasBeenSet() const
Definition: TopicRule.h:316
Aws::IoT::Model::TopicRule::GetDescription
const Aws::String & GetDescription() const
Definition: TopicRule.h:136
Aws::IoT::Model::TopicRule::SetRuleName
void SetRuleName(const char *value)
Definition: TopicRule.h:66
Aws::IoT::Model::TopicRule::operator=
TopicRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSVector.h
Aws::IoT::Model::TopicRule::GetRuleDisabled
bool GetRuleDisabled() const
Definition: TopicRule.h:249
Aws::IoT::Model::TopicRule::WithCreatedAt
TopicRule & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: TopicRule.h:202
Aws::IoT::Model::TopicRule::SetAwsIotSqlVersion
void SetAwsIotSqlVersion(Aws::String &&value)
Definition: TopicRule.h:285
Aws::IoT::Model::TopicRule::WithAwsIotSqlVersion
TopicRule & WithAwsIotSqlVersion(const Aws::String &value)
Definition: TopicRule.h:295
Aws::IoT::Model::TopicRule::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: TopicRule.h:141
Aws::IoT::Model::TopicRule::SetErrorAction
void SetErrorAction(Action &&value)
Definition: TopicRule.h:326
Aws::IoT::Model::TopicRule::WithErrorAction
TopicRule & WithErrorAction(const Action &value)
Definition: TopicRule.h:331
Aws::IoT::Model::TopicRule::AddActions
TopicRule & AddActions(Action &&value)
Definition: TopicRule.h:243
Aws::IoT::Model::TopicRule::WithSql
TopicRule & WithSql(const Aws::String &value)
Definition: TopicRule.h:118
Aws::IoT::Model::TopicRule::SetAwsIotSqlVersion
void SetAwsIotSqlVersion(const char *value)
Definition: TopicRule.h:290
Aws::IoT::Model::TopicRule::WithRuleName
TopicRule & WithRuleName(Aws::String &&value)
Definition: TopicRule.h:76
Aws::IoT::Model::TopicRule::ActionsHasBeenSet
bool ActionsHasBeenSet() const
Definition: TopicRule.h:213
Action.h
Aws::IoT::Model::TopicRule::WithRuleName
TopicRule & WithRuleName(const Aws::String &value)
Definition: TopicRule.h:71
Aws::IoT::Model::TopicRule::WithAwsIotSqlVersion
TopicRule & WithAwsIotSqlVersion(const char *value)
Definition: TopicRule.h:305
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::TopicRule::WithSql
TopicRule & WithSql(const char *value)
Definition: TopicRule.h:130
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::TopicRule::WithDescription
TopicRule & WithDescription(const Aws::String &value)
Definition: TopicRule.h:161
Aws::IoT::Model::TopicRule::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: TopicRule.h:177
Aws::IoT::Model::TopicRule::SetActions
void SetActions(const Aws::Vector< Action > &value)
Definition: TopicRule.h:218
Aws::IoT::Model::TopicRule::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: TopicRule.h:182
Aws::IoT::Model::TopicRule
Definition: TopicRule.h:35
Aws::IoT::Model::TopicRule::SetActions
void SetActions(Aws::Vector< Action > &&value)
Definition: TopicRule.h:223
Aws::IoT::Model::TopicRule::GetSql
const Aws::String & GetSql() const
Definition: TopicRule.h:88
Aws::IoT::Model::TopicRule::WithDescription
TopicRule & WithDescription(const char *value)
Definition: TopicRule.h:171
Aws::IoT::Model::TopicRule::WithCreatedAt
TopicRule & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: TopicRule.h:197
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::Action
Definition: Action.h:53
Aws::IoT::Model::TopicRule::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: TopicRule.h:51
Aws::IoT::Model::TopicRule::SqlHasBeenSet
bool SqlHasBeenSet() const
Definition: TopicRule.h:94
Aws::IoT::Model::TopicRule::WithAwsIotSqlVersion
TopicRule & WithAwsIotSqlVersion(Aws::String &&value)
Definition: TopicRule.h:300
Aws::IoT::Model::TopicRule::SetAwsIotSqlVersion
void SetAwsIotSqlVersion(const Aws::String &value)
Definition: TopicRule.h:280
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::TopicRule::WithRuleName
TopicRule & WithRuleName(const char *value)
Definition: TopicRule.h:81
Aws::IoT::Model::TopicRule::AddActions
TopicRule & AddActions(const Action &value)
Definition: TopicRule.h:238
Aws::IoT::Model::TopicRule::GetErrorAction
const Action & GetErrorAction() const
Definition: TopicRule.h:311
Aws::IoT::Model::TopicRule::WithSql
TopicRule & WithSql(Aws::String &&value)
Definition: TopicRule.h:124
Aws::IoT::Model::TopicRule::SetSql
void SetSql(const Aws::String &value)
Definition: TopicRule.h:100
Aws::IoT::Model::TopicRule::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: TopicRule.h:187
Aws::IoT::Model::TopicRule::SetDescription
void SetDescription(const char *value)
Definition: TopicRule.h:156
Aws::IoT::Model::TopicRule::GetAwsIotSqlVersion
const Aws::String & GetAwsIotSqlVersion() const
Definition: TopicRule.h:270
Aws::IoT::Model::TopicRule::TopicRule
TopicRule()
Aws::IoT::Model::TopicRule::SetDescription
void SetDescription(const Aws::String &value)
Definition: TopicRule.h:146
Aws::IoT::Model::TopicRule::GetRuleName
const Aws::String & GetRuleName() const
Definition: TopicRule.h:46
Aws::IoT::Model::TopicRule::WithActions
TopicRule & WithActions(Aws::Vector< Action > &&value)
Definition: TopicRule.h:233
IoT_EXPORTS.h