AWS SDK for C++  1.9.129
AWS SDK for C++
ListTopicRulesResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace IoT
26 {
27 namespace Model
28 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<TopicRuleListItem>& GetRules() const{ return m_rules; }
46 
50  inline void SetRules(const Aws::Vector<TopicRuleListItem>& value) { m_rules = value; }
51 
55  inline void SetRules(Aws::Vector<TopicRuleListItem>&& value) { m_rules = std::move(value); }
56 
60  inline ListTopicRulesResult& WithRules(const Aws::Vector<TopicRuleListItem>& value) { SetRules(value); return *this;}
61 
65  inline ListTopicRulesResult& WithRules(Aws::Vector<TopicRuleListItem>&& value) { SetRules(std::move(value)); return *this;}
66 
70  inline ListTopicRulesResult& AddRules(const TopicRuleListItem& value) { m_rules.push_back(value); return *this; }
71 
75  inline ListTopicRulesResult& AddRules(TopicRuleListItem&& value) { m_rules.push_back(std::move(value)); return *this; }
76 
77 
82  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
83 
88  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
89 
94  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
95 
100  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
101 
106  inline ListTopicRulesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
112  inline ListTopicRulesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
113 
118  inline ListTopicRulesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
119 
120  private:
121 
123 
124  Aws::String m_nextToken;
125  };
126 
127 } // namespace Model
128 } // namespace IoT
129 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::ListTopicRulesResult::SetRules
void SetRules(Aws::Vector< TopicRuleListItem > &&value)
Definition: ListTopicRulesResult.h:55
Aws::IoT::Model::ListTopicRulesResult::ListTopicRulesResult
ListTopicRulesResult()
Aws::IoT::Model::ListTopicRulesResult::SetRules
void SetRules(const Aws::Vector< TopicRuleListItem > &value)
Definition: ListTopicRulesResult.h:50
Aws::IoT::Model::ListTopicRulesResult::WithRules
ListTopicRulesResult & WithRules(const Aws::Vector< TopicRuleListItem > &value)
Definition: ListTopicRulesResult.h:60
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::IoT::Model::ListTopicRulesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTopicRulesResult.h:94
TopicRuleListItem.h
Aws::IoT::Model::ListTopicRulesResult::AddRules
ListTopicRulesResult & AddRules(TopicRuleListItem &&value)
Definition: ListTopicRulesResult.h:75
Aws::IoT::Model::ListTopicRulesResult::WithRules
ListTopicRulesResult & WithRules(Aws::Vector< TopicRuleListItem > &&value)
Definition: ListTopicRulesResult.h:65
Aws::IoT::Model::ListTopicRulesResult::operator=
ListTopicRulesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::IoT::Model::ListTopicRulesResult::ListTopicRulesResult
ListTopicRulesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::ListTopicRulesResult::GetRules
const Aws::Vector< TopicRuleListItem > & GetRules() const
Definition: ListTopicRulesResult.h:45
Aws::IoT::Model::ListTopicRulesResult::WithNextToken
ListTopicRulesResult & WithNextToken(Aws::String &&value)
Definition: ListTopicRulesResult.h:112
Aws::IoT::Model::ListTopicRulesResult
Definition: ListTopicRulesResult.h:35
Aws::IoT::Model::ListTopicRulesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTopicRulesResult.h:82
Aws::IoT::Model::TopicRuleListItem
Definition: TopicRuleListItem.h:33
Aws::IoT::Model::ListTopicRulesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListTopicRulesResult.h:100
Aws::IoT::Model::ListTopicRulesResult::AddRules
ListTopicRulesResult & AddRules(const TopicRuleListItem &value)
Definition: ListTopicRulesResult.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListTopicRulesResult::WithNextToken
ListTopicRulesResult & WithNextToken(const Aws::String &value)
Definition: ListTopicRulesResult.h:106
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::ListTopicRulesResult::WithNextToken
ListTopicRulesResult & WithNextToken(const char *value)
Definition: ListTopicRulesResult.h:118
Aws::IoT::Model::ListTopicRulesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTopicRulesResult.h:88
IoT_EXPORTS.h