AWS SDK for C++  1.9.124
AWS SDK for C++
CreateTopicRuleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoT
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateTopicRule"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
45 
49  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
50 
54  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
55 
59  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
60 
64  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
65 
69  inline CreateTopicRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
70 
74  inline CreateTopicRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
75 
79  inline CreateTopicRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
80 
81 
85  inline const TopicRulePayload& GetTopicRulePayload() const{ return m_topicRulePayload; }
86 
90  inline bool TopicRulePayloadHasBeenSet() const { return m_topicRulePayloadHasBeenSet; }
91 
95  inline void SetTopicRulePayload(const TopicRulePayload& value) { m_topicRulePayloadHasBeenSet = true; m_topicRulePayload = value; }
96 
100  inline void SetTopicRulePayload(TopicRulePayload&& value) { m_topicRulePayloadHasBeenSet = true; m_topicRulePayload = std::move(value); }
101 
105  inline CreateTopicRuleRequest& WithTopicRulePayload(const TopicRulePayload& value) { SetTopicRulePayload(value); return *this;}
106 
110  inline CreateTopicRuleRequest& WithTopicRulePayload(TopicRulePayload&& value) { SetTopicRulePayload(std::move(value)); return *this;}
111 
112 
120  inline const Aws::String& GetTags() const{ return m_tags; }
121 
129  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 
138  inline void SetTags(const Aws::String& value) { m_tagsHasBeenSet = true; m_tags = value; }
139 
147  inline void SetTags(Aws::String&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
148 
156  inline void SetTags(const char* value) { m_tagsHasBeenSet = true; m_tags.assign(value); }
157 
165  inline CreateTopicRuleRequest& WithTags(const Aws::String& value) { SetTags(value); return *this;}
166 
174  inline CreateTopicRuleRequest& WithTags(Aws::String&& value) { SetTags(std::move(value)); return *this;}
175 
183  inline CreateTopicRuleRequest& WithTags(const char* value) { SetTags(value); return *this;}
184 
185  private:
186 
187  Aws::String m_ruleName;
188  bool m_ruleNameHasBeenSet;
189 
190  TopicRulePayload m_topicRulePayload;
191  bool m_topicRulePayloadHasBeenSet;
192 
193  Aws::String m_tags;
194  bool m_tagsHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace IoT
199 } // namespace Aws
Aws::IoT::Model::CreateTopicRuleRequest
Definition: CreateTopicRuleRequest.h:26
Aws::IoT::Model::CreateTopicRuleRequest::WithRuleName
CreateTopicRuleRequest & WithRuleName(Aws::String &&value)
Definition: CreateTopicRuleRequest.h:74
Aws::IoT::Model::CreateTopicRuleRequest::WithTags
CreateTopicRuleRequest & WithTags(const char *value)
Definition: CreateTopicRuleRequest.h:183
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::IoT::Model::CreateTopicRuleRequest::SetTopicRulePayload
void SetTopicRulePayload(TopicRulePayload &&value)
Definition: CreateTopicRuleRequest.h:100
Aws::IoT::Model::CreateTopicRuleRequest::WithTopicRulePayload
CreateTopicRuleRequest & WithTopicRulePayload(const TopicRulePayload &value)
Definition: CreateTopicRuleRequest.h:105
Aws::IoT::Model::CreateTopicRuleRequest::GetRuleName
const Aws::String & GetRuleName() const
Definition: CreateTopicRuleRequest.h:44
Aws::IoT::Model::CreateTopicRuleRequest::SetRuleName
void SetRuleName(const char *value)
Definition: CreateTopicRuleRequest.h:64
Aws::IoT::Model::CreateTopicRuleRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::IoT::Model::CreateTopicRuleRequest::GetTags
const Aws::String & GetTags() const
Definition: CreateTopicRuleRequest.h:120
Aws::IoT::Model::CreateTopicRuleRequest::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: CreateTopicRuleRequest.h:59
Aws::IoT::Model::CreateTopicRuleRequest::WithRuleName
CreateTopicRuleRequest & WithRuleName(const char *value)
Definition: CreateTopicRuleRequest.h:79
TopicRulePayload.h
Aws::IoT::Model::CreateTopicRuleRequest::WithTags
CreateTopicRuleRequest & WithTags(Aws::String &&value)
Definition: CreateTopicRuleRequest.h:174
Aws::IoT::Model::CreateTopicRuleRequest::TopicRulePayloadHasBeenSet
bool TopicRulePayloadHasBeenSet() const
Definition: CreateTopicRuleRequest.h:90
Aws::IoT::Model::CreateTopicRuleRequest::WithTopicRulePayload
CreateTopicRuleRequest & WithTopicRulePayload(TopicRulePayload &&value)
Definition: CreateTopicRuleRequest.h:110
Aws::IoT::Model::CreateTopicRuleRequest::SetTags
void SetTags(const char *value)
Definition: CreateTopicRuleRequest.h:156
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreateTopicRuleRequest::CreateTopicRuleRequest
CreateTopicRuleRequest()
Aws::IoT::Model::TopicRulePayload
Definition: TopicRulePayload.h:34
Aws::IoT::Model::CreateTopicRuleRequest::SetTopicRulePayload
void SetTopicRulePayload(const TopicRulePayload &value)
Definition: CreateTopicRuleRequest.h:95
Aws::IoT::Model::CreateTopicRuleRequest::GetTopicRulePayload
const TopicRulePayload & GetTopicRulePayload() const
Definition: CreateTopicRuleRequest.h:85
Aws::IoT::Model::CreateTopicRuleRequest::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: CreateTopicRuleRequest.h:54
Aws::IoT::Model::CreateTopicRuleRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateTopicRuleRequest.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CreateTopicRuleRequest::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: CreateTopicRuleRequest.h:49
Aws::IoT::Model::CreateTopicRuleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::CreateTopicRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTopicRuleRequest.h:34
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::CreateTopicRuleRequest::WithRuleName
CreateTopicRuleRequest & WithRuleName(const Aws::String &value)
Definition: CreateTopicRuleRequest.h:69
IoTRequest.h
Aws::IoT::Model::CreateTopicRuleRequest::SetTags
void SetTags(const Aws::String &value)
Definition: CreateTopicRuleRequest.h:138
Aws::IoT::Model::CreateTopicRuleRequest::WithTags
CreateTopicRuleRequest & WithTags(const Aws::String &value)
Definition: CreateTopicRuleRequest.h:165
Aws::IoT::Model::CreateTopicRuleRequest::SetTags
void SetTags(Aws::String &&value)
Definition: CreateTopicRuleRequest.h:147
IoT_EXPORTS.h