AWS SDK for C++  1.8.71
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 
47  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
48 
52  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
53 
57  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
58 
62  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
63 
67  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
68 
72  inline ListThingTypesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
73 
77  inline ListThingTypesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
78 
82  inline ListThingTypesRequest& WithNextToken(const char* value) { SetNextToken(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 ListThingTypesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
104 
105 
109  inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
110 
114  inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
115 
119  inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
120 
124  inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::move(value); }
125 
129  inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); }
130 
134  inline ListThingTypesRequest& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
135 
139  inline ListThingTypesRequest& WithThingTypeName(Aws::String&& value) { SetThingTypeName(std::move(value)); return *this;}
140 
144  inline ListThingTypesRequest& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
145 
146  private:
147 
148  Aws::String m_nextToken;
149  bool m_nextTokenHasBeenSet;
150 
151  int m_maxResults;
152  bool m_maxResultsHasBeenSet;
153 
154  Aws::String m_thingTypeName;
155  bool m_thingTypeNameHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace IoT
160 } // namespace Aws
ListThingTypesRequest & WithThingTypeName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ListThingTypesRequest & WithNextToken(Aws::String &&value)
ListThingTypesRequest & WithMaxResults(int value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
ListThingTypesRequest & WithNextToken(const Aws::String &value)
ListThingTypesRequest & WithNextToken(const char *value)
void SetThingTypeName(const Aws::String &value)
const Aws::String & GetNextToken() const
void SetNextToken(const Aws::String &value)
const Aws::String & GetThingTypeName() const
ListThingTypesRequest & WithThingTypeName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListThingTypesRequest & WithThingTypeName(Aws::String &&value)