AWS SDK for C++  1.9.123
AWS SDK for C++
DeleteTopicRuleRequest.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 "DeleteTopicRule"; }
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 DeleteTopicRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
67 
71  inline DeleteTopicRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
72 
76  inline DeleteTopicRuleRequest& 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::DeleteTopicRuleRequest::GetRuleName
const Aws::String & GetRuleName() const
Definition: DeleteTopicRuleRequest.h:41
Aws::IoT::Model::DeleteTopicRuleRequest::DeleteTopicRuleRequest
DeleteTopicRuleRequest()
Aws::IoT::Model::DeleteTopicRuleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::DeleteTopicRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteTopicRuleRequest.h:33
Aws::IoT::Model::DeleteTopicRuleRequest::SetRuleName
void SetRuleName(const char *value)
Definition: DeleteTopicRuleRequest.h:61
Aws::IoT::Model::DeleteTopicRuleRequest
Definition: DeleteTopicRuleRequest.h:25
Aws::IoT::Model::DeleteTopicRuleRequest::WithRuleName
DeleteTopicRuleRequest & WithRuleName(Aws::String &&value)
Definition: DeleteTopicRuleRequest.h:71
Aws::IoT::Model::DeleteTopicRuleRequest::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: DeleteTopicRuleRequest.h:56
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::DeleteTopicRuleRequest::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: DeleteTopicRuleRequest.h:46
Aws::IoT::Model::DeleteTopicRuleRequest::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: DeleteTopicRuleRequest.h:51
Aws
Definition: AccessManagementClient.h:15
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::DeleteTopicRuleRequest::WithRuleName
DeleteTopicRuleRequest & WithRuleName(const Aws::String &value)
Definition: DeleteTopicRuleRequest.h:66
IoTRequest.h
Aws::IoT::Model::DeleteTopicRuleRequest::WithRuleName
DeleteTopicRuleRequest & WithRuleName(const char *value)
Definition: DeleteTopicRuleRequest.h:76
IoT_EXPORTS.h