AWS SDK for C++  1.9.129
AWS SDK for C++
GetTopicRuleRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "GetTopicRule"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
42 
46  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
47 
51  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
52 
56  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
57 
61  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
62 
66  inline GetTopicRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
67 
71  inline GetTopicRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
72 
76  inline GetTopicRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
77 
78  private:
79 
80  Aws::String m_ruleName;
81  bool m_ruleNameHasBeenSet;
82  };
83 
84 } // namespace Model
85 } // namespace IoT
86 } // namespace Aws
Aws::IoT::Model::GetTopicRuleRequest::WithRuleName
GetTopicRuleRequest & WithRuleName(const Aws::String &value)
Definition: GetTopicRuleRequest.h:66
Aws::IoT::Model::GetTopicRuleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::GetTopicRuleRequest::SetRuleName
void SetRuleName(const char *value)
Definition: GetTopicRuleRequest.h:61
Aws::IoT::Model::GetTopicRuleRequest::WithRuleName
GetTopicRuleRequest & WithRuleName(Aws::String &&value)
Definition: GetTopicRuleRequest.h:71
Aws::IoT::Model::GetTopicRuleRequest::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: GetTopicRuleRequest.h:56
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::GetTopicRuleRequest::GetTopicRuleRequest
GetTopicRuleRequest()
Aws::IoT::Model::GetTopicRuleRequest::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: GetTopicRuleRequest.h:51
Aws::IoT::Model::GetTopicRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetTopicRuleRequest.h:33
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::GetTopicRuleRequest::GetRuleName
const Aws::String & GetRuleName() const
Definition: GetTopicRuleRequest.h:41
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::GetTopicRuleRequest::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: GetTopicRuleRequest.h:46
IoTRequest.h
Aws::IoT::Model::GetTopicRuleRequest
Definition: GetTopicRuleRequest.h:25
Aws::IoT::Model::GetTopicRuleRequest::WithRuleName
GetTopicRuleRequest & WithRuleName(const char *value)
Definition: GetTopicRuleRequest.h:76
IoT_EXPORTS.h