AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
User.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wickr/Wickr_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Wickr {
21namespace Model {
22
31class User {
32 public:
33 AWS_WICKR_API User() = default;
34 AWS_WICKR_API User(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WICKR_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetUserId() const { return m_userId; }
43 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
44 template <typename UserIdT = Aws::String>
45 void SetUserId(UserIdT&& value) {
46 m_userIdHasBeenSet = true;
47 m_userId = std::forward<UserIdT>(value);
48 }
49 template <typename UserIdT = Aws::String>
50 User& WithUserId(UserIdT&& value) {
51 SetUserId(std::forward<UserIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetFirstName() const { return m_firstName; }
61 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
62 template <typename FirstNameT = Aws::String>
63 void SetFirstName(FirstNameT&& value) {
64 m_firstNameHasBeenSet = true;
65 m_firstName = std::forward<FirstNameT>(value);
66 }
67 template <typename FirstNameT = Aws::String>
68 User& WithFirstName(FirstNameT&& value) {
69 SetFirstName(std::forward<FirstNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetLastName() const { return m_lastName; }
79 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
80 template <typename LastNameT = Aws::String>
81 void SetLastName(LastNameT&& value) {
82 m_lastNameHasBeenSet = true;
83 m_lastName = std::forward<LastNameT>(value);
84 }
85 template <typename LastNameT = Aws::String>
86 User& WithLastName(LastNameT&& value) {
87 SetLastName(std::forward<LastNameT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetUsername() const { return m_username; }
98 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
99 template <typename UsernameT = Aws::String>
100 void SetUsername(UsernameT&& value) {
101 m_usernameHasBeenSet = true;
102 m_username = std::forward<UsernameT>(value);
103 }
104 template <typename UsernameT = Aws::String>
105 User& WithUsername(UsernameT&& value) {
106 SetUsername(std::forward<UsernameT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
117 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
118 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
119 void SetSecurityGroups(SecurityGroupsT&& value) {
120 m_securityGroupsHasBeenSet = true;
121 m_securityGroups = std::forward<SecurityGroupsT>(value);
122 }
123 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
124 User& WithSecurityGroups(SecurityGroupsT&& value) {
125 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
126 return *this;
127 }
128 template <typename SecurityGroupsT = Aws::String>
129 User& AddSecurityGroups(SecurityGroupsT&& value) {
130 m_securityGroupsHasBeenSet = true;
131 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
132 return *this;
133 }
135
137
140 inline bool GetIsAdmin() const { return m_isAdmin; }
141 inline bool IsAdminHasBeenSet() const { return m_isAdminHasBeenSet; }
142 inline void SetIsAdmin(bool value) {
143 m_isAdminHasBeenSet = true;
144 m_isAdmin = value;
145 }
146 inline User& WithIsAdmin(bool value) {
147 SetIsAdmin(value);
148 return *this;
149 }
151
153
157 inline bool GetSuspended() const { return m_suspended; }
158 inline bool SuspendedHasBeenSet() const { return m_suspendedHasBeenSet; }
159 inline void SetSuspended(bool value) {
160 m_suspendedHasBeenSet = true;
161 m_suspended = value;
162 }
163 inline User& WithSuspended(bool value) {
164 SetSuspended(value);
165 return *this;
166 }
168
170
173 inline int GetStatus() const { return m_status; }
174 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
175 inline void SetStatus(int value) {
176 m_statusHasBeenSet = true;
177 m_status = value;
178 }
179 inline User& WithStatus(int value) {
180 SetStatus(value);
181 return *this;
182 }
184
186
190 inline bool GetOtpEnabled() const { return m_otpEnabled; }
191 inline bool OtpEnabledHasBeenSet() const { return m_otpEnabledHasBeenSet; }
192 inline void SetOtpEnabled(bool value) {
193 m_otpEnabledHasBeenSet = true;
194 m_otpEnabled = value;
195 }
196 inline User& WithOtpEnabled(bool value) {
197 SetOtpEnabled(value);
198 return *this;
199 }
201
203
207 inline const Aws::String& GetScimId() const { return m_scimId; }
208 inline bool ScimIdHasBeenSet() const { return m_scimIdHasBeenSet; }
209 template <typename ScimIdT = Aws::String>
210 void SetScimId(ScimIdT&& value) {
211 m_scimIdHasBeenSet = true;
212 m_scimId = std::forward<ScimIdT>(value);
213 }
214 template <typename ScimIdT = Aws::String>
215 User& WithScimId(ScimIdT&& value) {
216 SetScimId(std::forward<ScimIdT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::String& GetType() const { return m_type; }
226 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
227 template <typename TypeT = Aws::String>
228 void SetType(TypeT&& value) {
229 m_typeHasBeenSet = true;
230 m_type = std::forward<TypeT>(value);
231 }
232 template <typename TypeT = Aws::String>
233 User& WithType(TypeT&& value) {
234 SetType(std::forward<TypeT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::String& GetCell() const { return m_cell; }
244 inline bool CellHasBeenSet() const { return m_cellHasBeenSet; }
245 template <typename CellT = Aws::String>
246 void SetCell(CellT&& value) {
247 m_cellHasBeenSet = true;
248 m_cell = std::forward<CellT>(value);
249 }
250 template <typename CellT = Aws::String>
251 User& WithCell(CellT&& value) {
252 SetCell(std::forward<CellT>(value));
253 return *this;
254 }
256
258
261 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
262 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
263 template <typename CountryCodeT = Aws::String>
264 void SetCountryCode(CountryCodeT&& value) {
265 m_countryCodeHasBeenSet = true;
266 m_countryCode = std::forward<CountryCodeT>(value);
267 }
268 template <typename CountryCodeT = Aws::String>
269 User& WithCountryCode(CountryCodeT&& value) {
270 SetCountryCode(std::forward<CountryCodeT>(value));
271 return *this;
272 }
274
276
280 inline int GetChallengeFailures() const { return m_challengeFailures; }
281 inline bool ChallengeFailuresHasBeenSet() const { return m_challengeFailuresHasBeenSet; }
282 inline void SetChallengeFailures(int value) {
283 m_challengeFailuresHasBeenSet = true;
284 m_challengeFailures = value;
285 }
286 inline User& WithChallengeFailures(int value) {
288 return *this;
289 }
291
293
297 inline bool GetIsInviteExpired() const { return m_isInviteExpired; }
298 inline bool IsInviteExpiredHasBeenSet() const { return m_isInviteExpiredHasBeenSet; }
299 inline void SetIsInviteExpired(bool value) {
300 m_isInviteExpiredHasBeenSet = true;
301 m_isInviteExpired = value;
302 }
303 inline User& WithIsInviteExpired(bool value) {
304 SetIsInviteExpired(value);
305 return *this;
306 }
308
310
314 inline bool GetIsUser() const { return m_isUser; }
315 inline bool IsUserHasBeenSet() const { return m_isUserHasBeenSet; }
316 inline void SetIsUser(bool value) {
317 m_isUserHasBeenSet = true;
318 m_isUser = value;
319 }
320 inline User& WithIsUser(bool value) {
321 SetIsUser(value);
322 return *this;
323 }
325
327
331 inline const Aws::String& GetInviteCode() const { return m_inviteCode; }
332 inline bool InviteCodeHasBeenSet() const { return m_inviteCodeHasBeenSet; }
333 template <typename InviteCodeT = Aws::String>
334 void SetInviteCode(InviteCodeT&& value) {
335 m_inviteCodeHasBeenSet = true;
336 m_inviteCode = std::forward<InviteCodeT>(value);
337 }
338 template <typename InviteCodeT = Aws::String>
339 User& WithInviteCode(InviteCodeT&& value) {
340 SetInviteCode(std::forward<InviteCodeT>(value));
341 return *this;
342 }
344
346
349 inline bool GetCodeValidation() const { return m_codeValidation; }
350 inline bool CodeValidationHasBeenSet() const { return m_codeValidationHasBeenSet; }
351 inline void SetCodeValidation(bool value) {
352 m_codeValidationHasBeenSet = true;
353 m_codeValidation = value;
354 }
355 inline User& WithCodeValidation(bool value) {
356 SetCodeValidation(value);
357 return *this;
358 }
360
362
365 inline const Aws::String& GetUname() const { return m_uname; }
366 inline bool UnameHasBeenSet() const { return m_unameHasBeenSet; }
367 template <typename UnameT = Aws::String>
368 void SetUname(UnameT&& value) {
369 m_unameHasBeenSet = true;
370 m_uname = std::forward<UnameT>(value);
371 }
372 template <typename UnameT = Aws::String>
373 User& WithUname(UnameT&& value) {
374 SetUname(std::forward<UnameT>(value));
375 return *this;
376 }
378 private:
379 Aws::String m_userId;
380
381 Aws::String m_firstName;
382
383 Aws::String m_lastName;
384
385 Aws::String m_username;
386
387 Aws::Vector<Aws::String> m_securityGroups;
388
389 bool m_isAdmin{false};
390
391 bool m_suspended{false};
392
393 int m_status{0};
394
395 bool m_otpEnabled{false};
396
397 Aws::String m_scimId;
398
399 Aws::String m_type;
400
401 Aws::String m_cell;
402
403 Aws::String m_countryCode;
404
405 int m_challengeFailures{0};
406
407 bool m_isInviteExpired{false};
408
409 bool m_isUser{false};
410
411 Aws::String m_inviteCode;
412
413 bool m_codeValidation{false};
414
415 Aws::String m_uname;
416 bool m_userIdHasBeenSet = false;
417 bool m_firstNameHasBeenSet = false;
418 bool m_lastNameHasBeenSet = false;
419 bool m_usernameHasBeenSet = false;
420 bool m_securityGroupsHasBeenSet = false;
421 bool m_isAdminHasBeenSet = false;
422 bool m_suspendedHasBeenSet = false;
423 bool m_statusHasBeenSet = false;
424 bool m_otpEnabledHasBeenSet = false;
425 bool m_scimIdHasBeenSet = false;
426 bool m_typeHasBeenSet = false;
427 bool m_cellHasBeenSet = false;
428 bool m_countryCodeHasBeenSet = false;
429 bool m_challengeFailuresHasBeenSet = false;
430 bool m_isInviteExpiredHasBeenSet = false;
431 bool m_isUserHasBeenSet = false;
432 bool m_inviteCodeHasBeenSet = false;
433 bool m_codeValidationHasBeenSet = false;
434 bool m_unameHasBeenSet = false;
435};
436
437} // namespace Model
438} // namespace Wickr
439} // namespace Aws
bool StatusHasBeenSet() const
Definition User.h:174
void SetCountryCode(CountryCodeT &&value)
Definition User.h:264
User & WithSecurityGroups(SecurityGroupsT &&value)
Definition User.h:124
User & WithCell(CellT &&value)
Definition User.h:251
const Aws::String & GetFirstName() const
Definition User.h:60
int GetChallengeFailures() const
Definition User.h:280
bool FirstNameHasBeenSet() const
Definition User.h:61
void SetType(TypeT &&value)
Definition User.h:228
bool CellHasBeenSet() const
Definition User.h:244
User & AddSecurityGroups(SecurityGroupsT &&value)
Definition User.h:129
bool GetOtpEnabled() const
Definition User.h:190
void SetFirstName(FirstNameT &&value)
Definition User.h:63
User & WithUname(UnameT &&value)
Definition User.h:373
bool CodeValidationHasBeenSet() const
Definition User.h:350
void SetSuspended(bool value)
Definition User.h:159
const Aws::String & GetUname() const
Definition User.h:365
void SetUname(UnameT &&value)
Definition User.h:368
bool UnameHasBeenSet() const
Definition User.h:366
User & WithUsername(UsernameT &&value)
Definition User.h:105
void SetUsername(UsernameT &&value)
Definition User.h:100
bool GetIsAdmin() const
Definition User.h:140
const Aws::Vector< Aws::String > & GetSecurityGroups() const
Definition User.h:116
const Aws::String & GetInviteCode() const
Definition User.h:331
void SetIsInviteExpired(bool value)
Definition User.h:299
void SetLastName(LastNameT &&value)
Definition User.h:81
User & WithSuspended(bool value)
Definition User.h:163
bool UsernameHasBeenSet() const
Definition User.h:98
void SetCodeValidation(bool value)
Definition User.h:351
bool GetIsUser() const
Definition User.h:314
AWS_WICKR_API User(Aws::Utils::Json::JsonView jsonValue)
bool LastNameHasBeenSet() const
Definition User.h:79
void SetIsAdmin(bool value)
Definition User.h:142
const Aws::String & GetCountryCode() const
Definition User.h:261
const Aws::String & GetType() const
Definition User.h:225
User & WithCodeValidation(bool value)
Definition User.h:355
const Aws::String & GetUsername() const
Definition User.h:97
const Aws::String & GetUserId() const
Definition User.h:42
void SetStatus(int value)
Definition User.h:175
bool SuspendedHasBeenSet() const
Definition User.h:158
bool InviteCodeHasBeenSet() const
Definition User.h:332
bool OtpEnabledHasBeenSet() const
Definition User.h:191
bool TypeHasBeenSet() const
Definition User.h:226
void SetCell(CellT &&value)
Definition User.h:246
bool SecurityGroupsHasBeenSet() const
Definition User.h:117
User & WithType(TypeT &&value)
Definition User.h:233
User & WithIsUser(bool value)
Definition User.h:320
bool CountryCodeHasBeenSet() const
Definition User.h:262
bool GetSuspended() const
Definition User.h:157
void SetScimId(ScimIdT &&value)
Definition User.h:210
void SetOtpEnabled(bool value)
Definition User.h:192
AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIsUser(bool value)
Definition User.h:316
bool GetIsInviteExpired() const
Definition User.h:297
bool UserIdHasBeenSet() const
Definition User.h:43
User & WithStatus(int value)
Definition User.h:179
bool IsAdminHasBeenSet() const
Definition User.h:141
User & WithChallengeFailures(int value)
Definition User.h:286
User & WithScimId(ScimIdT &&value)
Definition User.h:215
const Aws::String & GetCell() const
Definition User.h:243
User & WithInviteCode(InviteCodeT &&value)
Definition User.h:339
bool ScimIdHasBeenSet() const
Definition User.h:208
bool IsUserHasBeenSet() const
Definition User.h:315
void SetChallengeFailures(int value)
Definition User.h:282
const Aws::String & GetScimId() const
Definition User.h:207
AWS_WICKR_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroups(SecurityGroupsT &&value)
Definition User.h:119
User & WithUserId(UserIdT &&value)
Definition User.h:50
AWS_WICKR_API User()=default
User & WithIsInviteExpired(bool value)
Definition User.h:303
bool GetCodeValidation() const
Definition User.h:349
void SetInviteCode(InviteCodeT &&value)
Definition User.h:334
int GetStatus() const
Definition User.h:173
User & WithOtpEnabled(bool value)
Definition User.h:196
User & WithLastName(LastNameT &&value)
Definition User.h:86
void SetUserId(UserIdT &&value)
Definition User.h:45
User & WithIsAdmin(bool value)
Definition User.h:146
const Aws::String & GetLastName() const
Definition User.h:78
User & WithCountryCode(CountryCodeT &&value)
Definition User.h:269
User & WithFirstName(FirstNameT &&value)
Definition User.h:68
bool ChallengeFailuresHasBeenSet() const
Definition User.h:281
bool IsInviteExpiredHasBeenSet() const
Definition User.h:298
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue