AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CreateTopicRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/TopicRulePayload.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IoT {
16namespace Model {
17
24 public:
25 AWS_IOT_API CreateTopicRuleRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateTopicRule"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetRuleName() const { return m_ruleName; }
42 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
43 template <typename RuleNameT = Aws::String>
44 void SetRuleName(RuleNameT&& value) {
45 m_ruleNameHasBeenSet = true;
46 m_ruleName = std::forward<RuleNameT>(value);
47 }
48 template <typename RuleNameT = Aws::String>
50 SetRuleName(std::forward<RuleNameT>(value));
51 return *this;
52 }
54
56
59 inline const TopicRulePayload& GetTopicRulePayload() const { return m_topicRulePayload; }
60 inline bool TopicRulePayloadHasBeenSet() const { return m_topicRulePayloadHasBeenSet; }
61 template <typename TopicRulePayloadT = TopicRulePayload>
62 void SetTopicRulePayload(TopicRulePayloadT&& value) {
63 m_topicRulePayloadHasBeenSet = true;
64 m_topicRulePayload = std::forward<TopicRulePayloadT>(value);
65 }
66 template <typename TopicRulePayloadT = TopicRulePayload>
67 CreateTopicRuleRequest& WithTopicRulePayload(TopicRulePayloadT&& value) {
68 SetTopicRulePayload(std::forward<TopicRulePayloadT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::String& GetTags() const { return m_tags; }
82 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
83 template <typename TagsT = Aws::String>
84 void SetTags(TagsT&& value) {
85 m_tagsHasBeenSet = true;
86 m_tags = std::forward<TagsT>(value);
87 }
88 template <typename TagsT = Aws::String>
90 SetTags(std::forward<TagsT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_ruleName;
96
97 TopicRulePayload m_topicRulePayload;
98
99 Aws::String m_tags;
100 bool m_ruleNameHasBeenSet = false;
101 bool m_topicRulePayloadHasBeenSet = false;
102 bool m_tagsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace IoT
107} // namespace Aws
CreateTopicRuleRequest & WithRuleName(RuleNameT &&value)
CreateTopicRuleRequest & WithTags(TagsT &&value)
AWS_IOT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTopicRuleRequest & WithTopicRulePayload(TopicRulePayloadT &&value)
const TopicRulePayload & GetTopicRulePayload() const
AWS_IOT_API CreateTopicRuleRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_IOT_API Aws::String SerializePayload() const override
void SetTopicRulePayload(TopicRulePayloadT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String