7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/Action.h>
43 template <
typename RuleNameT = Aws::String>
45 m_ruleNameHasBeenSet =
true;
46 m_ruleName = std::forward<RuleNameT>(value);
48 template <
typename RuleNameT = Aws::String>
62 template <
typename SqlT = Aws::String>
64 m_sqlHasBeenSet =
true;
65 m_sql = std::forward<SqlT>(value);
67 template <
typename SqlT = Aws::String>
69 SetSql(std::forward<SqlT>(value));
80 template <
typename DescriptionT = Aws::String>
82 m_descriptionHasBeenSet =
true;
83 m_description = std::forward<DescriptionT>(value);
85 template <
typename DescriptionT = Aws::String>
98 template <
typename CreatedAtT = Aws::Utils::DateTime>
100 m_createdAtHasBeenSet =
true;
101 m_createdAt = std::forward<CreatedAtT>(value);
103 template <
typename CreatedAtT = Aws::Utils::DateTime>
116 template <
typename ActionsT = Aws::Vector<Action>>
118 m_actionsHasBeenSet =
true;
119 m_actions = std::forward<ActionsT>(value);
121 template <
typename ActionsT = Aws::Vector<Action>>
126 template <
typename ActionsT = Action>
128 m_actionsHasBeenSet =
true;
129 m_actions.emplace_back(std::forward<ActionsT>(value));
141 m_ruleDisabledHasBeenSet =
true;
142 m_ruleDisabled = value;
156 template <
typename AwsIotSqlVersionT = Aws::String>
158 m_awsIotSqlVersionHasBeenSet =
true;
159 m_awsIotSqlVersion = std::forward<AwsIotSqlVersionT>(value);
161 template <
typename AwsIotSqlVersionT = Aws::String>
174 template <
typename ErrorActionT = Action>
176 m_errorActionHasBeenSet =
true;
177 m_errorAction = std::forward<ErrorActionT>(value);
179 template <
typename ErrorActionT = Action>
196 bool m_ruleDisabled{
false};
200 Action m_errorAction;
201 bool m_ruleNameHasBeenSet =
false;
202 bool m_sqlHasBeenSet =
false;
203 bool m_descriptionHasBeenSet =
false;
204 bool m_createdAtHasBeenSet =
false;
205 bool m_actionsHasBeenSet =
false;
206 bool m_ruleDisabledHasBeenSet =
false;
207 bool m_awsIotSqlVersionHasBeenSet =
false;
208 bool m_errorActionHasBeenSet =
false;
bool DescriptionHasBeenSet() const
bool CreatedAtHasBeenSet() const
bool ActionsHasBeenSet() const
bool GetRuleDisabled() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
TopicRule & WithAwsIotSqlVersion(AwsIotSqlVersionT &&value)
void SetSql(SqlT &&value)
TopicRule & WithCreatedAt(CreatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetRuleName(RuleNameT &&value)
AWS_IOT_API TopicRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
TopicRule & WithActions(ActionsT &&value)
void SetAwsIotSqlVersion(AwsIotSqlVersionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
TopicRule & AddActions(ActionsT &&value)
const Aws::String & GetDescription() const
TopicRule & WithErrorAction(ErrorActionT &&value)
const Aws::Vector< Action > & GetActions() const
TopicRule & WithDescription(DescriptionT &&value)
bool RuleDisabledHasBeenSet() const
const Action & GetErrorAction() const
void SetErrorAction(ErrorActionT &&value)
AWS_IOT_API TopicRule()=default
bool AwsIotSqlVersionHasBeenSet() const
TopicRule & WithSql(SqlT &&value)
TopicRule & WithRuleDisabled(bool value)
void SetRuleDisabled(bool value)
const Aws::String & GetSql() const
void SetActions(ActionsT &&value)
bool SqlHasBeenSet() const
const Aws::String & GetRuleName() const
bool ErrorActionHasBeenSet() const
const Aws::String & GetAwsIotSqlVersion() const
AWS_IOT_API TopicRule(Aws::Utils::Json::JsonView jsonValue)
bool RuleNameHasBeenSet() const
TopicRule & WithRuleName(RuleNameT &&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