AWS SDK for C++  1.9.123
AWS SDK for C++
ReplaceTopicRuleRequest.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 "ReplaceTopicRule"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
43 
47  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
48 
52  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
53 
57  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
58 
62  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
63 
67  inline ReplaceTopicRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
68 
72  inline ReplaceTopicRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
73 
77  inline ReplaceTopicRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
78 
79 
83  inline const TopicRulePayload& GetTopicRulePayload() const{ return m_topicRulePayload; }
84 
88  inline bool TopicRulePayloadHasBeenSet() const { return m_topicRulePayloadHasBeenSet; }
89 
93  inline void SetTopicRulePayload(const TopicRulePayload& value) { m_topicRulePayloadHasBeenSet = true; m_topicRulePayload = value; }
94 
98  inline void SetTopicRulePayload(TopicRulePayload&& value) { m_topicRulePayloadHasBeenSet = true; m_topicRulePayload = std::move(value); }
99 
103  inline ReplaceTopicRuleRequest& WithTopicRulePayload(const TopicRulePayload& value) { SetTopicRulePayload(value); return *this;}
104 
108  inline ReplaceTopicRuleRequest& WithTopicRulePayload(TopicRulePayload&& value) { SetTopicRulePayload(std::move(value)); return *this;}
109 
110  private:
111 
112  Aws::String m_ruleName;
113  bool m_ruleNameHasBeenSet;
114 
115  TopicRulePayload m_topicRulePayload;
116  bool m_topicRulePayloadHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace IoT
121 } // namespace Aws
Aws::IoT::Model::ReplaceTopicRuleRequest::TopicRulePayloadHasBeenSet
bool TopicRulePayloadHasBeenSet() const
Definition: ReplaceTopicRuleRequest.h:88
Aws::IoT::Model::ReplaceTopicRuleRequest::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: ReplaceTopicRuleRequest.h:47
Aws::IoT::Model::ReplaceTopicRuleRequest::WithRuleName
ReplaceTopicRuleRequest & WithRuleName(const Aws::String &value)
Definition: ReplaceTopicRuleRequest.h:67
Aws::IoT::Model::ReplaceTopicRuleRequest::WithRuleName
ReplaceTopicRuleRequest & WithRuleName(Aws::String &&value)
Definition: ReplaceTopicRuleRequest.h:72
Aws::IoT::Model::ReplaceTopicRuleRequest::WithTopicRulePayload
ReplaceTopicRuleRequest & WithTopicRulePayload(TopicRulePayload &&value)
Definition: ReplaceTopicRuleRequest.h:108
Aws::IoT::Model::ReplaceTopicRuleRequest::ReplaceTopicRuleRequest
ReplaceTopicRuleRequest()
TopicRulePayload.h
Aws::IoT::Model::ReplaceTopicRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ReplaceTopicRuleRequest.h:34
Aws::IoT::Model::ReplaceTopicRuleRequest::GetTopicRulePayload
const TopicRulePayload & GetTopicRulePayload() const
Definition: ReplaceTopicRuleRequest.h:83
Aws::IoT::Model::ReplaceTopicRuleRequest::SetRuleName
void SetRuleName(const char *value)
Definition: ReplaceTopicRuleRequest.h:62
Aws::IoT::Model::ReplaceTopicRuleRequest::WithTopicRulePayload
ReplaceTopicRuleRequest & WithTopicRulePayload(const TopicRulePayload &value)
Definition: ReplaceTopicRuleRequest.h:103
Aws::IoT::Model::ReplaceTopicRuleRequest::SetTopicRulePayload
void SetTopicRulePayload(const TopicRulePayload &value)
Definition: ReplaceTopicRuleRequest.h:93
Aws::IoT::Model::ReplaceTopicRuleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ReplaceTopicRuleRequest::GetRuleName
const Aws::String & GetRuleName() const
Definition: ReplaceTopicRuleRequest.h:42
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ReplaceTopicRuleRequest::WithRuleName
ReplaceTopicRuleRequest & WithRuleName(const char *value)
Definition: ReplaceTopicRuleRequest.h:77
Aws::IoT::Model::TopicRulePayload
Definition: TopicRulePayload.h:34
Aws::IoT::Model::ReplaceTopicRuleRequest::SetTopicRulePayload
void SetTopicRulePayload(TopicRulePayload &&value)
Definition: ReplaceTopicRuleRequest.h:98
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ReplaceTopicRuleRequest::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: ReplaceTopicRuleRequest.h:52
Aws::IoT::Model::ReplaceTopicRuleRequest::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: ReplaceTopicRuleRequest.h:57
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
IoTRequest.h
Aws::IoT::Model::ReplaceTopicRuleRequest
Definition: ReplaceTopicRuleRequest.h:26
IoT_EXPORTS.h