AWS SDK for C++  1.9.129
AWS SDK for C++
ListThingGroupsForThingRequest.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 "ListThingGroupsForThing"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetThingName() const{ return m_thingName; }
45 
49  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
50 
54  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
55 
59  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
60 
64  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
65 
69  inline ListThingGroupsForThingRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
70 
74  inline ListThingGroupsForThingRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
75 
79  inline ListThingGroupsForThingRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
80 
81 
87  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
88 
94  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 
101  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
102 
108  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
109 
115  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
116 
122  inline ListThingGroupsForThingRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
123 
129  inline ListThingGroupsForThingRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
130 
136  inline ListThingGroupsForThingRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
137 
138 
142  inline int GetMaxResults() const{ return m_maxResults; }
143 
147  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
148 
152  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
153 
157  inline ListThingGroupsForThingRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
158 
159  private:
160 
161  Aws::String m_thingName;
162  bool m_thingNameHasBeenSet;
163 
164  Aws::String m_nextToken;
165  bool m_nextTokenHasBeenSet;
166 
167  int m_maxResults;
168  bool m_maxResultsHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace IoT
173 } // namespace Aws
Aws::IoT::Model::ListThingGroupsForThingRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListThingGroupsForThingRequest.h:87
Aws::IoT::Model::ListThingGroupsForThingRequest::WithThingName
ListThingGroupsForThingRequest & WithThingName(const Aws::String &value)
Definition: ListThingGroupsForThingRequest.h:69
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListThingGroupsForThingRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListThingGroupsForThingRequest.h:115
Aws::IoT::Model::ListThingGroupsForThingRequest::WithNextToken
ListThingGroupsForThingRequest & WithNextToken(Aws::String &&value)
Definition: ListThingGroupsForThingRequest.h:129
Aws::IoT::Model::ListThingGroupsForThingRequest::WithNextToken
ListThingGroupsForThingRequest & WithNextToken(const Aws::String &value)
Definition: ListThingGroupsForThingRequest.h:122
Aws::IoT::Model::ListThingGroupsForThingRequest
Definition: ListThingGroupsForThingRequest.h:26
Aws::IoT::Model::ListThingGroupsForThingRequest::WithNextToken
ListThingGroupsForThingRequest & WithNextToken(const char *value)
Definition: ListThingGroupsForThingRequest.h:136
Aws::IoT::Model::ListThingGroupsForThingRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListThingGroupsForThingRequest.h:147
Aws::IoT::Model::ListThingGroupsForThingRequest::WithThingName
ListThingGroupsForThingRequest & WithThingName(const char *value)
Definition: ListThingGroupsForThingRequest.h:79
Aws::IoT::Model::ListThingGroupsForThingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListThingGroupsForThingRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListThingGroupsForThingRequest.h:108
Aws::IoT::Model::ListThingGroupsForThingRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListThingGroupsForThingRequest::GetThingName
const Aws::String & GetThingName() const
Definition: ListThingGroupsForThingRequest.h:44
Aws::IoT::Model::ListThingGroupsForThingRequest::SetThingName
void SetThingName(const char *value)
Definition: ListThingGroupsForThingRequest.h:64
Aws::IoT::Model::ListThingGroupsForThingRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListThingGroupsForThingRequest.h:101
Aws::IoT::Model::ListThingGroupsForThingRequest::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: ListThingGroupsForThingRequest.h:49
Aws::IoT::Model::ListThingGroupsForThingRequest::ListThingGroupsForThingRequest
ListThingGroupsForThingRequest()
Aws::IoT::Model::ListThingGroupsForThingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListThingGroupsForThingRequest.h:34
Aws::IoT::Model::ListThingGroupsForThingRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListThingGroupsForThingRequest.h:94
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListThingGroupsForThingRequest::GetMaxResults
int GetMaxResults() const
Definition: ListThingGroupsForThingRequest.h:142
Aws::IoT::Model::ListThingGroupsForThingRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListThingGroupsForThingRequest.h:152
Aws::IoT::Model::ListThingGroupsForThingRequest::WithThingName
ListThingGroupsForThingRequest & WithThingName(Aws::String &&value)
Definition: ListThingGroupsForThingRequest.h:74
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListThingGroupsForThingRequest::SetThingName
void SetThingName(Aws::String &&value)
Definition: ListThingGroupsForThingRequest.h:59
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::ListThingGroupsForThingRequest::WithMaxResults
ListThingGroupsForThingRequest & WithMaxResults(int value)
Definition: ListThingGroupsForThingRequest.h:157
IoTRequest.h
IoT_EXPORTS.h
Aws::IoT::Model::ListThingGroupsForThingRequest::SetThingName
void SetThingName(const Aws::String &value)
Definition: ListThingGroupsForThingRequest.h:54