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>
50 template<
typename SqlT = Aws::String>
51 void SetSql(SqlT&& value) { m_sqlHasBeenSet =
true; m_sql = std::forward<SqlT>(value); }
52 template<
typename SqlT = Aws::String>
62 template<
typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
64 template<
typename DescriptionT = Aws::String>
74 template<
typename ActionsT = Aws::Vector<Action>>
75 void SetActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions = std::forward<ActionsT>(value); }
76 template<
typename ActionsT = Aws::Vector<Action>>
78 template<
typename ActionsT = Action>
79 TopicRulePayload&
AddActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions.emplace_back(std::forward<ActionsT>(value));
return *
this; }
88 inline void SetRuleDisabled(
bool value) { m_ruleDisabledHasBeenSet =
true; m_ruleDisabled = value; }
98 template<
typename AwsIotSqlVersionT = Aws::String>
99 void SetAwsIotSqlVersion(AwsIotSqlVersionT&& value) { m_awsIotSqlVersionHasBeenSet =
true; m_awsIotSqlVersion = std::forward<AwsIotSqlVersionT>(value); }
100 template<
typename AwsIotSqlVersionT = Aws::String>
110 template<
typename ErrorActionT = Action>
111 void SetErrorAction(ErrorActionT&& value) { m_errorActionHasBeenSet =
true; m_errorAction = std::forward<ErrorActionT>(value); }
112 template<
typename ErrorActionT = Action>
118 bool m_sqlHasBeenSet =
false;
121 bool m_descriptionHasBeenSet =
false;
124 bool m_actionsHasBeenSet =
false;
126 bool m_ruleDisabled{
false};
127 bool m_ruleDisabledHasBeenSet =
false;
130 bool m_awsIotSqlVersionHasBeenSet =
false;
132 Action m_errorAction;
133 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