AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
39
40
42
45 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
46 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
47 template<typename RuleArnT = Aws::String>
48 void SetRuleArn(RuleArnT&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::forward<RuleArnT>(value); }
49 template<typename RuleArnT = Aws::String>
50 TopicRuleListItem& WithRuleArn(RuleArnT&& value) { SetRuleArn(std::forward<RuleArnT>(value)); return *this;}
52
54
57 inline const Aws::String& GetRuleName() const { return m_ruleName; }
58 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
59 template<typename RuleNameT = Aws::String>
60 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
61 template<typename RuleNameT = Aws::String>
62 TopicRuleListItem& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetTopicPattern() const { return m_topicPattern; }
70 inline bool TopicPatternHasBeenSet() const { return m_topicPatternHasBeenSet; }
71 template<typename TopicPatternT = Aws::String>
72 void SetTopicPattern(TopicPatternT&& value) { m_topicPatternHasBeenSet = true; m_topicPattern = std::forward<TopicPatternT>(value); }
73 template<typename TopicPatternT = Aws::String>
74 TopicRuleListItem& WithTopicPattern(TopicPatternT&& value) { SetTopicPattern(std::forward<TopicPatternT>(value)); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
82 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
83 template<typename CreatedAtT = Aws::Utils::DateTime>
84 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
85 template<typename CreatedAtT = Aws::Utils::DateTime>
86 TopicRuleListItem& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
88
90
93 inline bool GetRuleDisabled() const { return m_ruleDisabled; }
94 inline bool RuleDisabledHasBeenSet() const { return m_ruleDisabledHasBeenSet; }
95 inline void SetRuleDisabled(bool value) { m_ruleDisabledHasBeenSet = true; m_ruleDisabled = value; }
96 inline TopicRuleListItem& WithRuleDisabled(bool value) { SetRuleDisabled(value); return *this;}
98 private:
99
100 Aws::String m_ruleArn;
101 bool m_ruleArnHasBeenSet = false;
102
103 Aws::String m_ruleName;
104 bool m_ruleNameHasBeenSet = false;
105
106 Aws::String m_topicPattern;
107 bool m_topicPatternHasBeenSet = false;
108
109 Aws::Utils::DateTime m_createdAt{};
110 bool m_createdAtHasBeenSet = false;
111
112 bool m_ruleDisabled{false};
113 bool m_ruleDisabledHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace IoT
118} // namespace Aws
void SetCreatedAt(CreatedAtT &&value)
TopicRuleListItem & WithRuleName(RuleNameT &&value)
TopicRuleListItem & WithRuleDisabled(bool value)
AWS_IOT_API TopicRuleListItem(Aws::Utils::Json::JsonView jsonValue)
TopicRuleListItem & WithRuleArn(RuleArnT &&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
const Aws::String & GetRuleName() const
void SetTopicPattern(TopicPatternT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetRuleArn() const
TopicRuleListItem & WithTopicPattern(TopicPatternT &&value)
AWS_IOT_API TopicRuleListItem()=default
void SetRuleName(RuleNameT &&value)
TopicRuleListItem & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue