AWS SDK for C++  1.9.132
AWS SDK for C++
ListThingGroupsRequest.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 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListThingGroups"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
46  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
47 
53  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
54 
60  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
61 
67  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
68 
74  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
75 
81  inline ListThingGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
82 
88  inline ListThingGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
89 
95  inline ListThingGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
96 
97 
101  inline int GetMaxResults() const{ return m_maxResults; }
102 
106  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 
111  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
112 
116  inline ListThingGroupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
117 
118 
123  inline const Aws::String& GetParentGroup() const{ return m_parentGroup; }
124 
129  inline bool ParentGroupHasBeenSet() const { return m_parentGroupHasBeenSet; }
130 
135  inline void SetParentGroup(const Aws::String& value) { m_parentGroupHasBeenSet = true; m_parentGroup = value; }
136 
141  inline void SetParentGroup(Aws::String&& value) { m_parentGroupHasBeenSet = true; m_parentGroup = std::move(value); }
142 
147  inline void SetParentGroup(const char* value) { m_parentGroupHasBeenSet = true; m_parentGroup.assign(value); }
148 
153  inline ListThingGroupsRequest& WithParentGroup(const Aws::String& value) { SetParentGroup(value); return *this;}
154 
159  inline ListThingGroupsRequest& WithParentGroup(Aws::String&& value) { SetParentGroup(std::move(value)); return *this;}
160 
165  inline ListThingGroupsRequest& WithParentGroup(const char* value) { SetParentGroup(value); return *this;}
166 
167 
171  inline const Aws::String& GetNamePrefixFilter() const{ return m_namePrefixFilter; }
172 
176  inline bool NamePrefixFilterHasBeenSet() const { return m_namePrefixFilterHasBeenSet; }
177 
181  inline void SetNamePrefixFilter(const Aws::String& value) { m_namePrefixFilterHasBeenSet = true; m_namePrefixFilter = value; }
182 
186  inline void SetNamePrefixFilter(Aws::String&& value) { m_namePrefixFilterHasBeenSet = true; m_namePrefixFilter = std::move(value); }
187 
191  inline void SetNamePrefixFilter(const char* value) { m_namePrefixFilterHasBeenSet = true; m_namePrefixFilter.assign(value); }
192 
196  inline ListThingGroupsRequest& WithNamePrefixFilter(const Aws::String& value) { SetNamePrefixFilter(value); return *this;}
197 
201  inline ListThingGroupsRequest& WithNamePrefixFilter(Aws::String&& value) { SetNamePrefixFilter(std::move(value)); return *this;}
202 
206  inline ListThingGroupsRequest& WithNamePrefixFilter(const char* value) { SetNamePrefixFilter(value); return *this;}
207 
208 
212  inline bool GetRecursive() const{ return m_recursive; }
213 
217  inline bool RecursiveHasBeenSet() const { return m_recursiveHasBeenSet; }
218 
222  inline void SetRecursive(bool value) { m_recursiveHasBeenSet = true; m_recursive = value; }
223 
227  inline ListThingGroupsRequest& WithRecursive(bool value) { SetRecursive(value); return *this;}
228 
229  private:
230 
231  Aws::String m_nextToken;
232  bool m_nextTokenHasBeenSet;
233 
234  int m_maxResults;
235  bool m_maxResultsHasBeenSet;
236 
237  Aws::String m_parentGroup;
238  bool m_parentGroupHasBeenSet;
239 
240  Aws::String m_namePrefixFilter;
241  bool m_namePrefixFilterHasBeenSet;
242 
243  bool m_recursive;
244  bool m_recursiveHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace IoT
249 } // namespace Aws
Aws::IoT::Model::ListThingGroupsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListThingGroupsRequest.h:46
Aws::IoT::Model::ListThingGroupsRequest::WithParentGroup
ListThingGroupsRequest & WithParentGroup(const Aws::String &value)
Definition: ListThingGroupsRequest.h:153
Aws::IoT::Model::ListThingGroupsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListThingGroupsRequest.h:74
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListThingGroupsRequest::WithNamePrefixFilter
ListThingGroupsRequest & WithNamePrefixFilter(const char *value)
Definition: ListThingGroupsRequest.h:206
Aws::IoT::Model::ListThingGroupsRequest::WithNamePrefixFilter
ListThingGroupsRequest & WithNamePrefixFilter(Aws::String &&value)
Definition: ListThingGroupsRequest.h:201
Aws::IoT::Model::ListThingGroupsRequest::WithNamePrefixFilter
ListThingGroupsRequest & WithNamePrefixFilter(const Aws::String &value)
Definition: ListThingGroupsRequest.h:196
Aws::IoT::Model::ListThingGroupsRequest::SetNamePrefixFilter
void SetNamePrefixFilter(const Aws::String &value)
Definition: ListThingGroupsRequest.h:181
Aws::IoT::Model::ListThingGroupsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListThingGroupsRequest.h:67
Aws::IoT::Model::ListThingGroupsRequest::NamePrefixFilterHasBeenSet
bool NamePrefixFilterHasBeenSet() const
Definition: ListThingGroupsRequest.h:176
Aws::IoT::Model::ListThingGroupsRequest::WithNextToken
ListThingGroupsRequest & WithNextToken(const char *value)
Definition: ListThingGroupsRequest.h:95
Aws::IoT::Model::ListThingGroupsRequest::WithRecursive
ListThingGroupsRequest & WithRecursive(bool value)
Definition: ListThingGroupsRequest.h:227
Aws::IoT::Model::ListThingGroupsRequest::SetNamePrefixFilter
void SetNamePrefixFilter(Aws::String &&value)
Definition: ListThingGroupsRequest.h:186
Aws::IoT::Model::ListThingGroupsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListThingGroupsRequest.h:106
Aws::IoT::Model::ListThingGroupsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListThingGroupsRequest::SetRecursive
void SetRecursive(bool value)
Definition: ListThingGroupsRequest.h:222
Aws::IoT::Model::ListThingGroupsRequest
Definition: ListThingGroupsRequest.h:26
Aws::IoT::Model::ListThingGroupsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListThingGroupsRequest.h:34
Aws::IoT::Model::ListThingGroupsRequest::WithMaxResults
ListThingGroupsRequest & WithMaxResults(int value)
Definition: ListThingGroupsRequest.h:116
Aws::IoT::Model::ListThingGroupsRequest::ListThingGroupsRequest
ListThingGroupsRequest()
Aws::IoT::Model::ListThingGroupsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListThingGroupsRequest.h:111
AWSString.h
Aws::IoT::Model::ListThingGroupsRequest::SetParentGroup
void SetParentGroup(const char *value)
Definition: ListThingGroupsRequest.h:147
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListThingGroupsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListThingGroupsRequest::GetParentGroup
const Aws::String & GetParentGroup() const
Definition: ListThingGroupsRequest.h:123
Aws::IoT::Model::ListThingGroupsRequest::RecursiveHasBeenSet
bool RecursiveHasBeenSet() const
Definition: ListThingGroupsRequest.h:217
Aws::IoT::Model::ListThingGroupsRequest::ParentGroupHasBeenSet
bool ParentGroupHasBeenSet() const
Definition: ListThingGroupsRequest.h:129
Aws::IoT::Model::ListThingGroupsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListThingGroupsRequest.h:60
Aws::IoT::Model::ListThingGroupsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListThingGroupsRequest.h:101
Aws::IoT::Model::ListThingGroupsRequest::GetNamePrefixFilter
const Aws::String & GetNamePrefixFilter() const
Definition: ListThingGroupsRequest.h:171
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListThingGroupsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListThingGroupsRequest.h:53
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ListThingGroupsRequest::SetParentGroup
void SetParentGroup(Aws::String &&value)
Definition: ListThingGroupsRequest.h:141
Aws::IoT::Model::ListThingGroupsRequest::WithNextToken
ListThingGroupsRequest & WithNextToken(const Aws::String &value)
Definition: ListThingGroupsRequest.h:81
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListThingGroupsRequest::WithParentGroup
ListThingGroupsRequest & WithParentGroup(const char *value)
Definition: ListThingGroupsRequest.h:165
Aws::IoT::Model::ListThingGroupsRequest::WithParentGroup
ListThingGroupsRequest & WithParentGroup(Aws::String &&value)
Definition: ListThingGroupsRequest.h:159
Aws::IoT::Model::ListThingGroupsRequest::SetNamePrefixFilter
void SetNamePrefixFilter(const char *value)
Definition: ListThingGroupsRequest.h:191
IoTRequest.h
Aws::IoT::Model::ListThingGroupsRequest::GetRecursive
bool GetRecursive() const
Definition: ListThingGroupsRequest.h:212
Aws::IoT::Model::ListThingGroupsRequest::SetParentGroup
void SetParentGroup(const Aws::String &value)
Definition: ListThingGroupsRequest.h:135
IoT_EXPORTS.h
Aws::IoT::Model::ListThingGroupsRequest::WithNextToken
ListThingGroupsRequest & WithNextToken(Aws::String &&value)
Definition: ListThingGroupsRequest.h:88