AWS SDK for C++  1.9.132
AWS SDK for C++
ListThingsRequest.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 "ListThings"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43 
49  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
50 
56  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
57 
63  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
64 
70  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
71 
77  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
78 
84  inline ListThingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
85 
91  inline ListThingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
92 
98  inline ListThingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
99 
100 
104  inline int GetMaxResults() const{ return m_maxResults; }
105 
109  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
110 
114  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
115 
119  inline ListThingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
120 
121 
125  inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
126 
130  inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
131 
135  inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
136 
140  inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
141 
145  inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
146 
150  inline ListThingsRequest& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
151 
155  inline ListThingsRequest& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
156 
160  inline ListThingsRequest& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
161 
162 
166  inline const Aws::String& GetAttributeValue() const{ return m_attributeValue; }
167 
171  inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
172 
176  inline void SetAttributeValue(const Aws::String& value) { m_attributeValueHasBeenSet = true; m_attributeValue = value; }
177 
181  inline void SetAttributeValue(Aws::String&& value) { m_attributeValueHasBeenSet = true; m_attributeValue = std::move(value); }
182 
186  inline void SetAttributeValue(const char* value) { m_attributeValueHasBeenSet = true; m_attributeValue.assign(value); }
187 
191  inline ListThingsRequest& WithAttributeValue(const Aws::String& value) { SetAttributeValue(value); return *this;}
192 
196  inline ListThingsRequest& WithAttributeValue(Aws::String&& value) { SetAttributeValue(std::move(value)); return *this;}
197 
201  inline ListThingsRequest& WithAttributeValue(const char* value) { SetAttributeValue(value); return *this;}
202 
203 
207  inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
208 
212  inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
213 
217  inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
218 
222  inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::move(value); }
223 
227  inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); }
228 
232  inline ListThingsRequest& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
233 
237  inline ListThingsRequest& WithThingTypeName(Aws::String&& value) { SetThingTypeName(std::move(value)); return *this;}
238 
242  inline ListThingsRequest& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
243 
244 
252  inline bool GetUsePrefixAttributeValue() const{ return m_usePrefixAttributeValue; }
253 
261  inline bool UsePrefixAttributeValueHasBeenSet() const { return m_usePrefixAttributeValueHasBeenSet; }
262 
270  inline void SetUsePrefixAttributeValue(bool value) { m_usePrefixAttributeValueHasBeenSet = true; m_usePrefixAttributeValue = value; }
271 
279  inline ListThingsRequest& WithUsePrefixAttributeValue(bool value) { SetUsePrefixAttributeValue(value); return *this;}
280 
281  private:
282 
283  Aws::String m_nextToken;
284  bool m_nextTokenHasBeenSet;
285 
286  int m_maxResults;
287  bool m_maxResultsHasBeenSet;
288 
289  Aws::String m_attributeName;
290  bool m_attributeNameHasBeenSet;
291 
292  Aws::String m_attributeValue;
293  bool m_attributeValueHasBeenSet;
294 
295  Aws::String m_thingTypeName;
296  bool m_thingTypeNameHasBeenSet;
297 
298  bool m_usePrefixAttributeValue;
299  bool m_usePrefixAttributeValueHasBeenSet;
300  };
301 
302 } // namespace Model
303 } // namespace IoT
304 } // namespace Aws
Aws::IoT::Model::ListThingsRequest::SetAttributeName
void SetAttributeName(Aws::String &&value)
Definition: ListThingsRequest.h:140
Aws::IoT::Model::ListThingsRequest::SetAttributeName
void SetAttributeName(const Aws::String &value)
Definition: ListThingsRequest.h:135
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListThingsRequest::GetUsePrefixAttributeValue
bool GetUsePrefixAttributeValue() const
Definition: ListThingsRequest.h:252
Aws::IoT::Model::ListThingsRequest::WithNextToken
ListThingsRequest & WithNextToken(const Aws::String &value)
Definition: ListThingsRequest.h:84
Aws::IoT::Model::ListThingsRequest::AttributeValueHasBeenSet
bool AttributeValueHasBeenSet() const
Definition: ListThingsRequest.h:171
Aws::IoT::Model::ListThingsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListThingsRequest.h:104
Aws::IoT::Model::ListThingsRequest::UsePrefixAttributeValueHasBeenSet
bool UsePrefixAttributeValueHasBeenSet() const
Definition: ListThingsRequest.h:261
Aws::IoT::Model::ListThingsRequest::ThingTypeNameHasBeenSet
bool ThingTypeNameHasBeenSet() const
Definition: ListThingsRequest.h:212
Aws::IoT::Model::ListThingsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListThingsRequest.h:114
Aws::IoT::Model::ListThingsRequest::SetThingTypeName
void SetThingTypeName(const Aws::String &value)
Definition: ListThingsRequest.h:217
Aws::IoT::Model::ListThingsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListThingsRequest.h:56
Aws::IoT::Model::ListThingsRequest::WithAttributeName
ListThingsRequest & WithAttributeName(const char *value)
Definition: ListThingsRequest.h:160
Aws::IoT::Model::ListThingsRequest::WithAttributeName
ListThingsRequest & WithAttributeName(Aws::String &&value)
Definition: ListThingsRequest.h:155
Aws::IoT::Model::ListThingsRequest::WithThingTypeName
ListThingsRequest & WithThingTypeName(Aws::String &&value)
Definition: ListThingsRequest.h:237
Aws::IoT::Model::ListThingsRequest::GetThingTypeName
const Aws::String & GetThingTypeName() const
Definition: ListThingsRequest.h:207
Aws::IoT::Model::ListThingsRequest::SetThingTypeName
void SetThingTypeName(Aws::String &&value)
Definition: ListThingsRequest.h:222
Aws::IoT::Model::ListThingsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListThingsRequest.h:77
Aws::IoT::Model::ListThingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListThingsRequest.h:37
Aws::IoT::Model::ListThingsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListThingsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListThingsRequest.h:109
Aws::IoT::Model::ListThingsRequest::WithNextToken
ListThingsRequest & WithNextToken(Aws::String &&value)
Definition: ListThingsRequest.h:91
Aws::IoT::Model::ListThingsRequest::SetAttributeValue
void SetAttributeValue(const char *value)
Definition: ListThingsRequest.h:186
Aws::IoT::Model::ListThingsRequest::WithAttributeValue
ListThingsRequest & WithAttributeValue(Aws::String &&value)
Definition: ListThingsRequest.h:196
Aws::IoT::Model::ListThingsRequest::AttributeNameHasBeenSet
bool AttributeNameHasBeenSet() const
Definition: ListThingsRequest.h:130
Aws::IoT::Model::ListThingsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListThingsRequest.h:70
Aws::IoT::Model::ListThingsRequest
Definition: ListThingsRequest.h:29
Aws::IoT::Model::ListThingsRequest::SetAttributeValue
void SetAttributeValue(Aws::String &&value)
Definition: ListThingsRequest.h:181
Aws::IoT::Model::ListThingsRequest::WithAttributeValue
ListThingsRequest & WithAttributeValue(const Aws::String &value)
Definition: ListThingsRequest.h:191
Aws::IoT::Model::ListThingsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListThingsRequest.h:63
Aws::IoT::Model::ListThingsRequest::SetAttributeName
void SetAttributeName(const char *value)
Definition: ListThingsRequest.h:145
AWSString.h
Aws::IoT::Model::ListThingsRequest::GetAttributeName
const Aws::String & GetAttributeName() const
Definition: ListThingsRequest.h:125
Aws::IoT::Model::ListThingsRequest::WithAttributeValue
ListThingsRequest & WithAttributeValue(const char *value)
Definition: ListThingsRequest.h:201
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListThingsRequest::ListThingsRequest
ListThingsRequest()
Aws::IoT::Model::ListThingsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListThingsRequest::WithMaxResults
ListThingsRequest & WithMaxResults(int value)
Definition: ListThingsRequest.h:119
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ListThingsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListThingsRequest.h:49
Aws::IoT::Model::ListThingsRequest::SetUsePrefixAttributeValue
void SetUsePrefixAttributeValue(bool value)
Definition: ListThingsRequest.h:270
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListThingsRequest::WithNextToken
ListThingsRequest & WithNextToken(const char *value)
Definition: ListThingsRequest.h:98
Aws::IoT::Model::ListThingsRequest::WithUsePrefixAttributeValue
ListThingsRequest & WithUsePrefixAttributeValue(bool value)
Definition: ListThingsRequest.h:279
Aws::IoT::Model::ListThingsRequest::GetAttributeValue
const Aws::String & GetAttributeValue() const
Definition: ListThingsRequest.h:166
IoTRequest.h
Aws::IoT::Model::ListThingsRequest::SetAttributeValue
void SetAttributeValue(const Aws::String &value)
Definition: ListThingsRequest.h:176
Aws::IoT::Model::ListThingsRequest::SetThingTypeName
void SetThingTypeName(const char *value)
Definition: ListThingsRequest.h:227
Aws::IoT::Model::ListThingsRequest::WithThingTypeName
ListThingsRequest & WithThingTypeName(const char *value)
Definition: ListThingsRequest.h:242
Aws::IoT::Model::ListThingsRequest::WithThingTypeName
ListThingsRequest & WithThingTypeName(const Aws::String &value)
Definition: ListThingsRequest.h:232
Aws::IoT::Model::ListThingsRequest::WithAttributeName
ListThingsRequest & WithAttributeName(const Aws::String &value)
Definition: ListThingsRequest.h:150
IoT_EXPORTS.h