AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
TopicRulePayload.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/Action.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT {
22namespace Model {
23
30 public:
31 AWS_IOT_API TopicRulePayload() = default;
35
37
42 inline const Aws::String& GetSql() const { return m_sql; }
43 inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; }
44 template <typename SqlT = Aws::String>
45 void SetSql(SqlT&& value) {
46 m_sqlHasBeenSet = true;
47 m_sql = std::forward<SqlT>(value);
48 }
49 template <typename SqlT = Aws::String>
50 TopicRulePayload& WithSql(SqlT&& value) {
51 SetSql(std::forward<SqlT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
68 TopicRulePayload& WithDescription(DescriptionT&& value) {
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
79 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
80 template <typename ActionsT = Aws::Vector<Action>>
81 void SetActions(ActionsT&& value) {
82 m_actionsHasBeenSet = true;
83 m_actions = std::forward<ActionsT>(value);
84 }
85 template <typename ActionsT = Aws::Vector<Action>>
86 TopicRulePayload& WithActions(ActionsT&& value) {
87 SetActions(std::forward<ActionsT>(value));
88 return *this;
89 }
90 template <typename ActionsT = Action>
91 TopicRulePayload& AddActions(ActionsT&& value) {
92 m_actionsHasBeenSet = true;
93 m_actions.emplace_back(std::forward<ActionsT>(value));
94 return *this;
95 }
97
99
102 inline bool GetRuleDisabled() const { return m_ruleDisabled; }
103 inline bool RuleDisabledHasBeenSet() const { return m_ruleDisabledHasBeenSet; }
104 inline void SetRuleDisabled(bool value) {
105 m_ruleDisabledHasBeenSet = true;
106 m_ruleDisabled = value;
107 }
108 inline TopicRulePayload& WithRuleDisabled(bool value) {
109 SetRuleDisabled(value);
110 return *this;
111 }
113
115
118 inline const Aws::String& GetAwsIotSqlVersion() const { return m_awsIotSqlVersion; }
119 inline bool AwsIotSqlVersionHasBeenSet() const { return m_awsIotSqlVersionHasBeenSet; }
120 template <typename AwsIotSqlVersionT = Aws::String>
121 void SetAwsIotSqlVersion(AwsIotSqlVersionT&& value) {
122 m_awsIotSqlVersionHasBeenSet = true;
123 m_awsIotSqlVersion = std::forward<AwsIotSqlVersionT>(value);
124 }
125 template <typename AwsIotSqlVersionT = Aws::String>
126 TopicRulePayload& WithAwsIotSqlVersion(AwsIotSqlVersionT&& value) {
127 SetAwsIotSqlVersion(std::forward<AwsIotSqlVersionT>(value));
128 return *this;
129 }
131
133
136 inline const Action& GetErrorAction() const { return m_errorAction; }
137 inline bool ErrorActionHasBeenSet() const { return m_errorActionHasBeenSet; }
138 template <typename ErrorActionT = Action>
139 void SetErrorAction(ErrorActionT&& value) {
140 m_errorActionHasBeenSet = true;
141 m_errorAction = std::forward<ErrorActionT>(value);
142 }
143 template <typename ErrorActionT = Action>
144 TopicRulePayload& WithErrorAction(ErrorActionT&& value) {
145 SetErrorAction(std::forward<ErrorActionT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_sql;
151 bool m_sqlHasBeenSet = false;
152
153 Aws::String m_description;
154 bool m_descriptionHasBeenSet = false;
155
156 Aws::Vector<Action> m_actions;
157 bool m_actionsHasBeenSet = false;
158
159 bool m_ruleDisabled{false};
160 bool m_ruleDisabledHasBeenSet = false;
161
162 Aws::String m_awsIotSqlVersion;
163 bool m_awsIotSqlVersionHasBeenSet = false;
164
165 Action m_errorAction;
166 bool m_errorActionHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace IoT
171} // namespace Aws
void SetDescription(DescriptionT &&value)
const Aws::String & GetSql() const
TopicRulePayload & WithErrorAction(ErrorActionT &&value)
TopicRulePayload & WithRuleDisabled(bool value)
const Aws::Vector< Action > & GetActions() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
TopicRulePayload & AddActions(ActionsT &&value)
TopicRulePayload & WithSql(SqlT &&value)
const Action & GetErrorAction() const
TopicRulePayload & WithActions(ActionsT &&value)
TopicRulePayload & WithAwsIotSqlVersion(AwsIotSqlVersionT &&value)
const Aws::String & GetAwsIotSqlVersion() const
AWS_IOT_API TopicRulePayload(Aws::Utils::Json::JsonView jsonValue)
void SetActions(ActionsT &&value)
void SetErrorAction(ErrorActionT &&value)
TopicRulePayload & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
AWS_IOT_API TopicRulePayload()=default
AWS_IOT_API TopicRulePayload & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAwsIotSqlVersion(AwsIotSqlVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue