AWS SDK for C++  1.9.129
AWS SDK for C++
GetTopicRuleResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
34  {
35  public:
39 
40 
44  inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
45 
49  inline void SetRuleArn(const Aws::String& value) { m_ruleArn = value; }
50 
54  inline void SetRuleArn(Aws::String&& value) { m_ruleArn = std::move(value); }
55 
59  inline void SetRuleArn(const char* value) { m_ruleArn.assign(value); }
60 
64  inline GetTopicRuleResult& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
65 
69  inline GetTopicRuleResult& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
70 
74  inline GetTopicRuleResult& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
75 
76 
80  inline const TopicRule& GetRule() const{ return m_rule; }
81 
85  inline void SetRule(const TopicRule& value) { m_rule = value; }
86 
90  inline void SetRule(TopicRule&& value) { m_rule = std::move(value); }
91 
95  inline GetTopicRuleResult& WithRule(const TopicRule& value) { SetRule(value); return *this;}
96 
100  inline GetTopicRuleResult& WithRule(TopicRule&& value) { SetRule(std::move(value)); return *this;}
101 
102  private:
103 
104  Aws::String m_ruleArn;
105 
106  TopicRule m_rule;
107  };
108 
109 } // namespace Model
110 } // namespace IoT
111 } // namespace Aws
Aws::IoT::Model::GetTopicRuleResult::GetTopicRuleResult
GetTopicRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::GetTopicRuleResult::SetRule
void SetRule(TopicRule &&value)
Definition: GetTopicRuleResult.h:90
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
TopicRule.h
Aws::IoT::Model::GetTopicRuleResult::WithRule
GetTopicRuleResult & WithRule(const TopicRule &value)
Definition: GetTopicRuleResult.h:95
Aws::IoT::Model::GetTopicRuleResult::GetTopicRuleResult
GetTopicRuleResult()
Aws::IoT::Model::GetTopicRuleResult::GetRule
const TopicRule & GetRule() const
Definition: GetTopicRuleResult.h:80
Aws::IoT::Model::GetTopicRuleResult::WithRuleArn
GetTopicRuleResult & WithRuleArn(Aws::String &&value)
Definition: GetTopicRuleResult.h:69
Aws::IoT::Model::GetTopicRuleResult::GetRuleArn
const Aws::String & GetRuleArn() const
Definition: GetTopicRuleResult.h:44
AWSString.h
Aws::IoT::Model::GetTopicRuleResult::SetRuleArn
void SetRuleArn(const char *value)
Definition: GetTopicRuleResult.h:59
Aws::IoT::Model::TopicRule
Definition: TopicRule.h:35
Aws::IoT::Model::GetTopicRuleResult
Definition: GetTopicRuleResult.h:34
Aws::IoT::Model::GetTopicRuleResult::WithRuleArn
GetTopicRuleResult & WithRuleArn(const Aws::String &value)
Definition: GetTopicRuleResult.h:64
Aws::IoT::Model::GetTopicRuleResult::SetRule
void SetRule(const TopicRule &value)
Definition: GetTopicRuleResult.h:85
Aws::IoT::Model::GetTopicRuleResult::SetRuleArn
void SetRuleArn(const Aws::String &value)
Definition: GetTopicRuleResult.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::GetTopicRuleResult::operator=
GetTopicRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::GetTopicRuleResult::WithRule
GetTopicRuleResult & WithRule(TopicRule &&value)
Definition: GetTopicRuleResult.h:100
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::GetTopicRuleResult::WithRuleArn
GetTopicRuleResult & WithRuleArn(const char *value)
Definition: GetTopicRuleResult.h:74
Aws::IoT::Model::GetTopicRuleResult::SetRuleArn
void SetRuleArn(Aws::String &&value)
Definition: GetTopicRuleResult.h:54
IoT_EXPORTS.h