AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListUsersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wickr/WickrRequest.h>
9#include <aws/wickr/Wickr_EXPORTS.h>
10#include <aws/wickr/model/SortDirection.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace Wickr {
19namespace Model {
20
24 public:
25 AWS_WICKR_API ListUsersRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListUsers"; }
32
33 AWS_WICKR_API Aws::String SerializePayload() const override;
34
35 AWS_WICKR_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetNetworkId() const { return m_networkId; }
42 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
43 template <typename NetworkIdT = Aws::String>
44 void SetNetworkId(NetworkIdT&& value) {
45 m_networkIdHasBeenSet = true;
46 m_networkId = std::forward<NetworkIdT>(value);
47 }
48 template <typename NetworkIdT = Aws::String>
49 ListUsersRequest& WithNetworkId(NetworkIdT&& value) {
50 SetNetworkId(std::forward<NetworkIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetNextToken() const { return m_nextToken; }
61 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
62 template <typename NextTokenT = Aws::String>
63 void SetNextToken(NextTokenT&& value) {
64 m_nextTokenHasBeenSet = true;
65 m_nextToken = std::forward<NextTokenT>(value);
66 }
67 template <typename NextTokenT = Aws::String>
68 ListUsersRequest& WithNextToken(NextTokenT&& value) {
69 SetNextToken(std::forward<NextTokenT>(value));
70 return *this;
71 }
73
75
79 inline int GetMaxResults() const { return m_maxResults; }
80 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
81 inline void SetMaxResults(int value) {
82 m_maxResultsHasBeenSet = true;
83 m_maxResults = value;
84 }
85 inline ListUsersRequest& WithMaxResults(int value) {
86 SetMaxResults(value);
87 return *this;
88 }
90
92
97 inline const Aws::String& GetSortFields() const { return m_sortFields; }
98 inline bool SortFieldsHasBeenSet() const { return m_sortFieldsHasBeenSet; }
99 template <typename SortFieldsT = Aws::String>
100 void SetSortFields(SortFieldsT&& value) {
101 m_sortFieldsHasBeenSet = true;
102 m_sortFields = std::forward<SortFieldsT>(value);
103 }
104 template <typename SortFieldsT = Aws::String>
105 ListUsersRequest& WithSortFields(SortFieldsT&& value) {
106 SetSortFields(std::forward<SortFieldsT>(value));
107 return *this;
108 }
110
112
116 inline SortDirection GetSortDirection() const { return m_sortDirection; }
117 inline bool SortDirectionHasBeenSet() const { return m_sortDirectionHasBeenSet; }
118 inline void SetSortDirection(SortDirection value) {
119 m_sortDirectionHasBeenSet = true;
120 m_sortDirection = value;
121 }
123 SetSortDirection(value);
124 return *this;
125 }
127
129
133 inline const Aws::String& GetFirstName() const { return m_firstName; }
134 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
135 template <typename FirstNameT = Aws::String>
136 void SetFirstName(FirstNameT&& value) {
137 m_firstNameHasBeenSet = true;
138 m_firstName = std::forward<FirstNameT>(value);
139 }
140 template <typename FirstNameT = Aws::String>
141 ListUsersRequest& WithFirstName(FirstNameT&& value) {
142 SetFirstName(std::forward<FirstNameT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetLastName() const { return m_lastName; }
152 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
153 template <typename LastNameT = Aws::String>
154 void SetLastName(LastNameT&& value) {
155 m_lastNameHasBeenSet = true;
156 m_lastName = std::forward<LastNameT>(value);
157 }
158 template <typename LastNameT = Aws::String>
159 ListUsersRequest& WithLastName(LastNameT&& value) {
160 SetLastName(std::forward<LastNameT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetUsername() const { return m_username; }
170 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
171 template <typename UsernameT = Aws::String>
172 void SetUsername(UsernameT&& value) {
173 m_usernameHasBeenSet = true;
174 m_username = std::forward<UsernameT>(value);
175 }
176 template <typename UsernameT = Aws::String>
177 ListUsersRequest& WithUsername(UsernameT&& value) {
178 SetUsername(std::forward<UsernameT>(value));
179 return *this;
180 }
182
184
188 inline int GetStatus() const { return m_status; }
189 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
190 inline void SetStatus(int value) {
191 m_statusHasBeenSet = true;
192 m_status = value;
193 }
194 inline ListUsersRequest& WithStatus(int value) {
195 SetStatus(value);
196 return *this;
197 }
199
201
204 inline const Aws::String& GetGroupId() const { return m_groupId; }
205 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
206 template <typename GroupIdT = Aws::String>
207 void SetGroupId(GroupIdT&& value) {
208 m_groupIdHasBeenSet = true;
209 m_groupId = std::forward<GroupIdT>(value);
210 }
211 template <typename GroupIdT = Aws::String>
212 ListUsersRequest& WithGroupId(GroupIdT&& value) {
213 SetGroupId(std::forward<GroupIdT>(value));
214 return *this;
215 }
217 private:
218 Aws::String m_networkId;
219
220 Aws::String m_nextToken;
221
222 int m_maxResults{0};
223
224 Aws::String m_sortFields;
225
226 SortDirection m_sortDirection{SortDirection::NOT_SET};
227
228 Aws::String m_firstName;
229
230 Aws::String m_lastName;
231
232 Aws::String m_username;
233
234 int m_status{0};
235
236 Aws::String m_groupId;
237 bool m_networkIdHasBeenSet = false;
238 bool m_nextTokenHasBeenSet = false;
239 bool m_maxResultsHasBeenSet = false;
240 bool m_sortFieldsHasBeenSet = false;
241 bool m_sortDirectionHasBeenSet = false;
242 bool m_firstNameHasBeenSet = false;
243 bool m_lastNameHasBeenSet = false;
244 bool m_usernameHasBeenSet = false;
245 bool m_statusHasBeenSet = false;
246 bool m_groupIdHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace Wickr
251} // namespace Aws
const Aws::String & GetNetworkId() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetGroupId() const
AWS_WICKR_API ListUsersRequest()=default
ListUsersRequest & WithNetworkId(NetworkIdT &&value)
const Aws::String & GetFirstName() const
ListUsersRequest & WithGroupId(GroupIdT &&value)
void SetNextToken(NextTokenT &&value)
void SetFirstName(FirstNameT &&value)
void SetNetworkId(NetworkIdT &&value)
ListUsersRequest & WithSortDirection(SortDirection value)
AWS_WICKR_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_WICKR_API Aws::String SerializePayload() const override
ListUsersRequest & WithStatus(int value)
const Aws::String & GetSortFields() const
void SetSortFields(SortFieldsT &&value)
ListUsersRequest & WithLastName(LastNameT &&value)
const Aws::String & GetLastName() const
ListUsersRequest & WithMaxResults(int value)
const Aws::String & GetNextToken() const
void SetSortDirection(SortDirection value)
ListUsersRequest & WithUsername(UsernameT &&value)
ListUsersRequest & WithFirstName(FirstNameT &&value)
ListUsersRequest & WithSortFields(SortFieldsT &&value)
ListUsersRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetUsername() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String