AWS SDK for C++  1.9.109
AWS SDK for C++
ListThingsInThingGroupRequest.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 "ListThingsInThingGroup"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetThingGroupName() const{ return m_thingGroupName; }
45 
49  inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
50 
54  inline void SetThingGroupName(const Aws::String& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = value; }
55 
59  inline void SetThingGroupName(Aws::String&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::move(value); }
60 
64  inline void SetThingGroupName(const char* value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName.assign(value); }
65 
69  inline ListThingsInThingGroupRequest& WithThingGroupName(const Aws::String& value) { SetThingGroupName(value); return *this;}
70 
74  inline ListThingsInThingGroupRequest& WithThingGroupName(Aws::String&& value) { SetThingGroupName(std::move(value)); return *this;}
75 
79  inline ListThingsInThingGroupRequest& WithThingGroupName(const char* value) { SetThingGroupName(value); return *this;}
80 
81 
86  inline bool GetRecursive() const{ return m_recursive; }
87 
92  inline bool RecursiveHasBeenSet() const { return m_recursiveHasBeenSet; }
93 
98  inline void SetRecursive(bool value) { m_recursiveHasBeenSet = true; m_recursive = value; }
99 
104  inline ListThingsInThingGroupRequest& WithRecursive(bool value) { SetRecursive(value); return *this;}
105 
106 
112  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
113 
119  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
120 
126  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
127 
133  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
134 
140  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
141 
147  inline ListThingsInThingGroupRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
148 
154  inline ListThingsInThingGroupRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
155 
161  inline ListThingsInThingGroupRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
162 
163 
167  inline int GetMaxResults() const{ return m_maxResults; }
168 
172  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
173 
177  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
178 
182  inline ListThingsInThingGroupRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
183 
184  private:
185 
186  Aws::String m_thingGroupName;
187  bool m_thingGroupNameHasBeenSet;
188 
189  bool m_recursive;
190  bool m_recursiveHasBeenSet;
191 
192  Aws::String m_nextToken;
193  bool m_nextTokenHasBeenSet;
194 
195  int m_maxResults;
196  bool m_maxResultsHasBeenSet;
197  };
198 
199 } // namespace Model
200 } // namespace IoT
201 } // namespace Aws
Aws::IoT::Model::ListThingsInThingGroupRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListThingsInThingGroupRequest.h:119
Aws::IoT::Model::ListThingsInThingGroupRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListThingsInThingGroupRequest.h:126
Aws::IoT::Model::ListThingsInThingGroupRequest::GetThingGroupName
const Aws::String & GetThingGroupName() const
Definition: ListThingsInThingGroupRequest.h:44
Aws::IoT::Model::ListThingsInThingGroupRequest::SetThingGroupName
void SetThingGroupName(const char *value)
Definition: ListThingsInThingGroupRequest.h:64
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListThingsInThingGroupRequest::WithThingGroupName
ListThingsInThingGroupRequest & WithThingGroupName(const char *value)
Definition: ListThingsInThingGroupRequest.h:79
Aws::IoT::Model::ListThingsInThingGroupRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListThingsInThingGroupRequest.h:133
Aws::IoT::Model::ListThingsInThingGroupRequest::ThingGroupNameHasBeenSet
bool ThingGroupNameHasBeenSet() const
Definition: ListThingsInThingGroupRequest.h:49
Aws::IoT::Model::ListThingsInThingGroupRequest::SetThingGroupName
void SetThingGroupName(const Aws::String &value)
Definition: ListThingsInThingGroupRequest.h:54
Aws::IoT::Model::ListThingsInThingGroupRequest::GetRecursive
bool GetRecursive() const
Definition: ListThingsInThingGroupRequest.h:86
Aws::IoT::Model::ListThingsInThingGroupRequest::SetThingGroupName
void SetThingGroupName(Aws::String &&value)
Definition: ListThingsInThingGroupRequest.h:59
Aws::IoT::Model::ListThingsInThingGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListThingsInThingGroupRequest::WithNextToken
ListThingsInThingGroupRequest & WithNextToken(const char *value)
Definition: ListThingsInThingGroupRequest.h:161
Aws::IoT::Model::ListThingsInThingGroupRequest::WithThingGroupName
ListThingsInThingGroupRequest & WithThingGroupName(Aws::String &&value)
Definition: ListThingsInThingGroupRequest.h:74
Aws::IoT::Model::ListThingsInThingGroupRequest
Definition: ListThingsInThingGroupRequest.h:26
Aws::IoT::Model::ListThingsInThingGroupRequest::RecursiveHasBeenSet
bool RecursiveHasBeenSet() const
Definition: ListThingsInThingGroupRequest.h:92
Aws::IoT::Model::ListThingsInThingGroupRequest::WithNextToken
ListThingsInThingGroupRequest & WithNextToken(const Aws::String &value)
Definition: ListThingsInThingGroupRequest.h:147
Aws::IoT::Model::ListThingsInThingGroupRequest::SetRecursive
void SetRecursive(bool value)
Definition: ListThingsInThingGroupRequest.h:98
Aws::IoT::Model::ListThingsInThingGroupRequest::WithMaxResults
ListThingsInThingGroupRequest & WithMaxResults(int value)
Definition: ListThingsInThingGroupRequest.h:182
Aws::IoT::Model::ListThingsInThingGroupRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListThingsInThingGroupRequest.h:140
AWSString.h
Aws::IoT::Model::ListThingsInThingGroupRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListThingsInThingGroupRequest.h:172
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListThingsInThingGroupRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListThingsInThingGroupRequest::WithNextToken
ListThingsInThingGroupRequest & WithNextToken(Aws::String &&value)
Definition: ListThingsInThingGroupRequest.h:154
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListThingsInThingGroupRequest::ListThingsInThingGroupRequest
ListThingsInThingGroupRequest()
Aws::IoT::Model::ListThingsInThingGroupRequest::WithThingGroupName
ListThingsInThingGroupRequest & WithThingGroupName(const Aws::String &value)
Definition: ListThingsInThingGroupRequest.h:69
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ListThingsInThingGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListThingsInThingGroupRequest.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IoTRequest.h
Aws::IoT::Model::ListThingsInThingGroupRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListThingsInThingGroupRequest.h:112
Aws::IoT::Model::ListThingsInThingGroupRequest::WithRecursive
ListThingsInThingGroupRequest & WithRecursive(bool value)
Definition: ListThingsInThingGroupRequest.h:104
Aws::IoT::Model::ListThingsInThingGroupRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListThingsInThingGroupRequest.h:177
Aws::IoT::Model::ListThingsInThingGroupRequest::GetMaxResults
int GetMaxResults() const
Definition: ListThingsInThingGroupRequest.h:167
IoT_EXPORTS.h