AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
ReplaceTopicRuleRequest.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 ReplaceTopicRuleRequest() = 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 "ReplaceTopicRule"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetRuleName() const { return m_ruleName; }
40 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
41 template <typename RuleNameT = Aws::String>
42 void SetRuleName(RuleNameT&& value) {
43 m_ruleNameHasBeenSet = true;
44 m_ruleName = std::forward<RuleNameT>(value);
45 }
46 template <typename RuleNameT = Aws::String>
48 SetRuleName(std::forward<RuleNameT>(value));
49 return *this;
50 }
52
54
57 inline const TopicRulePayload& GetTopicRulePayload() const { return m_topicRulePayload; }
58 inline bool TopicRulePayloadHasBeenSet() const { return m_topicRulePayloadHasBeenSet; }
59 template <typename TopicRulePayloadT = TopicRulePayload>
60 void SetTopicRulePayload(TopicRulePayloadT&& value) {
61 m_topicRulePayloadHasBeenSet = true;
62 m_topicRulePayload = std::forward<TopicRulePayloadT>(value);
63 }
64 template <typename TopicRulePayloadT = TopicRulePayload>
65 ReplaceTopicRuleRequest& WithTopicRulePayload(TopicRulePayloadT&& value) {
66 SetTopicRulePayload(std::forward<TopicRulePayloadT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_ruleName;
72 bool m_ruleNameHasBeenSet = false;
73
74 TopicRulePayload m_topicRulePayload;
75 bool m_topicRulePayloadHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace IoT
80} // namespace Aws
void SetTopicRulePayload(TopicRulePayloadT &&value)
ReplaceTopicRuleRequest & WithRuleName(RuleNameT &&value)
const TopicRulePayload & GetTopicRulePayload() const
AWS_IOT_API ReplaceTopicRuleRequest()=default
AWS_IOT_API Aws::String SerializePayload() const override
ReplaceTopicRuleRequest & WithTopicRulePayload(TopicRulePayloadT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String