AWS SDK for C++  1.9.109
AWS SDK for C++
ListTopicRulesRequest.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 Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoT
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "ListTopicRules"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43 
47  inline const Aws::String& GetTopic() const{ return m_topic; }
48 
52  inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
53 
57  inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; }
58 
62  inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); }
63 
67  inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); }
68 
72  inline ListTopicRulesRequest& WithTopic(const Aws::String& value) { SetTopic(value); return *this;}
73 
77  inline ListTopicRulesRequest& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;}
78 
82  inline ListTopicRulesRequest& WithTopic(const char* value) { SetTopic(value); return *this;}
83 
84 
88  inline int GetMaxResults() const{ return m_maxResults; }
89 
93  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
94 
98  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
99 
103  inline ListTopicRulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
104 
105 
111  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
112 
118  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
119 
125  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
126 
132  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
133 
139  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
140 
146  inline ListTopicRulesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
147 
153  inline ListTopicRulesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
154 
160  inline ListTopicRulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
161 
162 
166  inline bool GetRuleDisabled() const{ return m_ruleDisabled; }
167 
171  inline bool RuleDisabledHasBeenSet() const { return m_ruleDisabledHasBeenSet; }
172 
176  inline void SetRuleDisabled(bool value) { m_ruleDisabledHasBeenSet = true; m_ruleDisabled = value; }
177 
181  inline ListTopicRulesRequest& WithRuleDisabled(bool value) { SetRuleDisabled(value); return *this;}
182 
183  private:
184 
185  Aws::String m_topic;
186  bool m_topicHasBeenSet;
187 
188  int m_maxResults;
189  bool m_maxResultsHasBeenSet;
190 
191  Aws::String m_nextToken;
192  bool m_nextTokenHasBeenSet;
193 
194  bool m_ruleDisabled;
195  bool m_ruleDisabledHasBeenSet;
196  };
197 
198 } // namespace Model
199 } // namespace IoT
200 } // namespace Aws
Aws::IoT::Model::ListTopicRulesRequest::WithTopic
ListTopicRulesRequest & WithTopic(const Aws::String &value)
Definition: ListTopicRulesRequest.h:72
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListTopicRulesRequest::ListTopicRulesRequest
ListTopicRulesRequest()
Aws::IoT::Model::ListTopicRulesRequest::WithTopic
ListTopicRulesRequest & WithTopic(Aws::String &&value)
Definition: ListTopicRulesRequest.h:77
Aws::IoT::Model::ListTopicRulesRequest::WithRuleDisabled
ListTopicRulesRequest & WithRuleDisabled(bool value)
Definition: ListTopicRulesRequest.h:181
Aws::IoT::Model::ListTopicRulesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListTopicRulesRequest.h:88
Aws::IoT::Model::ListTopicRulesRequest::WithNextToken
ListTopicRulesRequest & WithNextToken(Aws::String &&value)
Definition: ListTopicRulesRequest.h:153
Aws::IoT::Model::ListTopicRulesRequest::WithNextToken
ListTopicRulesRequest & WithNextToken(const char *value)
Definition: ListTopicRulesRequest.h:160
Aws::IoT::Model::ListTopicRulesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListTopicRulesRequest.h:93
Aws::IoT::Model::ListTopicRulesRequest::RuleDisabledHasBeenSet
bool RuleDisabledHasBeenSet() const
Definition: ListTopicRulesRequest.h:171
Aws::IoT::Model::ListTopicRulesRequest::WithTopic
ListTopicRulesRequest & WithTopic(const char *value)
Definition: ListTopicRulesRequest.h:82
Aws::IoT::Model::ListTopicRulesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTopicRulesRequest.h:37
Aws::IoT::Model::ListTopicRulesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTopicRulesRequest.h:118
Aws::IoT::Model::ListTopicRulesRequest::TopicHasBeenSet
bool TopicHasBeenSet() const
Definition: ListTopicRulesRequest.h:52
Aws::IoT::Model::ListTopicRulesRequest::SetTopic
void SetTopic(Aws::String &&value)
Definition: ListTopicRulesRequest.h:62
Aws::IoT::Model::ListTopicRulesRequest::GetTopic
const Aws::String & GetTopic() const
Definition: ListTopicRulesRequest.h:47
Aws::IoT::Model::ListTopicRulesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListTopicRulesRequest.h:98
Aws::IoT::Model::ListTopicRulesRequest::SetRuleDisabled
void SetRuleDisabled(bool value)
Definition: ListTopicRulesRequest.h:176
Aws::IoT::Model::ListTopicRulesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTopicRulesRequest.h:125
Aws::IoT::Model::ListTopicRulesRequest::SetTopic
void SetTopic(const Aws::String &value)
Definition: ListTopicRulesRequest.h:57
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListTopicRulesRequest::GetRuleDisabled
bool GetRuleDisabled() const
Definition: ListTopicRulesRequest.h:166
Aws::IoT::Model::ListTopicRulesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListTopicRulesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTopicRulesRequest.h:139
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListTopicRulesRequest::SetTopic
void SetTopic(const char *value)
Definition: ListTopicRulesRequest.h:67
Aws::IoT::Model::ListTopicRulesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTopicRulesRequest.h:111
Aws::IoT::Model::ListTopicRulesRequest::WithNextToken
ListTopicRulesRequest & WithNextToken(const Aws::String &value)
Definition: ListTopicRulesRequest.h:146
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ListTopicRulesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTopicRulesRequest.h:132
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListTopicRulesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListTopicRulesRequest::WithMaxResults
ListTopicRulesRequest & WithMaxResults(int value)
Definition: ListTopicRulesRequest.h:103
IoTRequest.h
Aws::IoT::Model::ListTopicRulesRequest
Definition: ListTopicRulesRequest.h:29
IoT_EXPORTS.h