AWS SDK for C++  1.9.20
AWS SDK for C++
ListThingTypesRequest.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 "ListThingTypes"; }
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 ListThingTypesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
85 
91  inline ListThingTypesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
92 
98  inline ListThingTypesRequest& 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 ListThingTypesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
120 
121 
125  inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
126 
130  inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
131 
135  inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
136 
140  inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::move(value); }
141 
145  inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); }
146 
150  inline ListThingTypesRequest& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
151 
155  inline ListThingTypesRequest& WithThingTypeName(Aws::String&& value) { SetThingTypeName(std::move(value)); return *this;}
156 
160  inline ListThingTypesRequest& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
161 
162  private:
163 
164  Aws::String m_nextToken;
165  bool m_nextTokenHasBeenSet;
166 
167  int m_maxResults;
168  bool m_maxResultsHasBeenSet;
169 
170  Aws::String m_thingTypeName;
171  bool m_thingTypeNameHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace IoT
176 } // namespace Aws
Aws::IoT::Model::ListThingTypesRequest::WithNextToken
ListThingTypesRequest & WithNextToken(const char *value)
Definition: ListThingTypesRequest.h:98
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListThingTypesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListThingTypesRequest.h:63
Aws::IoT::Model::ListThingTypesRequest::SetThingTypeName
void SetThingTypeName(Aws::String &&value)
Definition: ListThingTypesRequest.h:140
Aws::IoT::Model::ListThingTypesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListThingTypesRequest::WithThingTypeName
ListThingTypesRequest & WithThingTypeName(const char *value)
Definition: ListThingTypesRequest.h:160
Aws::IoT::Model::ListThingTypesRequest::ThingTypeNameHasBeenSet
bool ThingTypeNameHasBeenSet() const
Definition: ListThingTypesRequest.h:130
Aws::IoT::Model::ListThingTypesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListThingTypesRequest::GetThingTypeName
const Aws::String & GetThingTypeName() const
Definition: ListThingTypesRequest.h:125
Aws::IoT::Model::ListThingTypesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListThingTypesRequest.h:77
Aws::IoT::Model::ListThingTypesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListThingTypesRequest.h:114
Aws::IoT::Model::ListThingTypesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListThingTypesRequest.h:70
Aws::IoT::Model::ListThingTypesRequest
Definition: ListThingTypesRequest.h:29
Aws::IoT::Model::ListThingTypesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListThingTypesRequest.h:56
Aws::IoT::Model::ListThingTypesRequest::WithThingTypeName
ListThingTypesRequest & WithThingTypeName(Aws::String &&value)
Definition: ListThingTypesRequest.h:155
Aws::IoT::Model::ListThingTypesRequest::ListThingTypesRequest
ListThingTypesRequest()
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListThingTypesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListThingTypesRequest.h:109
Aws::IoT::Model::ListThingTypesRequest::WithThingTypeName
ListThingTypesRequest & WithThingTypeName(const Aws::String &value)
Definition: ListThingTypesRequest.h:150
Aws::IoT::Model::ListThingTypesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListThingTypesRequest.h:37
Aws::IoT::Model::ListThingTypesRequest::SetThingTypeName
void SetThingTypeName(const char *value)
Definition: ListThingTypesRequest.h:145
Aws::IoT::Model::ListThingTypesRequest::WithNextToken
ListThingTypesRequest & WithNextToken(Aws::String &&value)
Definition: ListThingTypesRequest.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListThingTypesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListThingTypesRequest.h:104
Aws::IoT::Model::ListThingTypesRequest::WithMaxResults
ListThingTypesRequest & WithMaxResults(int value)
Definition: ListThingTypesRequest.h:119
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::ListThingTypesRequest::WithNextToken
ListThingTypesRequest & WithNextToken(const Aws::String &value)
Definition: ListThingTypesRequest.h:84
IoTRequest.h
Aws::IoT::Model::ListThingTypesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListThingTypesRequest.h:49
Aws::IoT::Model::ListThingTypesRequest::SetThingTypeName
void SetThingTypeName(const Aws::String &value)
Definition: ListThingTypesRequest.h:135
IoT_EXPORTS.h