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>
44 template <
typename SqlT = Aws::String>
46 m_sqlHasBeenSet =
true;
47 m_sql = std::forward<SqlT>(value);
49 template <
typename SqlT = Aws::String>
51 SetSql(std::forward<SqlT>(value));
62 template <
typename DescriptionT = Aws::String>
64 m_descriptionHasBeenSet =
true;
65 m_description = std::forward<DescriptionT>(value);
67 template <
typename DescriptionT = Aws::String>
80 template <
typename ActionsT = Aws::Vector<Action>>
82 m_actionsHasBeenSet =
true;
83 m_actions = std::forward<ActionsT>(value);
85 template <
typename ActionsT = Aws::Vector<Action>>
90 template <
typename ActionsT = Action>
92 m_actionsHasBeenSet =
true;
93 m_actions.emplace_back(std::forward<ActionsT>(value));
105 m_ruleDisabledHasBeenSet =
true;
106 m_ruleDisabled = value;
120 template <
typename AwsIotSqlVersionT = Aws::String>
122 m_awsIotSqlVersionHasBeenSet =
true;
123 m_awsIotSqlVersion = std::forward<AwsIotSqlVersionT>(value);
125 template <
typename AwsIotSqlVersionT = Aws::String>
138 template <
typename ErrorActionT = Action>
140 m_errorActionHasBeenSet =
true;
141 m_errorAction = std::forward<ErrorActionT>(value);
143 template <
typename ErrorActionT = Action>
151 bool m_sqlHasBeenSet =
false;
154 bool m_descriptionHasBeenSet =
false;
157 bool m_actionsHasBeenSet =
false;
159 bool m_ruleDisabled{
false};
160 bool m_ruleDisabledHasBeenSet =
false;
163 bool m_awsIotSqlVersionHasBeenSet =
false;
165 Action m_errorAction;
166 bool m_errorActionHasBeenSet =
false;
void SetDescription(DescriptionT &&value)
bool GetRuleDisabled() const
const Aws::String & GetSql() const
TopicRulePayload & WithErrorAction(ErrorActionT &&value)
TopicRulePayload & WithRuleDisabled(bool value)
bool RuleDisabledHasBeenSet() const
void SetSql(SqlT &&value)
bool AwsIotSqlVersionHasBeenSet() const
const Aws::Vector< Action > & GetActions() const
bool ErrorActionHasBeenSet() const
bool SqlHasBeenSet() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
TopicRulePayload & AddActions(ActionsT &&value)
void SetRuleDisabled(bool 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)
bool ActionsHasBeenSet() const
const Aws::String & GetDescription() const
AWS_IOT_API TopicRulePayload()=default
AWS_IOT_API TopicRulePayload & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DescriptionHasBeenSet() const
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