7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/model/Action.h>
49 template<
typename RuleNameT = Aws::String>
50 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet =
true; m_ruleName = std::forward<RuleNameT>(value); }
51 template<
typename RuleNameT = Aws::String>
62 template<
typename SqlT = Aws::String>
63 void SetSql(SqlT&& value) { m_sqlHasBeenSet =
true; m_sql = std::forward<SqlT>(value); }
64 template<
typename SqlT = Aws::String>
74 template<
typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
76 template<
typename DescriptionT = Aws::String>
86 template<
typename CreatedAtT = Aws::Utils::DateTime>
87 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
88 template<
typename CreatedAtT = Aws::Utils::DateTime>
98 template<
typename ActionsT = Aws::Vector<Action>>
99 void SetActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions = std::forward<ActionsT>(value); }
100 template<
typename ActionsT = Aws::Vector<Action>>
102 template<
typename ActionsT = Action>
103 TopicRule&
AddActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions.emplace_back(std::forward<ActionsT>(value));
return *
this; }
112 inline void SetRuleDisabled(
bool value) { m_ruleDisabledHasBeenSet =
true; m_ruleDisabled = value; }
122 template<
typename AwsIotSqlVersionT = Aws::String>
123 void SetAwsIotSqlVersion(AwsIotSqlVersionT&& value) { m_awsIotSqlVersionHasBeenSet =
true; m_awsIotSqlVersion = std::forward<AwsIotSqlVersionT>(value); }
124 template<
typename AwsIotSqlVersionT = Aws::String>
134 template<
typename ErrorActionT = Action>
135 void SetErrorAction(ErrorActionT&& value) { m_errorActionHasBeenSet =
true; m_errorAction = std::forward<ErrorActionT>(value); }
136 template<
typename ErrorActionT = Action>
142 bool m_ruleNameHasBeenSet =
false;
145 bool m_sqlHasBeenSet =
false;
148 bool m_descriptionHasBeenSet =
false;
151 bool m_createdAtHasBeenSet =
false;
154 bool m_actionsHasBeenSet =
false;
156 bool m_ruleDisabled{
false};
157 bool m_ruleDisabledHasBeenSet =
false;
160 bool m_awsIotSqlVersionHasBeenSet =
false;
162 Action m_errorAction;
163 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