AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TopicRulePayload.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoT
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_IOT_API TopicRulePayload() = default;
40
41
43
48 inline const Aws::String& GetSql() const { return m_sql; }
49 inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; }
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>
53 TopicRulePayload& WithSql(SqlT&& value) { SetSql(std::forward<SqlT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 TopicRulePayload& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
72 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
73 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
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>>
77 TopicRulePayload& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
78 template<typename ActionsT = Action>
79 TopicRulePayload& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
81
83
86 inline bool GetRuleDisabled() const { return m_ruleDisabled; }
87 inline bool RuleDisabledHasBeenSet() const { return m_ruleDisabledHasBeenSet; }
88 inline void SetRuleDisabled(bool value) { m_ruleDisabledHasBeenSet = true; m_ruleDisabled = value; }
89 inline TopicRulePayload& WithRuleDisabled(bool value) { SetRuleDisabled(value); return *this;}
91
93
96 inline const Aws::String& GetAwsIotSqlVersion() const { return m_awsIotSqlVersion; }
97 inline bool AwsIotSqlVersionHasBeenSet() const { return m_awsIotSqlVersionHasBeenSet; }
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>
101 TopicRulePayload& WithAwsIotSqlVersion(AwsIotSqlVersionT&& value) { SetAwsIotSqlVersion(std::forward<AwsIotSqlVersionT>(value)); return *this;}
103
105
108 inline const Action& GetErrorAction() const { return m_errorAction; }
109 inline bool ErrorActionHasBeenSet() const { return m_errorActionHasBeenSet; }
110 template<typename ErrorActionT = Action>
111 void SetErrorAction(ErrorActionT&& value) { m_errorActionHasBeenSet = true; m_errorAction = std::forward<ErrorActionT>(value); }
112 template<typename ErrorActionT = Action>
113 TopicRulePayload& WithErrorAction(ErrorActionT&& value) { SetErrorAction(std::forward<ErrorActionT>(value)); return *this;}
115 private:
116
117 Aws::String m_sql;
118 bool m_sqlHasBeenSet = false;
119
120 Aws::String m_description;
121 bool m_descriptionHasBeenSet = false;
122
123 Aws::Vector<Action> m_actions;
124 bool m_actionsHasBeenSet = false;
125
126 bool m_ruleDisabled{false};
127 bool m_ruleDisabledHasBeenSet = false;
128
129 Aws::String m_awsIotSqlVersion;
130 bool m_awsIotSqlVersionHasBeenSet = false;
131
132 Action m_errorAction;
133 bool m_errorActionHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace IoT
138} // 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