AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DescribeUserResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workmail/WorkMail_EXPORTS.h>
11#include <aws/workmail/model/EntityState.h>
12#include <aws/workmail/model/UserRole.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace WorkMail {
26namespace Model {
28 public:
29 AWS_WORKMAIL_API DescribeUserResult() = default;
32
34
37 inline const Aws::String& GetUserId() const { return m_userId; }
38 template <typename UserIdT = Aws::String>
39 void SetUserId(UserIdT&& value) {
40 m_userIdHasBeenSet = true;
41 m_userId = std::forward<UserIdT>(value);
42 }
43 template <typename UserIdT = Aws::String>
44 DescribeUserResult& WithUserId(UserIdT&& value) {
45 SetUserId(std::forward<UserIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 template <typename NameT = Aws::String>
56 void SetName(NameT&& value) {
57 m_nameHasBeenSet = true;
58 m_name = std::forward<NameT>(value);
59 }
60 template <typename NameT = Aws::String>
61 DescribeUserResult& WithName(NameT&& value) {
62 SetName(std::forward<NameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetEmail() const { return m_email; }
72 template <typename EmailT = Aws::String>
73 void SetEmail(EmailT&& value) {
74 m_emailHasBeenSet = true;
75 m_email = std::forward<EmailT>(value);
76 }
77 template <typename EmailT = Aws::String>
78 DescribeUserResult& WithEmail(EmailT&& value) {
79 SetEmail(std::forward<EmailT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetDisplayName() const { return m_displayName; }
89 template <typename DisplayNameT = Aws::String>
90 void SetDisplayName(DisplayNameT&& value) {
91 m_displayNameHasBeenSet = true;
92 m_displayName = std::forward<DisplayNameT>(value);
93 }
94 template <typename DisplayNameT = Aws::String>
95 DescribeUserResult& WithDisplayName(DisplayNameT&& value) {
96 SetDisplayName(std::forward<DisplayNameT>(value));
97 return *this;
98 }
100
102
106 inline EntityState GetState() const { return m_state; }
107 inline void SetState(EntityState value) {
108 m_stateHasBeenSet = true;
109 m_state = value;
110 }
112 SetState(value);
113 return *this;
114 }
116
118
126 inline UserRole GetUserRole() const { return m_userRole; }
127 inline void SetUserRole(UserRole value) {
128 m_userRoleHasBeenSet = true;
129 m_userRole = value;
130 }
132 SetUserRole(value);
133 return *this;
134 }
136
138
142 inline const Aws::Utils::DateTime& GetEnabledDate() const { return m_enabledDate; }
143 template <typename EnabledDateT = Aws::Utils::DateTime>
144 void SetEnabledDate(EnabledDateT&& value) {
145 m_enabledDateHasBeenSet = true;
146 m_enabledDate = std::forward<EnabledDateT>(value);
147 }
148 template <typename EnabledDateT = Aws::Utils::DateTime>
149 DescribeUserResult& WithEnabledDate(EnabledDateT&& value) {
150 SetEnabledDate(std::forward<EnabledDateT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::Utils::DateTime& GetDisabledDate() const { return m_disabledDate; }
161 template <typename DisabledDateT = Aws::Utils::DateTime>
162 void SetDisabledDate(DisabledDateT&& value) {
163 m_disabledDateHasBeenSet = true;
164 m_disabledDate = std::forward<DisabledDateT>(value);
165 }
166 template <typename DisabledDateT = Aws::Utils::DateTime>
167 DescribeUserResult& WithDisabledDate(DisabledDateT&& value) {
168 SetDisabledDate(std::forward<DisabledDateT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Utils::DateTime& GetMailboxProvisionedDate() const { return m_mailboxProvisionedDate; }
178 template <typename MailboxProvisionedDateT = Aws::Utils::DateTime>
179 void SetMailboxProvisionedDate(MailboxProvisionedDateT&& value) {
180 m_mailboxProvisionedDateHasBeenSet = true;
181 m_mailboxProvisionedDate = std::forward<MailboxProvisionedDateT>(value);
182 }
183 template <typename MailboxProvisionedDateT = Aws::Utils::DateTime>
184 DescribeUserResult& WithMailboxProvisionedDate(MailboxProvisionedDateT&& value) {
185 SetMailboxProvisionedDate(std::forward<MailboxProvisionedDateT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::Utils::DateTime& GetMailboxDeprovisionedDate() const { return m_mailboxDeprovisionedDate; }
195 template <typename MailboxDeprovisionedDateT = Aws::Utils::DateTime>
196 void SetMailboxDeprovisionedDate(MailboxDeprovisionedDateT&& value) {
197 m_mailboxDeprovisionedDateHasBeenSet = true;
198 m_mailboxDeprovisionedDate = std::forward<MailboxDeprovisionedDateT>(value);
199 }
200 template <typename MailboxDeprovisionedDateT = Aws::Utils::DateTime>
201 DescribeUserResult& WithMailboxDeprovisionedDate(MailboxDeprovisionedDateT&& value) {
202 SetMailboxDeprovisionedDate(std::forward<MailboxDeprovisionedDateT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::String& GetFirstName() const { return m_firstName; }
212 template <typename FirstNameT = Aws::String>
213 void SetFirstName(FirstNameT&& value) {
214 m_firstNameHasBeenSet = true;
215 m_firstName = std::forward<FirstNameT>(value);
216 }
217 template <typename FirstNameT = Aws::String>
218 DescribeUserResult& WithFirstName(FirstNameT&& value) {
219 SetFirstName(std::forward<FirstNameT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::String& GetLastName() const { return m_lastName; }
229 template <typename LastNameT = Aws::String>
230 void SetLastName(LastNameT&& value) {
231 m_lastNameHasBeenSet = true;
232 m_lastName = std::forward<LastNameT>(value);
233 }
234 template <typename LastNameT = Aws::String>
235 DescribeUserResult& WithLastName(LastNameT&& value) {
236 SetLastName(std::forward<LastNameT>(value));
237 return *this;
238 }
240
242
245 inline bool GetHiddenFromGlobalAddressList() const { return m_hiddenFromGlobalAddressList; }
246 inline void SetHiddenFromGlobalAddressList(bool value) {
247 m_hiddenFromGlobalAddressListHasBeenSet = true;
248 m_hiddenFromGlobalAddressList = value;
249 }
252 return *this;
253 }
255
257
260 inline const Aws::String& GetInitials() const { return m_initials; }
261 template <typename InitialsT = Aws::String>
262 void SetInitials(InitialsT&& value) {
263 m_initialsHasBeenSet = true;
264 m_initials = std::forward<InitialsT>(value);
265 }
266 template <typename InitialsT = Aws::String>
267 DescribeUserResult& WithInitials(InitialsT&& value) {
268 SetInitials(std::forward<InitialsT>(value));
269 return *this;
270 }
272
274
277 inline const Aws::String& GetTelephone() const { return m_telephone; }
278 template <typename TelephoneT = Aws::String>
279 void SetTelephone(TelephoneT&& value) {
280 m_telephoneHasBeenSet = true;
281 m_telephone = std::forward<TelephoneT>(value);
282 }
283 template <typename TelephoneT = Aws::String>
284 DescribeUserResult& WithTelephone(TelephoneT&& value) {
285 SetTelephone(std::forward<TelephoneT>(value));
286 return *this;
287 }
289
291
294 inline const Aws::String& GetStreet() const { return m_street; }
295 template <typename StreetT = Aws::String>
296 void SetStreet(StreetT&& value) {
297 m_streetHasBeenSet = true;
298 m_street = std::forward<StreetT>(value);
299 }
300 template <typename StreetT = Aws::String>
301 DescribeUserResult& WithStreet(StreetT&& value) {
302 SetStreet(std::forward<StreetT>(value));
303 return *this;
304 }
306
308
311 inline const Aws::String& GetJobTitle() const { return m_jobTitle; }
312 template <typename JobTitleT = Aws::String>
313 void SetJobTitle(JobTitleT&& value) {
314 m_jobTitleHasBeenSet = true;
315 m_jobTitle = std::forward<JobTitleT>(value);
316 }
317 template <typename JobTitleT = Aws::String>
318 DescribeUserResult& WithJobTitle(JobTitleT&& value) {
319 SetJobTitle(std::forward<JobTitleT>(value));
320 return *this;
321 }
323
325
328 inline const Aws::String& GetCity() const { return m_city; }
329 template <typename CityT = Aws::String>
330 void SetCity(CityT&& value) {
331 m_cityHasBeenSet = true;
332 m_city = std::forward<CityT>(value);
333 }
334 template <typename CityT = Aws::String>
335 DescribeUserResult& WithCity(CityT&& value) {
336 SetCity(std::forward<CityT>(value));
337 return *this;
338 }
340
342
345 inline const Aws::String& GetCompany() const { return m_company; }
346 template <typename CompanyT = Aws::String>
347 void SetCompany(CompanyT&& value) {
348 m_companyHasBeenSet = true;
349 m_company = std::forward<CompanyT>(value);
350 }
351 template <typename CompanyT = Aws::String>
352 DescribeUserResult& WithCompany(CompanyT&& value) {
353 SetCompany(std::forward<CompanyT>(value));
354 return *this;
355 }
357
359
362 inline const Aws::String& GetZipCode() const { return m_zipCode; }
363 template <typename ZipCodeT = Aws::String>
364 void SetZipCode(ZipCodeT&& value) {
365 m_zipCodeHasBeenSet = true;
366 m_zipCode = std::forward<ZipCodeT>(value);
367 }
368 template <typename ZipCodeT = Aws::String>
369 DescribeUserResult& WithZipCode(ZipCodeT&& value) {
370 SetZipCode(std::forward<ZipCodeT>(value));
371 return *this;
372 }
374
376
379 inline const Aws::String& GetDepartment() const { return m_department; }
380 template <typename DepartmentT = Aws::String>
381 void SetDepartment(DepartmentT&& value) {
382 m_departmentHasBeenSet = true;
383 m_department = std::forward<DepartmentT>(value);
384 }
385 template <typename DepartmentT = Aws::String>
386 DescribeUserResult& WithDepartment(DepartmentT&& value) {
387 SetDepartment(std::forward<DepartmentT>(value));
388 return *this;
389 }
391
393
396 inline const Aws::String& GetCountry() const { return m_country; }
397 template <typename CountryT = Aws::String>
398 void SetCountry(CountryT&& value) {
399 m_countryHasBeenSet = true;
400 m_country = std::forward<CountryT>(value);
401 }
402 template <typename CountryT = Aws::String>
403 DescribeUserResult& WithCountry(CountryT&& value) {
404 SetCountry(std::forward<CountryT>(value));
405 return *this;
406 }
408
410
413 inline const Aws::String& GetOffice() const { return m_office; }
414 template <typename OfficeT = Aws::String>
415 void SetOffice(OfficeT&& value) {
416 m_officeHasBeenSet = true;
417 m_office = std::forward<OfficeT>(value);
418 }
419 template <typename OfficeT = Aws::String>
420 DescribeUserResult& WithOffice(OfficeT&& value) {
421 SetOffice(std::forward<OfficeT>(value));
422 return *this;
423 }
425
427
432 inline const Aws::String& GetIdentityProviderUserId() const { return m_identityProviderUserId; }
433 template <typename IdentityProviderUserIdT = Aws::String>
434 void SetIdentityProviderUserId(IdentityProviderUserIdT&& value) {
435 m_identityProviderUserIdHasBeenSet = true;
436 m_identityProviderUserId = std::forward<IdentityProviderUserIdT>(value);
437 }
438 template <typename IdentityProviderUserIdT = Aws::String>
439 DescribeUserResult& WithIdentityProviderUserId(IdentityProviderUserIdT&& value) {
440 SetIdentityProviderUserId(std::forward<IdentityProviderUserIdT>(value));
441 return *this;
442 }
444
446
451 inline const Aws::String& GetIdentityProviderIdentityStoreId() const { return m_identityProviderIdentityStoreId; }
452 template <typename IdentityProviderIdentityStoreIdT = Aws::String>
453 void SetIdentityProviderIdentityStoreId(IdentityProviderIdentityStoreIdT&& value) {
454 m_identityProviderIdentityStoreIdHasBeenSet = true;
455 m_identityProviderIdentityStoreId = std::forward<IdentityProviderIdentityStoreIdT>(value);
456 }
457 template <typename IdentityProviderIdentityStoreIdT = Aws::String>
458 DescribeUserResult& WithIdentityProviderIdentityStoreId(IdentityProviderIdentityStoreIdT&& value) {
459 SetIdentityProviderIdentityStoreId(std::forward<IdentityProviderIdentityStoreIdT>(value));
460 return *this;
461 }
463
465
466 inline const Aws::String& GetRequestId() const { return m_requestId; }
467 template <typename RequestIdT = Aws::String>
468 void SetRequestId(RequestIdT&& value) {
469 m_requestIdHasBeenSet = true;
470 m_requestId = std::forward<RequestIdT>(value);
471 }
472 template <typename RequestIdT = Aws::String>
473 DescribeUserResult& WithRequestId(RequestIdT&& value) {
474 SetRequestId(std::forward<RequestIdT>(value));
475 return *this;
476 }
478 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
479
480 private:
481 Aws::String m_userId;
482
483 Aws::String m_name;
484
485 Aws::String m_email;
486
487 Aws::String m_displayName;
488
490
491 UserRole m_userRole{UserRole::NOT_SET};
492
493 Aws::Utils::DateTime m_enabledDate{};
494
495 Aws::Utils::DateTime m_disabledDate{};
496
497 Aws::Utils::DateTime m_mailboxProvisionedDate{};
498
499 Aws::Utils::DateTime m_mailboxDeprovisionedDate{};
500
501 Aws::String m_firstName;
502
503 Aws::String m_lastName;
504
505 bool m_hiddenFromGlobalAddressList{false};
506
507 Aws::String m_initials;
508
509 Aws::String m_telephone;
510
511 Aws::String m_street;
512
513 Aws::String m_jobTitle;
514
515 Aws::String m_city;
516
517 Aws::String m_company;
518
519 Aws::String m_zipCode;
520
521 Aws::String m_department;
522
523 Aws::String m_country;
524
525 Aws::String m_office;
526
527 Aws::String m_identityProviderUserId;
528
529 Aws::String m_identityProviderIdentityStoreId;
530
531 Aws::String m_requestId;
532 Aws::Http::HttpResponseCode m_HttpResponseCode;
533 bool m_userIdHasBeenSet = false;
534 bool m_nameHasBeenSet = false;
535 bool m_emailHasBeenSet = false;
536 bool m_displayNameHasBeenSet = false;
537 bool m_stateHasBeenSet = false;
538 bool m_userRoleHasBeenSet = false;
539 bool m_enabledDateHasBeenSet = false;
540 bool m_disabledDateHasBeenSet = false;
541 bool m_mailboxProvisionedDateHasBeenSet = false;
542 bool m_mailboxDeprovisionedDateHasBeenSet = false;
543 bool m_firstNameHasBeenSet = false;
544 bool m_lastNameHasBeenSet = false;
545 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
546 bool m_initialsHasBeenSet = false;
547 bool m_telephoneHasBeenSet = false;
548 bool m_streetHasBeenSet = false;
549 bool m_jobTitleHasBeenSet = false;
550 bool m_cityHasBeenSet = false;
551 bool m_companyHasBeenSet = false;
552 bool m_zipCodeHasBeenSet = false;
553 bool m_departmentHasBeenSet = false;
554 bool m_countryHasBeenSet = false;
555 bool m_officeHasBeenSet = false;
556 bool m_identityProviderUserIdHasBeenSet = false;
557 bool m_identityProviderIdentityStoreIdHasBeenSet = false;
558 bool m_requestIdHasBeenSet = false;
559};
560
561} // namespace Model
562} // namespace WorkMail
563} // namespace Aws
DescribeUserResult & WithLastName(LastNameT &&value)
DescribeUserResult & WithInitials(InitialsT &&value)
DescribeUserResult & WithIdentityProviderUserId(IdentityProviderUserIdT &&value)
const Aws::String & GetIdentityProviderUserId() const
DescribeUserResult & WithName(NameT &&value)
DescribeUserResult & WithMailboxDeprovisionedDate(MailboxDeprovisionedDateT &&value)
const Aws::Utils::DateTime & GetDisabledDate() const
DescribeUserResult & WithJobTitle(JobTitleT &&value)
const Aws::Utils::DateTime & GetMailboxProvisionedDate() const
DescribeUserResult & WithDepartment(DepartmentT &&value)
DescribeUserResult & WithUserRole(UserRole value)
void SetIdentityProviderUserId(IdentityProviderUserIdT &&value)
DescribeUserResult & WithEmail(EmailT &&value)
DescribeUserResult & WithDisabledDate(DisabledDateT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_WORKMAIL_API DescribeUserResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetMailboxDeprovisionedDate(MailboxDeprovisionedDateT &&value)
AWS_WORKMAIL_API DescribeUserResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetIdentityProviderIdentityStoreId(IdentityProviderIdentityStoreIdT &&value)
DescribeUserResult & WithRequestId(RequestIdT &&value)
DescribeUserResult & WithHiddenFromGlobalAddressList(bool value)
DescribeUserResult & WithStreet(StreetT &&value)
DescribeUserResult & WithZipCode(ZipCodeT &&value)
DescribeUserResult & WithUserId(UserIdT &&value)
DescribeUserResult & WithIdentityProviderIdentityStoreId(IdentityProviderIdentityStoreIdT &&value)
DescribeUserResult & WithCity(CityT &&value)
const Aws::Utils::DateTime & GetEnabledDate() const
DescribeUserResult & WithCompany(CompanyT &&value)
DescribeUserResult & WithFirstName(FirstNameT &&value)
const Aws::String & GetIdentityProviderIdentityStoreId() const
DescribeUserResult & WithMailboxProvisionedDate(MailboxProvisionedDateT &&value)
DescribeUserResult & WithDisplayName(DisplayNameT &&value)
void SetMailboxProvisionedDate(MailboxProvisionedDateT &&value)
AWS_WORKMAIL_API DescribeUserResult()=default
void SetDisabledDate(DisabledDateT &&value)
DescribeUserResult & WithOffice(OfficeT &&value)
DescribeUserResult & WithState(EntityState value)
DescribeUserResult & WithCountry(CountryT &&value)
DescribeUserResult & WithEnabledDate(EnabledDateT &&value)
const Aws::Utils::DateTime & GetMailboxDeprovisionedDate() const
DescribeUserResult & WithTelephone(TelephoneT &&value)
const Aws::String & GetDisplayName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue