AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TopicRuleListItem.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOT_API TopicRuleListItem();
39
40
42
45 inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
46 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
47 inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
48 inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); }
49 inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
50 inline TopicRuleListItem& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
51 inline TopicRuleListItem& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
52 inline TopicRuleListItem& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
54
56
59 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
60 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
61 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
62 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
63 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
64 inline TopicRuleListItem& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
65 inline TopicRuleListItem& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
66 inline TopicRuleListItem& WithRuleName(const char* value) { SetRuleName(value); return *this;}
68
70
73 inline const Aws::String& GetTopicPattern() const{ return m_topicPattern; }
74 inline bool TopicPatternHasBeenSet() const { return m_topicPatternHasBeenSet; }
75 inline void SetTopicPattern(const Aws::String& value) { m_topicPatternHasBeenSet = true; m_topicPattern = value; }
76 inline void SetTopicPattern(Aws::String&& value) { m_topicPatternHasBeenSet = true; m_topicPattern = std::move(value); }
77 inline void SetTopicPattern(const char* value) { m_topicPatternHasBeenSet = true; m_topicPattern.assign(value); }
78 inline TopicRuleListItem& WithTopicPattern(const Aws::String& value) { SetTopicPattern(value); return *this;}
79 inline TopicRuleListItem& WithTopicPattern(Aws::String&& value) { SetTopicPattern(std::move(value)); return *this;}
80 inline TopicRuleListItem& WithTopicPattern(const char* value) { SetTopicPattern(value); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
88 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
89 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
90 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
91 inline TopicRuleListItem& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
92 inline TopicRuleListItem& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
94
96
99 inline bool GetRuleDisabled() const{ return m_ruleDisabled; }
100 inline bool RuleDisabledHasBeenSet() const { return m_ruleDisabledHasBeenSet; }
101 inline void SetRuleDisabled(bool value) { m_ruleDisabledHasBeenSet = true; m_ruleDisabled = value; }
102 inline TopicRuleListItem& WithRuleDisabled(bool value) { SetRuleDisabled(value); return *this;}
104 private:
105
106 Aws::String m_ruleArn;
107 bool m_ruleArnHasBeenSet = false;
108
109 Aws::String m_ruleName;
110 bool m_ruleNameHasBeenSet = false;
111
112 Aws::String m_topicPattern;
113 bool m_topicPatternHasBeenSet = false;
114
115 Aws::Utils::DateTime m_createdAt;
116 bool m_createdAtHasBeenSet = false;
117
118 bool m_ruleDisabled;
119 bool m_ruleDisabledHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace IoT
124} // namespace Aws
void SetRuleName(Aws::String &&value)
TopicRuleListItem & WithRuleName(const Aws::String &value)
TopicRuleListItem & WithRuleDisabled(bool value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetTopicPattern(const char *value)
TopicRuleListItem & WithRuleName(const char *value)
AWS_IOT_API TopicRuleListItem(Aws::Utils::Json::JsonView jsonValue)
void SetTopicPattern(Aws::String &&value)
void SetTopicPattern(const Aws::String &value)
TopicRuleListItem & WithTopicPattern(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
TopicRuleListItem & WithTopicPattern(Aws::String &&value)
TopicRuleListItem & WithRuleArn(const Aws::String &value)
void SetRuleName(const Aws::String &value)
AWS_IOT_API TopicRuleListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTopicPattern() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
TopicRuleListItem & WithCreatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetRuleName() const
void SetRuleArn(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetRuleArn() const
TopicRuleListItem & WithRuleArn(const char *value)
void SetRuleArn(const Aws::String &value)
void SetRuleName(const char *value)
TopicRuleListItem & WithTopicPattern(const char *value)
TopicRuleListItem & WithRuleName(Aws::String &&value)
TopicRuleListItem & WithRuleArn(Aws::String &&value)
TopicRuleListItem & WithCreatedAt(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue