AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TopicRule.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/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/model/Action.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IOT_API TopicRule();
38 AWS_IOT_API TopicRule(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
48 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
49 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
50 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
51 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
52 inline TopicRule& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
53 inline TopicRule& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
54 inline TopicRule& WithRuleName(const char* value) { SetRuleName(value); return *this;}
56
58
62 inline const Aws::String& GetSql() const{ return m_sql; }
63 inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; }
64 inline void SetSql(const Aws::String& value) { m_sqlHasBeenSet = true; m_sql = value; }
65 inline void SetSql(Aws::String&& value) { m_sqlHasBeenSet = true; m_sql = std::move(value); }
66 inline void SetSql(const char* value) { m_sqlHasBeenSet = true; m_sql.assign(value); }
67 inline TopicRule& WithSql(const Aws::String& value) { SetSql(value); return *this;}
68 inline TopicRule& WithSql(Aws::String&& value) { SetSql(std::move(value)); return *this;}
69 inline TopicRule& WithSql(const char* value) { SetSql(value); return *this;}
71
73
76 inline const Aws::String& GetDescription() const{ return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
79 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
80 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
81 inline TopicRule& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
82 inline TopicRule& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
83 inline TopicRule& WithDescription(const char* value) { SetDescription(value); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
91 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
92 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
93 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
94 inline TopicRule& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
95 inline TopicRule& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
97
99
102 inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
103 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
104 inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
105 inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
106 inline TopicRule& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
107 inline TopicRule& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
108 inline TopicRule& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
109 inline TopicRule& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
111
113
116 inline bool GetRuleDisabled() const{ return m_ruleDisabled; }
117 inline bool RuleDisabledHasBeenSet() const { return m_ruleDisabledHasBeenSet; }
118 inline void SetRuleDisabled(bool value) { m_ruleDisabledHasBeenSet = true; m_ruleDisabled = value; }
119 inline TopicRule& WithRuleDisabled(bool value) { SetRuleDisabled(value); return *this;}
121
123
126 inline const Aws::String& GetAwsIotSqlVersion() const{ return m_awsIotSqlVersion; }
127 inline bool AwsIotSqlVersionHasBeenSet() const { return m_awsIotSqlVersionHasBeenSet; }
128 inline void SetAwsIotSqlVersion(const Aws::String& value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion = value; }
129 inline void SetAwsIotSqlVersion(Aws::String&& value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion = std::move(value); }
130 inline void SetAwsIotSqlVersion(const char* value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion.assign(value); }
131 inline TopicRule& WithAwsIotSqlVersion(const Aws::String& value) { SetAwsIotSqlVersion(value); return *this;}
132 inline TopicRule& WithAwsIotSqlVersion(Aws::String&& value) { SetAwsIotSqlVersion(std::move(value)); return *this;}
133 inline TopicRule& WithAwsIotSqlVersion(const char* value) { SetAwsIotSqlVersion(value); return *this;}
135
137
140 inline const Action& GetErrorAction() const{ return m_errorAction; }
141 inline bool ErrorActionHasBeenSet() const { return m_errorActionHasBeenSet; }
142 inline void SetErrorAction(const Action& value) { m_errorActionHasBeenSet = true; m_errorAction = value; }
143 inline void SetErrorAction(Action&& value) { m_errorActionHasBeenSet = true; m_errorAction = std::move(value); }
144 inline TopicRule& WithErrorAction(const Action& value) { SetErrorAction(value); return *this;}
145 inline TopicRule& WithErrorAction(Action&& value) { SetErrorAction(std::move(value)); return *this;}
147 private:
148
149 Aws::String m_ruleName;
150 bool m_ruleNameHasBeenSet = false;
151
152 Aws::String m_sql;
153 bool m_sqlHasBeenSet = false;
154
155 Aws::String m_description;
156 bool m_descriptionHasBeenSet = false;
157
158 Aws::Utils::DateTime m_createdAt;
159 bool m_createdAtHasBeenSet = false;
160
161 Aws::Vector<Action> m_actions;
162 bool m_actionsHasBeenSet = false;
163
164 bool m_ruleDisabled;
165 bool m_ruleDisabledHasBeenSet = false;
166
167 Aws::String m_awsIotSqlVersion;
168 bool m_awsIotSqlVersionHasBeenSet = false;
169
170 Action m_errorAction;
171 bool m_errorActionHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace IoT
176} // namespace Aws
bool DescriptionHasBeenSet() const
Definition TopicRule.h:77
bool CreatedAtHasBeenSet() const
Definition TopicRule.h:91
TopicRule & WithRuleName(const char *value)
Definition TopicRule.h:54
TopicRule & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition TopicRule.h:95
bool ActionsHasBeenSet() const
Definition TopicRule.h:103
void SetRuleName(const Aws::String &value)
Definition TopicRule.h:49
TopicRule & WithDescription(const char *value)
Definition TopicRule.h:83
void SetAwsIotSqlVersion(const char *value)
Definition TopicRule.h:130
TopicRule & WithDescription(Aws::String &&value)
Definition TopicRule.h:82
void SetDescription(const char *value)
Definition TopicRule.h:80
void SetErrorAction(Action &&value)
Definition TopicRule.h:143
bool GetRuleDisabled() const
Definition TopicRule.h:116
void SetRuleName(Aws::String &&value)
Definition TopicRule.h:50
void SetDescription(Aws::String &&value)
Definition TopicRule.h:79
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetActions(const Aws::Vector< Action > &value)
Definition TopicRule.h:104
void SetDescription(const Aws::String &value)
Definition TopicRule.h:78
TopicRule & AddActions(const Action &value)
Definition TopicRule.h:108
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition TopicRule.h:93
AWS_IOT_API TopicRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorAction(const Action &value)
Definition TopicRule.h:142
TopicRule & WithErrorAction(const Action &value)
Definition TopicRule.h:144
TopicRule & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition TopicRule.h:94
TopicRule & WithSql(Aws::String &&value)
Definition TopicRule.h:68
void SetAwsIotSqlVersion(Aws::String &&value)
Definition TopicRule.h:129
const Aws::Utils::DateTime & GetCreatedAt() const
Definition TopicRule.h:90
TopicRule & AddActions(Action &&value)
Definition TopicRule.h:109
TopicRule & WithActions(Aws::Vector< Action > &&value)
Definition TopicRule.h:107
const Aws::String & GetDescription() const
Definition TopicRule.h:76
const Aws::Vector< Action > & GetActions() const
Definition TopicRule.h:102
TopicRule & WithRuleName(const Aws::String &value)
Definition TopicRule.h:52
bool RuleDisabledHasBeenSet() const
Definition TopicRule.h:117
const Action & GetErrorAction() const
Definition TopicRule.h:140
bool AwsIotSqlVersionHasBeenSet() const
Definition TopicRule.h:127
TopicRule & WithRuleName(Aws::String &&value)
Definition TopicRule.h:53
void SetAwsIotSqlVersion(const Aws::String &value)
Definition TopicRule.h:128
TopicRule & WithActions(const Aws::Vector< Action > &value)
Definition TopicRule.h:106
TopicRule & WithRuleDisabled(bool value)
Definition TopicRule.h:119
void SetSql(const Aws::String &value)
Definition TopicRule.h:64
TopicRule & WithAwsIotSqlVersion(const Aws::String &value)
Definition TopicRule.h:131
void SetRuleDisabled(bool value)
Definition TopicRule.h:118
const Aws::String & GetSql() const
Definition TopicRule.h:62
void SetSql(Aws::String &&value)
Definition TopicRule.h:65
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition TopicRule.h:92
bool SqlHasBeenSet() const
Definition TopicRule.h:63
const Aws::String & GetRuleName() const
Definition TopicRule.h:47
TopicRule & WithSql(const Aws::String &value)
Definition TopicRule.h:67
bool ErrorActionHasBeenSet() const
Definition TopicRule.h:141
const Aws::String & GetAwsIotSqlVersion() const
Definition TopicRule.h:126
AWS_IOT_API TopicRule(Aws::Utils::Json::JsonView jsonValue)
TopicRule & WithErrorAction(Action &&value)
Definition TopicRule.h:145
bool RuleNameHasBeenSet() const
Definition TopicRule.h:48
void SetSql(const char *value)
Definition TopicRule.h:66
TopicRule & WithAwsIotSqlVersion(Aws::String &&value)
Definition TopicRule.h:132
TopicRule & WithDescription(const Aws::String &value)
Definition TopicRule.h:81
void SetActions(Aws::Vector< Action > &&value)
Definition TopicRule.h:105
TopicRule & WithAwsIotSqlVersion(const char *value)
Definition TopicRule.h:133
void SetRuleName(const char *value)
Definition TopicRule.h:51
TopicRule & WithSql(const char *value)
Definition TopicRule.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue