AWS SDK for C++  1.9.109
AWS SDK for C++
ListPrincipalThingsRequest.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 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "ListPrincipalThings"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
45 
46 
52  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
53 
59  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 
66  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
67 
73  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
74 
80  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
81 
87  inline ListPrincipalThingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
88 
94  inline ListPrincipalThingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
95 
101  inline ListPrincipalThingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
102 
103 
107  inline int GetMaxResults() const{ return m_maxResults; }
108 
112  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
113 
117  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
118 
122  inline ListPrincipalThingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
123 
124 
128  inline const Aws::String& GetPrincipal() const{ return m_principal; }
129 
133  inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
134 
138  inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
139 
143  inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
144 
148  inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
149 
153  inline ListPrincipalThingsRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
154 
158  inline ListPrincipalThingsRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
159 
163  inline ListPrincipalThingsRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
164 
165  private:
166 
167  Aws::String m_nextToken;
168  bool m_nextTokenHasBeenSet;
169 
170  int m_maxResults;
171  bool m_maxResultsHasBeenSet;
172 
173  Aws::String m_principal;
174  bool m_principalHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace IoT
179 } // namespace Aws
Aws::IoT::Model::ListPrincipalThingsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListPrincipalThingsRequest.h:117
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListPrincipalThingsRequest::SetPrincipal
void SetPrincipal(const Aws::String &value)
Definition: ListPrincipalThingsRequest.h:138
Aws::IoT::Model::ListPrincipalThingsRequest::WithPrincipal
ListPrincipalThingsRequest & WithPrincipal(const char *value)
Definition: ListPrincipalThingsRequest.h:163
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::IoT::Model::ListPrincipalThingsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::IoT::Model::ListPrincipalThingsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPrincipalThingsRequest.h:52
Aws::IoT::Model::ListPrincipalThingsRequest::PrincipalHasBeenSet
bool PrincipalHasBeenSet() const
Definition: ListPrincipalThingsRequest.h:133
Aws::IoT::Model::ListPrincipalThingsRequest::WithNextToken
ListPrincipalThingsRequest & WithNextToken(Aws::String &&value)
Definition: ListPrincipalThingsRequest.h:94
Aws::IoT::Model::ListPrincipalThingsRequest::WithNextToken
ListPrincipalThingsRequest & WithNextToken(const Aws::String &value)
Definition: ListPrincipalThingsRequest.h:87
Aws::IoT::Model::ListPrincipalThingsRequest::WithNextToken
ListPrincipalThingsRequest & WithNextToken(const char *value)
Definition: ListPrincipalThingsRequest.h:101
Aws::IoT::Model::ListPrincipalThingsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListPrincipalThingsRequest.h:80
Aws::IoT::Model::ListPrincipalThingsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListPrincipalThingsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListPrincipalThingsRequest.h:107
Aws::IoT::Model::ListPrincipalThingsRequest::WithPrincipal
ListPrincipalThingsRequest & WithPrincipal(const Aws::String &value)
Definition: ListPrincipalThingsRequest.h:153
AWSString.h
Aws::IoT::Model::ListPrincipalThingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPrincipalThingsRequest.h:38
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListPrincipalThingsRequest::ListPrincipalThingsRequest
ListPrincipalThingsRequest()
Aws::IoT::Model::ListPrincipalThingsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListPrincipalThingsRequest.h:59
Aws::IoT::Model::ListPrincipalThingsRequest::GetPrincipal
const Aws::String & GetPrincipal() const
Definition: ListPrincipalThingsRequest.h:128
Aws::IoT::Model::ListPrincipalThingsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListPrincipalThingsRequest.h:112
Aws::IoT::Model::ListPrincipalThingsRequest::SetPrincipal
void SetPrincipal(const char *value)
Definition: ListPrincipalThingsRequest.h:148
Aws::IoT::Model::ListPrincipalThingsRequest::WithPrincipal
ListPrincipalThingsRequest & WithPrincipal(Aws::String &&value)
Definition: ListPrincipalThingsRequest.h:158
Aws::IoT::Model::ListPrincipalThingsRequest::WithMaxResults
ListPrincipalThingsRequest & WithMaxResults(int value)
Definition: ListPrincipalThingsRequest.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListPrincipalThingsRequest::SetPrincipal
void SetPrincipal(Aws::String &&value)
Definition: ListPrincipalThingsRequest.h:143
Aws::IoT::Model::ListPrincipalThingsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
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::ListPrincipalThingsRequest
Definition: ListPrincipalThingsRequest.h:30
IoTRequest.h
Aws::IoT::Model::ListPrincipalThingsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPrincipalThingsRequest.h:66
Aws::IoT::Model::ListPrincipalThingsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPrincipalThingsRequest.h:73
IoT_EXPORTS.h