AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TopicRulePayload.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot/model/Action.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoT
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_IOT_API TopicRulePayload();
40
41
43
48 inline const Aws::String& GetSql() const{ return m_sql; }
49 inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; }
50 inline void SetSql(const Aws::String& value) { m_sqlHasBeenSet = true; m_sql = value; }
51 inline void SetSql(Aws::String&& value) { m_sqlHasBeenSet = true; m_sql = std::move(value); }
52 inline void SetSql(const char* value) { m_sqlHasBeenSet = true; m_sql.assign(value); }
53 inline TopicRulePayload& WithSql(const Aws::String& value) { SetSql(value); return *this;}
54 inline TopicRulePayload& WithSql(Aws::String&& value) { SetSql(std::move(value)); return *this;}
55 inline TopicRulePayload& WithSql(const char* value) { SetSql(value); return *this;}
57
59
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline TopicRulePayload& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline TopicRulePayload& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline TopicRulePayload& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
76 inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
77 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
78 inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
79 inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
80 inline TopicRulePayload& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
81 inline TopicRulePayload& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
82 inline TopicRulePayload& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
83 inline TopicRulePayload& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
85
87
90 inline bool GetRuleDisabled() const{ return m_ruleDisabled; }
91 inline bool RuleDisabledHasBeenSet() const { return m_ruleDisabledHasBeenSet; }
92 inline void SetRuleDisabled(bool value) { m_ruleDisabledHasBeenSet = true; m_ruleDisabled = value; }
93 inline TopicRulePayload& WithRuleDisabled(bool value) { SetRuleDisabled(value); return *this;}
95
97
100 inline const Aws::String& GetAwsIotSqlVersion() const{ return m_awsIotSqlVersion; }
101 inline bool AwsIotSqlVersionHasBeenSet() const { return m_awsIotSqlVersionHasBeenSet; }
102 inline void SetAwsIotSqlVersion(const Aws::String& value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion = value; }
103 inline void SetAwsIotSqlVersion(Aws::String&& value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion = std::move(value); }
104 inline void SetAwsIotSqlVersion(const char* value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion.assign(value); }
105 inline TopicRulePayload& WithAwsIotSqlVersion(const Aws::String& value) { SetAwsIotSqlVersion(value); return *this;}
106 inline TopicRulePayload& WithAwsIotSqlVersion(Aws::String&& value) { SetAwsIotSqlVersion(std::move(value)); return *this;}
107 inline TopicRulePayload& WithAwsIotSqlVersion(const char* value) { SetAwsIotSqlVersion(value); return *this;}
109
111
114 inline const Action& GetErrorAction() const{ return m_errorAction; }
115 inline bool ErrorActionHasBeenSet() const { return m_errorActionHasBeenSet; }
116 inline void SetErrorAction(const Action& value) { m_errorActionHasBeenSet = true; m_errorAction = value; }
117 inline void SetErrorAction(Action&& value) { m_errorActionHasBeenSet = true; m_errorAction = std::move(value); }
118 inline TopicRulePayload& WithErrorAction(const Action& value) { SetErrorAction(value); return *this;}
119 inline TopicRulePayload& WithErrorAction(Action&& value) { SetErrorAction(std::move(value)); return *this;}
121 private:
122
123 Aws::String m_sql;
124 bool m_sqlHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128
129 Aws::Vector<Action> m_actions;
130 bool m_actionsHasBeenSet = false;
131
132 bool m_ruleDisabled;
133 bool m_ruleDisabledHasBeenSet = false;
134
135 Aws::String m_awsIotSqlVersion;
136 bool m_awsIotSqlVersionHasBeenSet = false;
137
138 Action m_errorAction;
139 bool m_errorActionHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace IoT
144} // namespace Aws
void SetAwsIotSqlVersion(const Aws::String &value)
void SetDescription(const char *value)
void SetAwsIotSqlVersion(Aws::String &&value)
const Aws::String & GetSql() const
TopicRulePayload & WithAwsIotSqlVersion(const char *value)
void SetActions(Aws::Vector< Action > &&value)
TopicRulePayload & WithErrorAction(Action &&value)
TopicRulePayload & WithRuleDisabled(bool value)
void SetSql(const Aws::String &value)
TopicRulePayload & WithAwsIotSqlVersion(Aws::String &&value)
TopicRulePayload & WithAwsIotSqlVersion(const Aws::String &value)
void SetActions(const Aws::Vector< Action > &value)
void SetDescription(const Aws::String &value)
void SetErrorAction(const Action &value)
const Aws::Vector< Action > & GetActions() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
TopicRulePayload & AddActions(const Action &value)
void SetSql(Aws::String &&value)
void SetAwsIotSqlVersion(const char *value)
void SetDescription(Aws::String &&value)
TopicRulePayload & WithDescription(Aws::String &&value)
TopicRulePayload & WithErrorAction(const Action &value)
TopicRulePayload & AddActions(Action &&value)
TopicRulePayload & WithSql(Aws::String &&value)
TopicRulePayload & WithSql(const Aws::String &value)
const Action & GetErrorAction() const
TopicRulePayload & WithDescription(const char *value)
TopicRulePayload & WithDescription(const Aws::String &value)
const Aws::String & GetAwsIotSqlVersion() const
AWS_IOT_API TopicRulePayload(Aws::Utils::Json::JsonView jsonValue)
TopicRulePayload & WithActions(const Aws::Vector< Action > &value)
TopicRulePayload & WithActions(Aws::Vector< Action > &&value)
TopicRulePayload & WithSql(const char *value)
const Aws::String & GetDescription() const
AWS_IOT_API TopicRulePayload & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue