AWS SDK for C++  0.12.9
AWS SDK for C++
TopicRulePayload.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iot/IoT_EXPORTS.h>
19 #include <aws/iot/model/Action.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace IoT
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  TopicRulePayload& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
51  inline const Aws::String& GetSql() const{ return m_sql; }
52 
58  inline void SetSql(const Aws::String& value) { m_sqlHasBeenSet = true; m_sql = value; }
59 
65  inline void SetSql(Aws::String&& value) { m_sqlHasBeenSet = true; m_sql = value; }
66 
72  inline void SetSql(const char* value) { m_sqlHasBeenSet = true; m_sql.assign(value); }
73 
79  inline TopicRulePayload& WithSql(const Aws::String& value) { SetSql(value); return *this;}
80 
86  inline TopicRulePayload& WithSql(Aws::String&& value) { SetSql(value); return *this;}
87 
93  inline TopicRulePayload& WithSql(const char* value) { SetSql(value); return *this;}
94 
98  inline const Aws::String& GetDescription() const{ return m_description; }
99 
103  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
104 
108  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
109 
113  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
114 
118  inline TopicRulePayload& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
119 
123  inline TopicRulePayload& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
124 
128  inline TopicRulePayload& WithDescription(const char* value) { SetDescription(value); return *this;}
129 
133  inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
134 
138  inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
139 
143  inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = value; }
144 
148  inline TopicRulePayload& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
149 
153  inline TopicRulePayload& WithActions(Aws::Vector<Action>&& value) { SetActions(value); return *this;}
154 
158  inline TopicRulePayload& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
159 
163  inline TopicRulePayload& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
164 
168  inline bool GetRuleDisabled() const{ return m_ruleDisabled; }
169 
173  inline void SetRuleDisabled(bool value) { m_ruleDisabledHasBeenSet = true; m_ruleDisabled = value; }
174 
178  inline TopicRulePayload& WithRuleDisabled(bool value) { SetRuleDisabled(value); return *this;}
179 
183  inline const Aws::String& GetAwsIotSqlVersion() const{ return m_awsIotSqlVersion; }
184 
188  inline void SetAwsIotSqlVersion(const Aws::String& value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion = value; }
189 
193  inline void SetAwsIotSqlVersion(Aws::String&& value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion = value; }
194 
198  inline void SetAwsIotSqlVersion(const char* value) { m_awsIotSqlVersionHasBeenSet = true; m_awsIotSqlVersion.assign(value); }
199 
203  inline TopicRulePayload& WithAwsIotSqlVersion(const Aws::String& value) { SetAwsIotSqlVersion(value); return *this;}
204 
208  inline TopicRulePayload& WithAwsIotSqlVersion(Aws::String&& value) { SetAwsIotSqlVersion(value); return *this;}
209 
213  inline TopicRulePayload& WithAwsIotSqlVersion(const char* value) { SetAwsIotSqlVersion(value); return *this;}
214 
215  private:
216  Aws::String m_sql;
217  bool m_sqlHasBeenSet;
218  Aws::String m_description;
219  bool m_descriptionHasBeenSet;
220  Aws::Vector<Action> m_actions;
221  bool m_actionsHasBeenSet;
222  bool m_ruleDisabled;
223  bool m_ruleDisabledHasBeenSet;
224  Aws::String m_awsIotSqlVersion;
225  bool m_awsIotSqlVersionHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace IoT
230 } // namespace Aws
TopicRulePayload & WithAwsIotSqlVersion(const char *value)
void SetAwsIotSqlVersion(const char *value)
TopicRulePayload & WithActions(const Aws::Vector< Action > &value)
void SetAwsIotSqlVersion(const Aws::String &value)
TopicRulePayload & WithSql(const char *value)
void SetDescription(const Aws::String &value)
TopicRulePayload & WithSql(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetAwsIotSqlVersion() const
const Aws::String & GetSql() const
TopicRulePayload & WithRuleDisabled(bool value)
void SetDescription(Aws::String &&value)
TopicRulePayload & WithDescription(const char *value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:34
TopicRulePayload & WithDescription(Aws::String &&value)
TopicRulePayload & WithDescription(const Aws::String &value)
void SetActions(const Aws::Vector< Action > &value)
TopicRulePayload & AddActions(Action &&value)
void SetSql(Aws::String &&value)
void SetSql(const char *value)
void SetDescription(const char *value)
void SetSql(const Aws::String &value)
const Aws::String & GetDescription() const
TopicRulePayload & AddActions(const Action &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetAwsIotSqlVersion(Aws::String &&value)
const Aws::Vector< Action > & GetActions() const
void SetActions(Aws::Vector< Action > &&value)
TopicRulePayload & WithAwsIotSqlVersion(const Aws::String &value)
TopicRulePayload & WithSql(Aws::String &&value)
TopicRulePayload & WithAwsIotSqlVersion(Aws::String &&value)
JSON (JavaScript Object Notation).
TopicRulePayload & WithActions(Aws::Vector< Action > &&value)