AWS SDK for C++  1.9.123
AWS SDK for C++
TopicRulePayload.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <aws/iot/model/Action.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoT
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
47  inline const Aws::String& GetSql() const{ return m_sql; }
48 
54  inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; }
55 
61  inline void SetSql(const Aws::String& value) { m_sqlHasBeenSet = true; m_sql = value; }
62 
68  inline void SetSql(Aws::String&& value) { m_sqlHasBeenSet = true; m_sql = std::move(value); }
69 
75  inline void SetSql(const char* value) { m_sqlHasBeenSet = true; m_sql.assign(value); }
76 
82  inline TopicRulePayload& WithSql(const Aws::String& value) { SetSql(value); return *this;}
83 
89  inline TopicRulePayload& WithSql(Aws::String&& value) { SetSql(std::move(value)); return *this;}
90 
96  inline TopicRulePayload& WithSql(const char* value) { SetSql(value); return *this;}
97 
98 
102  inline const Aws::String& GetDescription() const{ return m_description; }
103 
107  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
108 
112  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
113 
117  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
118 
122  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
123 
127  inline TopicRulePayload& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
128 
132  inline TopicRulePayload& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
133 
137  inline TopicRulePayload& WithDescription(const char* value) { SetDescription(value); return *this;}
138 
139 
143  inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
144 
148  inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
149 
153  inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
154 
158  inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
159 
163  inline TopicRulePayload& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
164 
168  inline TopicRulePayload& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
169 
173  inline TopicRulePayload& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
174 
178  inline TopicRulePayload& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
179 
180 
184  inline bool GetRuleDisabled() const{ return m_ruleDisabled; }
185 
189  inline bool RuleDisabledHasBeenSet() const { return m_ruleDisabledHasBeenSet; }
190 
194  inline void SetRuleDisabled(bool value) { m_ruleDisabledHasBeenSet = true; m_ruleDisabled = value; }
195 
199  inline TopicRulePayload& WithRuleDisabled(bool value) { SetRuleDisabled(value); return *this;}
200 
201 
205  inline const Aws::String& GetAwsIotSqlVersion() const{ return m_awsIotSqlVersion; }
206 
210  inline bool AwsIotSqlVersionHasBeenSet() const { return m_awsIotSqlVersionHasBeenSet; }
211 
215  inline void SetAwsIotSqlVersion(const Aws::String& value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion = value; }
216 
220  inline void SetAwsIotSqlVersion(Aws::String&& value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion = std::move(value); }
221 
225  inline void SetAwsIotSqlVersion(const char* value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion.assign(value); }
226 
230  inline TopicRulePayload& WithAwsIotSqlVersion(const Aws::String& value) { SetAwsIotSqlVersion(value); return *this;}
231 
235  inline TopicRulePayload& WithAwsIotSqlVersion(Aws::String&& value) { SetAwsIotSqlVersion(std::move(value)); return *this;}
236 
240  inline TopicRulePayload& WithAwsIotSqlVersion(const char* value) { SetAwsIotSqlVersion(value); return *this;}
241 
242 
246  inline const Action& GetErrorAction() const{ return m_errorAction; }
247 
251  inline bool ErrorActionHasBeenSet() const { return m_errorActionHasBeenSet; }
252 
256  inline void SetErrorAction(const Action& value) { m_errorActionHasBeenSet = true; m_errorAction = value; }
257 
261  inline void SetErrorAction(Action&& value) { m_errorActionHasBeenSet = true; m_errorAction = std::move(value); }
262 
266  inline TopicRulePayload& WithErrorAction(const Action& value) { SetErrorAction(value); return *this;}
267 
271  inline TopicRulePayload& WithErrorAction(Action&& value) { SetErrorAction(std::move(value)); return *this;}
272 
273  private:
274 
275  Aws::String m_sql;
276  bool m_sqlHasBeenSet;
277 
278  Aws::String m_description;
279  bool m_descriptionHasBeenSet;
280 
281  Aws::Vector<Action> m_actions;
282  bool m_actionsHasBeenSet;
283 
284  bool m_ruleDisabled;
285  bool m_ruleDisabledHasBeenSet;
286 
287  Aws::String m_awsIotSqlVersion;
288  bool m_awsIotSqlVersionHasBeenSet;
289 
290  Action m_errorAction;
291  bool m_errorActionHasBeenSet;
292  };
293 
294 } // namespace Model
295 } // namespace IoT
296 } // namespace Aws
Aws::IoT::Model::TopicRulePayload::WithDescription
TopicRulePayload & WithDescription(const Aws::String &value)
Definition: TopicRulePayload.h:127
Aws::IoT::Model::TopicRulePayload::SetActions
void SetActions(const Aws::Vector< Action > &value)
Definition: TopicRulePayload.h:153
Aws::IoT::Model::TopicRulePayload::SetSql
void SetSql(Aws::String &&value)
Definition: TopicRulePayload.h:68
Aws::IoT::Model::TopicRulePayload::WithDescription
TopicRulePayload & WithDescription(Aws::String &&value)
Definition: TopicRulePayload.h:132
Aws::IoT::Model::TopicRulePayload::GetActions
const Aws::Vector< Action > & GetActions() const
Definition: TopicRulePayload.h:143
Aws::IoT::Model::TopicRulePayload::SetSql
void SetSql(const Aws::String &value)
Definition: TopicRulePayload.h:61
Aws::IoT::Model::TopicRulePayload::GetRuleDisabled
bool GetRuleDisabled() const
Definition: TopicRulePayload.h:184
Aws::IoT::Model::TopicRulePayload::GetSql
const Aws::String & GetSql() const
Definition: TopicRulePayload.h:47
Aws::IoT::Model::TopicRulePayload::RuleDisabledHasBeenSet
bool RuleDisabledHasBeenSet() const
Definition: TopicRulePayload.h:189
Aws::IoT::Model::TopicRulePayload::SetRuleDisabled
void SetRuleDisabled(bool value)
Definition: TopicRulePayload.h:194
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::TopicRulePayload::AddActions
TopicRulePayload & AddActions(const Action &value)
Definition: TopicRulePayload.h:173
Aws::IoT::Model::TopicRulePayload::WithAwsIotSqlVersion
TopicRulePayload & WithAwsIotSqlVersion(const Aws::String &value)
Definition: TopicRulePayload.h:230
Aws::IoT::Model::TopicRulePayload::GetAwsIotSqlVersion
const Aws::String & GetAwsIotSqlVersion() const
Definition: TopicRulePayload.h:205
AWSVector.h
Aws::IoT::Model::TopicRulePayload::TopicRulePayload
TopicRulePayload(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::TopicRulePayload::SetAwsIotSqlVersion
void SetAwsIotSqlVersion(Aws::String &&value)
Definition: TopicRulePayload.h:220
Aws::IoT::Model::TopicRulePayload::WithAwsIotSqlVersion
TopicRulePayload & WithAwsIotSqlVersion(const char *value)
Definition: TopicRulePayload.h:240
Aws::IoT::Model::TopicRulePayload::GetDescription
const Aws::String & GetDescription() const
Definition: TopicRulePayload.h:102
Aws::IoT::Model::TopicRulePayload::SetActions
void SetActions(Aws::Vector< Action > &&value)
Definition: TopicRulePayload.h:158
Aws::IoT::Model::TopicRulePayload::WithActions
TopicRulePayload & WithActions(Aws::Vector< Action > &&value)
Definition: TopicRulePayload.h:168
Aws::IoT::Model::TopicRulePayload::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::TopicRulePayload::SqlHasBeenSet
bool SqlHasBeenSet() const
Definition: TopicRulePayload.h:54
Aws::IoT::Model::TopicRulePayload::WithSql
TopicRulePayload & WithSql(Aws::String &&value)
Definition: TopicRulePayload.h:89
Aws::IoT::Model::TopicRulePayload::TopicRulePayload
TopicRulePayload()
Aws::IoT::Model::TopicRulePayload::ActionsHasBeenSet
bool ActionsHasBeenSet() const
Definition: TopicRulePayload.h:148
Aws::IoT::Model::TopicRulePayload::WithErrorAction
TopicRulePayload & WithErrorAction(Action &&value)
Definition: TopicRulePayload.h:271
Aws::IoT::Model::TopicRulePayload::WithAwsIotSqlVersion
TopicRulePayload & WithAwsIotSqlVersion(Aws::String &&value)
Definition: TopicRulePayload.h:235
Action.h
Aws::IoT::Model::TopicRulePayload::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: TopicRulePayload.h:107
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::TopicRulePayload::SetAwsIotSqlVersion
void SetAwsIotSqlVersion(const char *value)
Definition: TopicRulePayload.h:225
Aws::IoT::Model::TopicRulePayload::SetAwsIotSqlVersion
void SetAwsIotSqlVersion(const Aws::String &value)
Definition: TopicRulePayload.h:215
Aws::IoT::Model::TopicRulePayload::WithActions
TopicRulePayload & WithActions(const Aws::Vector< Action > &value)
Definition: TopicRulePayload.h:163
Aws::IoT::Model::TopicRulePayload::SetErrorAction
void SetErrorAction(const Action &value)
Definition: TopicRulePayload.h:256
Aws::IoT::Model::TopicRulePayload::WithRuleDisabled
TopicRulePayload & WithRuleDisabled(bool value)
Definition: TopicRulePayload.h:199
Aws::IoT::Model::TopicRulePayload
Definition: TopicRulePayload.h:34
Aws::IoT::Model::TopicRulePayload::SetDescription
void SetDescription(const Aws::String &value)
Definition: TopicRulePayload.h:112
Aws::IoT::Model::TopicRulePayload::WithSql
TopicRulePayload & WithSql(const char *value)
Definition: TopicRulePayload.h:96
Aws::IoT::Model::TopicRulePayload::WithSql
TopicRulePayload & WithSql(const Aws::String &value)
Definition: TopicRulePayload.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::Action
Definition: Action.h:53
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::TopicRulePayload::GetErrorAction
const Action & GetErrorAction() const
Definition: TopicRulePayload.h:246
Aws::IoT::Model::TopicRulePayload::SetDescription
void SetDescription(const char *value)
Definition: TopicRulePayload.h:122
Aws::IoT::Model::TopicRulePayload::SetErrorAction
void SetErrorAction(Action &&value)
Definition: TopicRulePayload.h:261
Aws::IoT::Model::TopicRulePayload::WithErrorAction
TopicRulePayload & WithErrorAction(const Action &value)
Definition: TopicRulePayload.h:266
Aws::IoT::Model::TopicRulePayload::SetDescription
void SetDescription(Aws::String &&value)
Definition: TopicRulePayload.h:117
Aws::IoT::Model::TopicRulePayload::ErrorActionHasBeenSet
bool ErrorActionHasBeenSet() const
Definition: TopicRulePayload.h:251
Aws::IoT::Model::TopicRulePayload::AddActions
TopicRulePayload & AddActions(Action &&value)
Definition: TopicRulePayload.h:178
Aws::IoT::Model::TopicRulePayload::operator=
TopicRulePayload & operator=(Aws::Utils::Json::JsonView jsonValue)
IoT_EXPORTS.h
Aws::IoT::Model::TopicRulePayload::WithDescription
TopicRulePayload & WithDescription(const char *value)
Definition: TopicRulePayload.h:137
Aws::IoT::Model::TopicRulePayload::AwsIotSqlVersionHasBeenSet
bool AwsIotSqlVersionHasBeenSet() const
Definition: TopicRulePayload.h:210
Aws::IoT::Model::TopicRulePayload::SetSql
void SetSql(const char *value)
Definition: TopicRulePayload.h:75