AWS SDK for C++  0.14.3
AWS SDK for C++
TopicRuleListItem.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 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace IoT
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  TopicRuleListItem& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
49 
53  inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
54 
58  inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
59 
63  inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
64 
68  inline TopicRuleListItem& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
69 
73  inline TopicRuleListItem& WithRuleArn(Aws::String&& value) { SetRuleArn(value); return *this;}
74 
78  inline TopicRuleListItem& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
79 
83  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
84 
88  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
89 
93  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
94 
98  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
99 
103  inline TopicRuleListItem& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
104 
108  inline TopicRuleListItem& WithRuleName(Aws::String&& value) { SetRuleName(value); return *this;}
109 
113  inline TopicRuleListItem& WithRuleName(const char* value) { SetRuleName(value); return *this;}
114 
118  inline const Aws::String& GetTopicPattern() const{ return m_topicPattern; }
119 
123  inline void SetTopicPattern(const Aws::String& value) { m_topicPatternHasBeenSet = true; m_topicPattern = value; }
124 
128  inline void SetTopicPattern(Aws::String&& value) { m_topicPatternHasBeenSet = true; m_topicPattern = value; }
129 
133  inline void SetTopicPattern(const char* value) { m_topicPatternHasBeenSet = true; m_topicPattern.assign(value); }
134 
138  inline TopicRuleListItem& WithTopicPattern(const Aws::String& value) { SetTopicPattern(value); return *this;}
139 
143  inline TopicRuleListItem& WithTopicPattern(Aws::String&& value) { SetTopicPattern(value); return *this;}
144 
148  inline TopicRuleListItem& WithTopicPattern(const char* value) { SetTopicPattern(value); return *this;}
149 
153  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
154 
158  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
159 
163  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
164 
168  inline TopicRuleListItem& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
169 
173  inline TopicRuleListItem& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(value); return *this;}
174 
178  inline bool GetRuleDisabled() const{ return m_ruleDisabled; }
179 
183  inline void SetRuleDisabled(bool value) { m_ruleDisabledHasBeenSet = true; m_ruleDisabled = value; }
184 
188  inline TopicRuleListItem& WithRuleDisabled(bool value) { SetRuleDisabled(value); return *this;}
189 
190  private:
191  Aws::String m_ruleArn;
192  bool m_ruleArnHasBeenSet;
193  Aws::String m_ruleName;
194  bool m_ruleNameHasBeenSet;
195  Aws::String m_topicPattern;
196  bool m_topicPatternHasBeenSet;
197  Aws::Utils::DateTime m_createdAt;
198  bool m_createdAtHasBeenSet;
199  bool m_ruleDisabled;
200  bool m_ruleDisabledHasBeenSet;
201  };
202 
203 } // namespace Model
204 } // namespace IoT
205 } // namespace Aws
TopicRuleListItem & WithRuleName(const char *value)
void SetRuleName(const Aws::String &value)
const Aws::String & GetRuleArn() const
TopicRuleListItem & WithRuleName(const Aws::String &value)
void SetRuleArn(Aws::String &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
TopicRuleListItem & WithCreatedAt(const Aws::Utils::DateTime &value)
TopicRuleListItem & WithCreatedAt(Aws::Utils::DateTime &&value)
TopicRuleListItem & WithRuleArn(const char *value)
TopicRuleListItem & WithRuleArn(const Aws::String &value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
void SetTopicPattern(Aws::String &&value)
void SetRuleName(Aws::String &&value)
void SetTopicPattern(const char *value)
void SetRuleName(const char *value)
TopicRuleListItem & WithRuleDisabled(bool value)
void SetRuleArn(const Aws::String &value)
TopicRuleListItem & WithTopicPattern(Aws::String &&value)
TopicRuleListItem & WithRuleArn(Aws::String &&value)
TopicRuleListItem & WithRuleName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetRuleName() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetRuleArn(const char *value)
TopicRuleListItem & WithTopicPattern(const Aws::String &value)
TopicRuleListItem & WithTopicPattern(const char *value)
const Aws::String & GetTopicPattern() const
JSON (JavaScript Object Notation).
void SetTopicPattern(const Aws::String &value)