AWS SDK for C++  1.9.124
AWS SDK for C++
TopicRuleListItem.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
45 
49  inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
50 
54  inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
55 
59  inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); }
60 
64  inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
65 
69  inline TopicRuleListItem& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
70 
74  inline TopicRuleListItem& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
75 
79  inline TopicRuleListItem& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
80 
81 
85  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
86 
90  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
91 
95  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
96 
100  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
101 
105  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
106 
110  inline TopicRuleListItem& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
111 
115  inline TopicRuleListItem& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
116 
120  inline TopicRuleListItem& WithRuleName(const char* value) { SetRuleName(value); return *this;}
121 
122 
126  inline const Aws::String& GetTopicPattern() const{ return m_topicPattern; }
127 
131  inline bool TopicPatternHasBeenSet() const { return m_topicPatternHasBeenSet; }
132 
136  inline void SetTopicPattern(const Aws::String& value) { m_topicPatternHasBeenSet = true; m_topicPattern = value; }
137 
141  inline void SetTopicPattern(Aws::String&& value) { m_topicPatternHasBeenSet = true; m_topicPattern = std::move(value); }
142 
146  inline void SetTopicPattern(const char* value) { m_topicPatternHasBeenSet = true; m_topicPattern.assign(value); }
147 
151  inline TopicRuleListItem& WithTopicPattern(const Aws::String& value) { SetTopicPattern(value); return *this;}
152 
156  inline TopicRuleListItem& WithTopicPattern(Aws::String&& value) { SetTopicPattern(std::move(value)); return *this;}
157 
161  inline TopicRuleListItem& WithTopicPattern(const char* value) { SetTopicPattern(value); return *this;}
162 
163 
167  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
168 
172  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
173 
177  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
178 
182  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
183 
187  inline TopicRuleListItem& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
188 
192  inline TopicRuleListItem& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
193 
194 
198  inline bool GetRuleDisabled() const{ return m_ruleDisabled; }
199 
203  inline bool RuleDisabledHasBeenSet() const { return m_ruleDisabledHasBeenSet; }
204 
208  inline void SetRuleDisabled(bool value) { m_ruleDisabledHasBeenSet = true; m_ruleDisabled = value; }
209 
213  inline TopicRuleListItem& WithRuleDisabled(bool value) { SetRuleDisabled(value); return *this;}
214 
215  private:
216 
217  Aws::String m_ruleArn;
218  bool m_ruleArnHasBeenSet;
219 
220  Aws::String m_ruleName;
221  bool m_ruleNameHasBeenSet;
222 
223  Aws::String m_topicPattern;
224  bool m_topicPatternHasBeenSet;
225 
226  Aws::Utils::DateTime m_createdAt;
227  bool m_createdAtHasBeenSet;
228 
229  bool m_ruleDisabled;
230  bool m_ruleDisabledHasBeenSet;
231  };
232 
233 } // namespace Model
234 } // namespace IoT
235 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::TopicRuleListItem::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: TopicRuleListItem.h:100
Aws::IoT::Model::TopicRuleListItem::RuleDisabledHasBeenSet
bool RuleDisabledHasBeenSet() const
Definition: TopicRuleListItem.h:203
Aws::IoT::Model::TopicRuleListItem::TopicPatternHasBeenSet
bool TopicPatternHasBeenSet() const
Definition: TopicRuleListItem.h:131
Aws::IoT::Model::TopicRuleListItem::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: TopicRuleListItem.h:182
Aws::IoT::Model::TopicRuleListItem::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: TopicRuleListItem.h:172
Aws::IoT::Model::TopicRuleListItem::WithTopicPattern
TopicRuleListItem & WithTopicPattern(const char *value)
Definition: TopicRuleListItem.h:161
Aws::IoT::Model::TopicRuleListItem::WithCreatedAt
TopicRuleListItem & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: TopicRuleListItem.h:187
Aws::IoT::Model::TopicRuleListItem::WithRuleDisabled
TopicRuleListItem & WithRuleDisabled(bool value)
Definition: TopicRuleListItem.h:213
Aws::IoT::Model::TopicRuleListItem::SetRuleArn
void SetRuleArn(const Aws::String &value)
Definition: TopicRuleListItem.h:54
Aws::IoT::Model::TopicRuleListItem::WithRuleName
TopicRuleListItem & WithRuleName(const char *value)
Definition: TopicRuleListItem.h:120
Aws::IoT::Model::TopicRuleListItem::WithRuleName
TopicRuleListItem & WithRuleName(const Aws::String &value)
Definition: TopicRuleListItem.h:110
Aws::IoT::Model::TopicRuleListItem::TopicRuleListItem
TopicRuleListItem()
DateTime.h
Aws::IoT::Model::TopicRuleListItem::RuleArnHasBeenSet
bool RuleArnHasBeenSet() const
Definition: TopicRuleListItem.h:49
Aws::IoT::Model::TopicRuleListItem::WithTopicPattern
TopicRuleListItem & WithTopicPattern(Aws::String &&value)
Definition: TopicRuleListItem.h:156
Aws::IoT::Model::TopicRuleListItem::SetRuleName
void SetRuleName(const char *value)
Definition: TopicRuleListItem.h:105
Aws::IoT::Model::TopicRuleListItem::SetRuleArn
void SetRuleArn(const char *value)
Definition: TopicRuleListItem.h:64
Aws::IoT::Model::TopicRuleListItem::GetRuleDisabled
bool GetRuleDisabled() const
Definition: TopicRuleListItem.h:198
Aws::IoT::Model::TopicRuleListItem::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: TopicRuleListItem.h:90
Aws::IoT::Model::TopicRuleListItem::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: TopicRuleListItem.h:167
Aws::IoT::Model::TopicRuleListItem::GetTopicPattern
const Aws::String & GetTopicPattern() const
Definition: TopicRuleListItem.h:126
Aws::IoT::Model::TopicRuleListItem::WithRuleName
TopicRuleListItem & WithRuleName(Aws::String &&value)
Definition: TopicRuleListItem.h:115
Aws::IoT::Model::TopicRuleListItem::WithRuleArn
TopicRuleListItem & WithRuleArn(const Aws::String &value)
Definition: TopicRuleListItem.h:69
Aws::IoT::Model::TopicRuleListItem::SetTopicPattern
void SetTopicPattern(const Aws::String &value)
Definition: TopicRuleListItem.h:136
Aws::IoT::Model::TopicRuleListItem::WithTopicPattern
TopicRuleListItem & WithTopicPattern(const Aws::String &value)
Definition: TopicRuleListItem.h:151
Aws::IoT::Model::TopicRuleListItem::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: TopicRuleListItem.h:177
Aws::IoT::Model::TopicRuleListItem::WithRuleArn
TopicRuleListItem & WithRuleArn(Aws::String &&value)
Definition: TopicRuleListItem.h:74
Aws::IoT::Model::TopicRuleListItem::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::TopicRuleListItem::WithRuleArn
TopicRuleListItem & WithRuleArn(const char *value)
Definition: TopicRuleListItem.h:79
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::TopicRuleListItem::GetRuleName
const Aws::String & GetRuleName() const
Definition: TopicRuleListItem.h:85
Aws::IoT::Model::TopicRuleListItem::GetRuleArn
const Aws::String & GetRuleArn() const
Definition: TopicRuleListItem.h:44
Aws::IoT::Model::TopicRuleListItem
Definition: TopicRuleListItem.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::TopicRuleListItem::SetTopicPattern
void SetTopicPattern(Aws::String &&value)
Definition: TopicRuleListItem.h:141
Aws::IoT::Model::TopicRuleListItem::SetTopicPattern
void SetTopicPattern(const char *value)
Definition: TopicRuleListItem.h:146
Aws::IoT::Model::TopicRuleListItem::operator=
TopicRuleListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::TopicRuleListItem::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: TopicRuleListItem.h:95
Aws::IoT::Model::TopicRuleListItem::TopicRuleListItem
TopicRuleListItem(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::TopicRuleListItem::SetRuleArn
void SetRuleArn(Aws::String &&value)
Definition: TopicRuleListItem.h:59
IoT_EXPORTS.h
Aws::IoT::Model::TopicRuleListItem::WithCreatedAt
TopicRuleListItem & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: TopicRuleListItem.h:192
Aws::IoT::Model::TopicRuleListItem::SetRuleDisabled
void SetRuleDisabled(bool value)
Definition: TopicRuleListItem.h:208