AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeUserResult.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workmail/model/EntityState.h>
10#include <aws/workmail/model/UserRole.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace WorkMail
27{
28namespace Model
29{
31 {
32 public:
33 AWS_WORKMAIL_API DescribeUserResult() = default;
36
37
39
42 inline const Aws::String& GetUserId() const { return m_userId; }
43 template<typename UserIdT = Aws::String>
44 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
45 template<typename UserIdT = Aws::String>
46 DescribeUserResult& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 DescribeUserResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetEmail() const { return m_email; }
65 template<typename EmailT = Aws::String>
66 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
67 template<typename EmailT = Aws::String>
68 DescribeUserResult& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
70
72
75 inline const Aws::String& GetDisplayName() const { return m_displayName; }
76 template<typename DisplayNameT = Aws::String>
77 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
78 template<typename DisplayNameT = Aws::String>
79 DescribeUserResult& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
81
83
87 inline EntityState GetState() const { return m_state; }
88 inline void SetState(EntityState value) { m_stateHasBeenSet = true; m_state = value; }
89 inline DescribeUserResult& WithState(EntityState value) { SetState(value); return *this;}
91
93
101 inline UserRole GetUserRole() const { return m_userRole; }
102 inline void SetUserRole(UserRole value) { m_userRoleHasBeenSet = true; m_userRole = value; }
103 inline DescribeUserResult& WithUserRole(UserRole value) { SetUserRole(value); return *this;}
105
107
111 inline const Aws::Utils::DateTime& GetEnabledDate() const { return m_enabledDate; }
112 template<typename EnabledDateT = Aws::Utils::DateTime>
113 void SetEnabledDate(EnabledDateT&& value) { m_enabledDateHasBeenSet = true; m_enabledDate = std::forward<EnabledDateT>(value); }
114 template<typename EnabledDateT = Aws::Utils::DateTime>
115 DescribeUserResult& WithEnabledDate(EnabledDateT&& value) { SetEnabledDate(std::forward<EnabledDateT>(value)); return *this;}
117
119
123 inline const Aws::Utils::DateTime& GetDisabledDate() const { return m_disabledDate; }
124 template<typename DisabledDateT = Aws::Utils::DateTime>
125 void SetDisabledDate(DisabledDateT&& value) { m_disabledDateHasBeenSet = true; m_disabledDate = std::forward<DisabledDateT>(value); }
126 template<typename DisabledDateT = Aws::Utils::DateTime>
127 DescribeUserResult& WithDisabledDate(DisabledDateT&& value) { SetDisabledDate(std::forward<DisabledDateT>(value)); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetMailboxProvisionedDate() const { return m_mailboxProvisionedDate; }
135 template<typename MailboxProvisionedDateT = Aws::Utils::DateTime>
136 void SetMailboxProvisionedDate(MailboxProvisionedDateT&& value) { m_mailboxProvisionedDateHasBeenSet = true; m_mailboxProvisionedDate = std::forward<MailboxProvisionedDateT>(value); }
137 template<typename MailboxProvisionedDateT = Aws::Utils::DateTime>
138 DescribeUserResult& WithMailboxProvisionedDate(MailboxProvisionedDateT&& value) { SetMailboxProvisionedDate(std::forward<MailboxProvisionedDateT>(value)); return *this;}
140
142
145 inline const Aws::Utils::DateTime& GetMailboxDeprovisionedDate() const { return m_mailboxDeprovisionedDate; }
146 template<typename MailboxDeprovisionedDateT = Aws::Utils::DateTime>
147 void SetMailboxDeprovisionedDate(MailboxDeprovisionedDateT&& value) { m_mailboxDeprovisionedDateHasBeenSet = true; m_mailboxDeprovisionedDate = std::forward<MailboxDeprovisionedDateT>(value); }
148 template<typename MailboxDeprovisionedDateT = Aws::Utils::DateTime>
149 DescribeUserResult& WithMailboxDeprovisionedDate(MailboxDeprovisionedDateT&& value) { SetMailboxDeprovisionedDate(std::forward<MailboxDeprovisionedDateT>(value)); return *this;}
151
153
156 inline const Aws::String& GetFirstName() const { return m_firstName; }
157 template<typename FirstNameT = Aws::String>
158 void SetFirstName(FirstNameT&& value) { m_firstNameHasBeenSet = true; m_firstName = std::forward<FirstNameT>(value); }
159 template<typename FirstNameT = Aws::String>
160 DescribeUserResult& WithFirstName(FirstNameT&& value) { SetFirstName(std::forward<FirstNameT>(value)); return *this;}
162
164
167 inline const Aws::String& GetLastName() const { return m_lastName; }
168 template<typename LastNameT = Aws::String>
169 void SetLastName(LastNameT&& value) { m_lastNameHasBeenSet = true; m_lastName = std::forward<LastNameT>(value); }
170 template<typename LastNameT = Aws::String>
171 DescribeUserResult& WithLastName(LastNameT&& value) { SetLastName(std::forward<LastNameT>(value)); return *this;}
173
175
178 inline bool GetHiddenFromGlobalAddressList() const { return m_hiddenFromGlobalAddressList; }
179 inline void SetHiddenFromGlobalAddressList(bool value) { m_hiddenFromGlobalAddressListHasBeenSet = true; m_hiddenFromGlobalAddressList = value; }
182
184
187 inline const Aws::String& GetInitials() const { return m_initials; }
188 template<typename InitialsT = Aws::String>
189 void SetInitials(InitialsT&& value) { m_initialsHasBeenSet = true; m_initials = std::forward<InitialsT>(value); }
190 template<typename InitialsT = Aws::String>
191 DescribeUserResult& WithInitials(InitialsT&& value) { SetInitials(std::forward<InitialsT>(value)); return *this;}
193
195
198 inline const Aws::String& GetTelephone() const { return m_telephone; }
199 template<typename TelephoneT = Aws::String>
200 void SetTelephone(TelephoneT&& value) { m_telephoneHasBeenSet = true; m_telephone = std::forward<TelephoneT>(value); }
201 template<typename TelephoneT = Aws::String>
202 DescribeUserResult& WithTelephone(TelephoneT&& value) { SetTelephone(std::forward<TelephoneT>(value)); return *this;}
204
206
209 inline const Aws::String& GetStreet() const { return m_street; }
210 template<typename StreetT = Aws::String>
211 void SetStreet(StreetT&& value) { m_streetHasBeenSet = true; m_street = std::forward<StreetT>(value); }
212 template<typename StreetT = Aws::String>
213 DescribeUserResult& WithStreet(StreetT&& value) { SetStreet(std::forward<StreetT>(value)); return *this;}
215
217
220 inline const Aws::String& GetJobTitle() const { return m_jobTitle; }
221 template<typename JobTitleT = Aws::String>
222 void SetJobTitle(JobTitleT&& value) { m_jobTitleHasBeenSet = true; m_jobTitle = std::forward<JobTitleT>(value); }
223 template<typename JobTitleT = Aws::String>
224 DescribeUserResult& WithJobTitle(JobTitleT&& value) { SetJobTitle(std::forward<JobTitleT>(value)); return *this;}
226
228
231 inline const Aws::String& GetCity() const { return m_city; }
232 template<typename CityT = Aws::String>
233 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
234 template<typename CityT = Aws::String>
235 DescribeUserResult& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
237
239
242 inline const Aws::String& GetCompany() const { return m_company; }
243 template<typename CompanyT = Aws::String>
244 void SetCompany(CompanyT&& value) { m_companyHasBeenSet = true; m_company = std::forward<CompanyT>(value); }
245 template<typename CompanyT = Aws::String>
246 DescribeUserResult& WithCompany(CompanyT&& value) { SetCompany(std::forward<CompanyT>(value)); return *this;}
248
250
253 inline const Aws::String& GetZipCode() const { return m_zipCode; }
254 template<typename ZipCodeT = Aws::String>
255 void SetZipCode(ZipCodeT&& value) { m_zipCodeHasBeenSet = true; m_zipCode = std::forward<ZipCodeT>(value); }
256 template<typename ZipCodeT = Aws::String>
257 DescribeUserResult& WithZipCode(ZipCodeT&& value) { SetZipCode(std::forward<ZipCodeT>(value)); return *this;}
259
261
264 inline const Aws::String& GetDepartment() const { return m_department; }
265 template<typename DepartmentT = Aws::String>
266 void SetDepartment(DepartmentT&& value) { m_departmentHasBeenSet = true; m_department = std::forward<DepartmentT>(value); }
267 template<typename DepartmentT = Aws::String>
268 DescribeUserResult& WithDepartment(DepartmentT&& value) { SetDepartment(std::forward<DepartmentT>(value)); return *this;}
270
272
275 inline const Aws::String& GetCountry() const { return m_country; }
276 template<typename CountryT = Aws::String>
277 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
278 template<typename CountryT = Aws::String>
279 DescribeUserResult& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
281
283
286 inline const Aws::String& GetOffice() const { return m_office; }
287 template<typename OfficeT = Aws::String>
288 void SetOffice(OfficeT&& value) { m_officeHasBeenSet = true; m_office = std::forward<OfficeT>(value); }
289 template<typename OfficeT = Aws::String>
290 DescribeUserResult& WithOffice(OfficeT&& value) { SetOffice(std::forward<OfficeT>(value)); return *this;}
292
294
299 inline const Aws::String& GetIdentityProviderUserId() const { return m_identityProviderUserId; }
300 template<typename IdentityProviderUserIdT = Aws::String>
301 void SetIdentityProviderUserId(IdentityProviderUserIdT&& value) { m_identityProviderUserIdHasBeenSet = true; m_identityProviderUserId = std::forward<IdentityProviderUserIdT>(value); }
302 template<typename IdentityProviderUserIdT = Aws::String>
303 DescribeUserResult& WithIdentityProviderUserId(IdentityProviderUserIdT&& value) { SetIdentityProviderUserId(std::forward<IdentityProviderUserIdT>(value)); return *this;}
305
307
312 inline const Aws::String& GetIdentityProviderIdentityStoreId() const { return m_identityProviderIdentityStoreId; }
313 template<typename IdentityProviderIdentityStoreIdT = Aws::String>
314 void SetIdentityProviderIdentityStoreId(IdentityProviderIdentityStoreIdT&& value) { m_identityProviderIdentityStoreIdHasBeenSet = true; m_identityProviderIdentityStoreId = std::forward<IdentityProviderIdentityStoreIdT>(value); }
315 template<typename IdentityProviderIdentityStoreIdT = Aws::String>
316 DescribeUserResult& WithIdentityProviderIdentityStoreId(IdentityProviderIdentityStoreIdT&& value) { SetIdentityProviderIdentityStoreId(std::forward<IdentityProviderIdentityStoreIdT>(value)); return *this;}
318
320
321 inline const Aws::String& GetRequestId() const { return m_requestId; }
322 template<typename RequestIdT = Aws::String>
323 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
324 template<typename RequestIdT = Aws::String>
325 DescribeUserResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
327 private:
328
329 Aws::String m_userId;
330 bool m_userIdHasBeenSet = false;
331
332 Aws::String m_name;
333 bool m_nameHasBeenSet = false;
334
335 Aws::String m_email;
336 bool m_emailHasBeenSet = false;
337
338 Aws::String m_displayName;
339 bool m_displayNameHasBeenSet = false;
340
342 bool m_stateHasBeenSet = false;
343
344 UserRole m_userRole{UserRole::NOT_SET};
345 bool m_userRoleHasBeenSet = false;
346
347 Aws::Utils::DateTime m_enabledDate{};
348 bool m_enabledDateHasBeenSet = false;
349
350 Aws::Utils::DateTime m_disabledDate{};
351 bool m_disabledDateHasBeenSet = false;
352
353 Aws::Utils::DateTime m_mailboxProvisionedDate{};
354 bool m_mailboxProvisionedDateHasBeenSet = false;
355
356 Aws::Utils::DateTime m_mailboxDeprovisionedDate{};
357 bool m_mailboxDeprovisionedDateHasBeenSet = false;
358
359 Aws::String m_firstName;
360 bool m_firstNameHasBeenSet = false;
361
362 Aws::String m_lastName;
363 bool m_lastNameHasBeenSet = false;
364
365 bool m_hiddenFromGlobalAddressList{false};
366 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
367
368 Aws::String m_initials;
369 bool m_initialsHasBeenSet = false;
370
371 Aws::String m_telephone;
372 bool m_telephoneHasBeenSet = false;
373
374 Aws::String m_street;
375 bool m_streetHasBeenSet = false;
376
377 Aws::String m_jobTitle;
378 bool m_jobTitleHasBeenSet = false;
379
380 Aws::String m_city;
381 bool m_cityHasBeenSet = false;
382
383 Aws::String m_company;
384 bool m_companyHasBeenSet = false;
385
386 Aws::String m_zipCode;
387 bool m_zipCodeHasBeenSet = false;
388
389 Aws::String m_department;
390 bool m_departmentHasBeenSet = false;
391
392 Aws::String m_country;
393 bool m_countryHasBeenSet = false;
394
395 Aws::String m_office;
396 bool m_officeHasBeenSet = false;
397
398 Aws::String m_identityProviderUserId;
399 bool m_identityProviderUserIdHasBeenSet = false;
400
401 Aws::String m_identityProviderIdentityStoreId;
402 bool m_identityProviderIdentityStoreIdHasBeenSet = false;
403
404 Aws::String m_requestId;
405 bool m_requestIdHasBeenSet = false;
406 };
407
408} // namespace Model
409} // namespace WorkMail
410} // 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_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