AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
36
37
39
42 inline const Aws::String& GetUserId() const{ return m_userId; }
43 inline void SetUserId(const Aws::String& value) { m_userId = value; }
44 inline void SetUserId(Aws::String&& value) { m_userId = std::move(value); }
45 inline void SetUserId(const char* value) { m_userId.assign(value); }
46 inline DescribeUserResult& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
47 inline DescribeUserResult& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
48 inline DescribeUserResult& WithUserId(const char* value) { SetUserId(value); return *this;}
50
52
55 inline const Aws::String& GetName() const{ return m_name; }
56 inline void SetName(const Aws::String& value) { m_name = value; }
57 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
58 inline void SetName(const char* value) { m_name.assign(value); }
59 inline DescribeUserResult& WithName(const Aws::String& value) { SetName(value); return *this;}
60 inline DescribeUserResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
61 inline DescribeUserResult& WithName(const char* value) { SetName(value); return *this;}
63
65
68 inline const Aws::String& GetEmail() const{ return m_email; }
69 inline void SetEmail(const Aws::String& value) { m_email = value; }
70 inline void SetEmail(Aws::String&& value) { m_email = std::move(value); }
71 inline void SetEmail(const char* value) { m_email.assign(value); }
72 inline DescribeUserResult& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
73 inline DescribeUserResult& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
74 inline DescribeUserResult& WithEmail(const char* value) { SetEmail(value); return *this;}
76
78
81 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
82 inline void SetDisplayName(const Aws::String& value) { m_displayName = value; }
83 inline void SetDisplayName(Aws::String&& value) { m_displayName = std::move(value); }
84 inline void SetDisplayName(const char* value) { m_displayName.assign(value); }
85 inline DescribeUserResult& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
86 inline DescribeUserResult& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
87 inline DescribeUserResult& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
89
91
95 inline const EntityState& GetState() const{ return m_state; }
96 inline void SetState(const EntityState& value) { m_state = value; }
97 inline void SetState(EntityState&& value) { m_state = std::move(value); }
98 inline DescribeUserResult& WithState(const EntityState& value) { SetState(value); return *this;}
99 inline DescribeUserResult& WithState(EntityState&& value) { SetState(std::move(value)); return *this;}
101
103
111 inline const UserRole& GetUserRole() const{ return m_userRole; }
112 inline void SetUserRole(const UserRole& value) { m_userRole = value; }
113 inline void SetUserRole(UserRole&& value) { m_userRole = std::move(value); }
114 inline DescribeUserResult& WithUserRole(const UserRole& value) { SetUserRole(value); return *this;}
115 inline DescribeUserResult& WithUserRole(UserRole&& value) { SetUserRole(std::move(value)); return *this;}
117
119
123 inline const Aws::Utils::DateTime& GetEnabledDate() const{ return m_enabledDate; }
124 inline void SetEnabledDate(const Aws::Utils::DateTime& value) { m_enabledDate = value; }
125 inline void SetEnabledDate(Aws::Utils::DateTime&& value) { m_enabledDate = std::move(value); }
126 inline DescribeUserResult& WithEnabledDate(const Aws::Utils::DateTime& value) { SetEnabledDate(value); return *this;}
127 inline DescribeUserResult& WithEnabledDate(Aws::Utils::DateTime&& value) { SetEnabledDate(std::move(value)); return *this;}
129
131
135 inline const Aws::Utils::DateTime& GetDisabledDate() const{ return m_disabledDate; }
136 inline void SetDisabledDate(const Aws::Utils::DateTime& value) { m_disabledDate = value; }
137 inline void SetDisabledDate(Aws::Utils::DateTime&& value) { m_disabledDate = std::move(value); }
138 inline DescribeUserResult& WithDisabledDate(const Aws::Utils::DateTime& value) { SetDisabledDate(value); return *this;}
139 inline DescribeUserResult& WithDisabledDate(Aws::Utils::DateTime&& value) { SetDisabledDate(std::move(value)); return *this;}
141
143
146 inline const Aws::Utils::DateTime& GetMailboxProvisionedDate() const{ return m_mailboxProvisionedDate; }
147 inline void SetMailboxProvisionedDate(const Aws::Utils::DateTime& value) { m_mailboxProvisionedDate = value; }
148 inline void SetMailboxProvisionedDate(Aws::Utils::DateTime&& value) { m_mailboxProvisionedDate = std::move(value); }
152
154
157 inline const Aws::Utils::DateTime& GetMailboxDeprovisionedDate() const{ return m_mailboxDeprovisionedDate; }
158 inline void SetMailboxDeprovisionedDate(const Aws::Utils::DateTime& value) { m_mailboxDeprovisionedDate = value; }
159 inline void SetMailboxDeprovisionedDate(Aws::Utils::DateTime&& value) { m_mailboxDeprovisionedDate = std::move(value); }
163
165
168 inline const Aws::String& GetFirstName() const{ return m_firstName; }
169 inline void SetFirstName(const Aws::String& value) { m_firstName = value; }
170 inline void SetFirstName(Aws::String&& value) { m_firstName = std::move(value); }
171 inline void SetFirstName(const char* value) { m_firstName.assign(value); }
172 inline DescribeUserResult& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
173 inline DescribeUserResult& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
174 inline DescribeUserResult& WithFirstName(const char* value) { SetFirstName(value); return *this;}
176
178
181 inline const Aws::String& GetLastName() const{ return m_lastName; }
182 inline void SetLastName(const Aws::String& value) { m_lastName = value; }
183 inline void SetLastName(Aws::String&& value) { m_lastName = std::move(value); }
184 inline void SetLastName(const char* value) { m_lastName.assign(value); }
185 inline DescribeUserResult& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
186 inline DescribeUserResult& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
187 inline DescribeUserResult& WithLastName(const char* value) { SetLastName(value); return *this;}
189
191
194 inline bool GetHiddenFromGlobalAddressList() const{ return m_hiddenFromGlobalAddressList; }
195 inline void SetHiddenFromGlobalAddressList(bool value) { m_hiddenFromGlobalAddressList = value; }
198
200
203 inline const Aws::String& GetInitials() const{ return m_initials; }
204 inline void SetInitials(const Aws::String& value) { m_initials = value; }
205 inline void SetInitials(Aws::String&& value) { m_initials = std::move(value); }
206 inline void SetInitials(const char* value) { m_initials.assign(value); }
207 inline DescribeUserResult& WithInitials(const Aws::String& value) { SetInitials(value); return *this;}
208 inline DescribeUserResult& WithInitials(Aws::String&& value) { SetInitials(std::move(value)); return *this;}
209 inline DescribeUserResult& WithInitials(const char* value) { SetInitials(value); return *this;}
211
213
216 inline const Aws::String& GetTelephone() const{ return m_telephone; }
217 inline void SetTelephone(const Aws::String& value) { m_telephone = value; }
218 inline void SetTelephone(Aws::String&& value) { m_telephone = std::move(value); }
219 inline void SetTelephone(const char* value) { m_telephone.assign(value); }
220 inline DescribeUserResult& WithTelephone(const Aws::String& value) { SetTelephone(value); return *this;}
221 inline DescribeUserResult& WithTelephone(Aws::String&& value) { SetTelephone(std::move(value)); return *this;}
222 inline DescribeUserResult& WithTelephone(const char* value) { SetTelephone(value); return *this;}
224
226
229 inline const Aws::String& GetStreet() const{ return m_street; }
230 inline void SetStreet(const Aws::String& value) { m_street = value; }
231 inline void SetStreet(Aws::String&& value) { m_street = std::move(value); }
232 inline void SetStreet(const char* value) { m_street.assign(value); }
233 inline DescribeUserResult& WithStreet(const Aws::String& value) { SetStreet(value); return *this;}
234 inline DescribeUserResult& WithStreet(Aws::String&& value) { SetStreet(std::move(value)); return *this;}
235 inline DescribeUserResult& WithStreet(const char* value) { SetStreet(value); return *this;}
237
239
242 inline const Aws::String& GetJobTitle() const{ return m_jobTitle; }
243 inline void SetJobTitle(const Aws::String& value) { m_jobTitle = value; }
244 inline void SetJobTitle(Aws::String&& value) { m_jobTitle = std::move(value); }
245 inline void SetJobTitle(const char* value) { m_jobTitle.assign(value); }
246 inline DescribeUserResult& WithJobTitle(const Aws::String& value) { SetJobTitle(value); return *this;}
247 inline DescribeUserResult& WithJobTitle(Aws::String&& value) { SetJobTitle(std::move(value)); return *this;}
248 inline DescribeUserResult& WithJobTitle(const char* value) { SetJobTitle(value); return *this;}
250
252
255 inline const Aws::String& GetCity() const{ return m_city; }
256 inline void SetCity(const Aws::String& value) { m_city = value; }
257 inline void SetCity(Aws::String&& value) { m_city = std::move(value); }
258 inline void SetCity(const char* value) { m_city.assign(value); }
259 inline DescribeUserResult& WithCity(const Aws::String& value) { SetCity(value); return *this;}
260 inline DescribeUserResult& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;}
261 inline DescribeUserResult& WithCity(const char* value) { SetCity(value); return *this;}
263
265
268 inline const Aws::String& GetCompany() const{ return m_company; }
269 inline void SetCompany(const Aws::String& value) { m_company = value; }
270 inline void SetCompany(Aws::String&& value) { m_company = std::move(value); }
271 inline void SetCompany(const char* value) { m_company.assign(value); }
272 inline DescribeUserResult& WithCompany(const Aws::String& value) { SetCompany(value); return *this;}
273 inline DescribeUserResult& WithCompany(Aws::String&& value) { SetCompany(std::move(value)); return *this;}
274 inline DescribeUserResult& WithCompany(const char* value) { SetCompany(value); return *this;}
276
278
281 inline const Aws::String& GetZipCode() const{ return m_zipCode; }
282 inline void SetZipCode(const Aws::String& value) { m_zipCode = value; }
283 inline void SetZipCode(Aws::String&& value) { m_zipCode = std::move(value); }
284 inline void SetZipCode(const char* value) { m_zipCode.assign(value); }
285 inline DescribeUserResult& WithZipCode(const Aws::String& value) { SetZipCode(value); return *this;}
286 inline DescribeUserResult& WithZipCode(Aws::String&& value) { SetZipCode(std::move(value)); return *this;}
287 inline DescribeUserResult& WithZipCode(const char* value) { SetZipCode(value); return *this;}
289
291
294 inline const Aws::String& GetDepartment() const{ return m_department; }
295 inline void SetDepartment(const Aws::String& value) { m_department = value; }
296 inline void SetDepartment(Aws::String&& value) { m_department = std::move(value); }
297 inline void SetDepartment(const char* value) { m_department.assign(value); }
298 inline DescribeUserResult& WithDepartment(const Aws::String& value) { SetDepartment(value); return *this;}
299 inline DescribeUserResult& WithDepartment(Aws::String&& value) { SetDepartment(std::move(value)); return *this;}
300 inline DescribeUserResult& WithDepartment(const char* value) { SetDepartment(value); return *this;}
302
304
307 inline const Aws::String& GetCountry() const{ return m_country; }
308 inline void SetCountry(const Aws::String& value) { m_country = value; }
309 inline void SetCountry(Aws::String&& value) { m_country = std::move(value); }
310 inline void SetCountry(const char* value) { m_country.assign(value); }
311 inline DescribeUserResult& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
312 inline DescribeUserResult& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
313 inline DescribeUserResult& WithCountry(const char* value) { SetCountry(value); return *this;}
315
317
320 inline const Aws::String& GetOffice() const{ return m_office; }
321 inline void SetOffice(const Aws::String& value) { m_office = value; }
322 inline void SetOffice(Aws::String&& value) { m_office = std::move(value); }
323 inline void SetOffice(const char* value) { m_office.assign(value); }
324 inline DescribeUserResult& WithOffice(const Aws::String& value) { SetOffice(value); return *this;}
325 inline DescribeUserResult& WithOffice(Aws::String&& value) { SetOffice(std::move(value)); return *this;}
326 inline DescribeUserResult& WithOffice(const char* value) { SetOffice(value); return *this;}
328
330
335 inline const Aws::String& GetIdentityProviderUserId() const{ return m_identityProviderUserId; }
336 inline void SetIdentityProviderUserId(const Aws::String& value) { m_identityProviderUserId = value; }
337 inline void SetIdentityProviderUserId(Aws::String&& value) { m_identityProviderUserId = std::move(value); }
338 inline void SetIdentityProviderUserId(const char* value) { m_identityProviderUserId.assign(value); }
340 inline DescribeUserResult& WithIdentityProviderUserId(Aws::String&& value) { SetIdentityProviderUserId(std::move(value)); return *this;}
341 inline DescribeUserResult& WithIdentityProviderUserId(const char* value) { SetIdentityProviderUserId(value); return *this;}
343
345
350 inline const Aws::String& GetIdentityProviderIdentityStoreId() const{ return m_identityProviderIdentityStoreId; }
351 inline void SetIdentityProviderIdentityStoreId(const Aws::String& value) { m_identityProviderIdentityStoreId = value; }
352 inline void SetIdentityProviderIdentityStoreId(Aws::String&& value) { m_identityProviderIdentityStoreId = std::move(value); }
353 inline void SetIdentityProviderIdentityStoreId(const char* value) { m_identityProviderIdentityStoreId.assign(value); }
358
360
361 inline const Aws::String& GetRequestId() const{ return m_requestId; }
362 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
363 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
364 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
365 inline DescribeUserResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
366 inline DescribeUserResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
367 inline DescribeUserResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
369 private:
370
371 Aws::String m_userId;
372
373 Aws::String m_name;
374
375 Aws::String m_email;
376
377 Aws::String m_displayName;
378
379 EntityState m_state;
380
381 UserRole m_userRole;
382
383 Aws::Utils::DateTime m_enabledDate;
384
385 Aws::Utils::DateTime m_disabledDate;
386
387 Aws::Utils::DateTime m_mailboxProvisionedDate;
388
389 Aws::Utils::DateTime m_mailboxDeprovisionedDate;
390
391 Aws::String m_firstName;
392
393 Aws::String m_lastName;
394
395 bool m_hiddenFromGlobalAddressList;
396
397 Aws::String m_initials;
398
399 Aws::String m_telephone;
400
401 Aws::String m_street;
402
403 Aws::String m_jobTitle;
404
405 Aws::String m_city;
406
407 Aws::String m_company;
408
409 Aws::String m_zipCode;
410
411 Aws::String m_department;
412
413 Aws::String m_country;
414
415 Aws::String m_office;
416
417 Aws::String m_identityProviderUserId;
418
419 Aws::String m_identityProviderIdentityStoreId;
420
421 Aws::String m_requestId;
422 };
423
424} // namespace Model
425} // namespace WorkMail
426} // namespace Aws
DescribeUserResult & WithIdentityProviderIdentityStoreId(const char *value)
DescribeUserResult & WithCompany(const Aws::String &value)
DescribeUserResult & WithStreet(const Aws::String &value)
DescribeUserResult & WithUserId(Aws::String &&value)
DescribeUserResult & WithIdentityProviderUserId(Aws::String &&value)
const Aws::String & GetIdentityProviderUserId() const
void SetIdentityProviderUserId(Aws::String &&value)
DescribeUserResult & WithDisabledDate(const Aws::Utils::DateTime &value)
DescribeUserResult & WithIdentityProviderUserId(const Aws::String &value)
DescribeUserResult & WithName(const char *value)
DescribeUserResult & WithState(EntityState &&value)
DescribeUserResult & WithRequestId(const Aws::String &value)
DescribeUserResult & WithName(Aws::String &&value)
DescribeUserResult & WithInitials(Aws::String &&value)
void SetDisplayName(const Aws::String &value)
void SetEmail(const Aws::String &value)
DescribeUserResult & WithCompany(Aws::String &&value)
DescribeUserResult & WithIdentityProviderIdentityStoreId(const Aws::String &value)
DescribeUserResult & WithEnabledDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetDisabledDate() const
DescribeUserResult & WithStreet(const char *value)
void SetState(const EntityState &value)
DescribeUserResult & WithZipCode(const Aws::String &value)
const Aws::Utils::DateTime & GetMailboxProvisionedDate() const
void SetCompany(const Aws::String &value)
DescribeUserResult & WithOffice(Aws::String &&value)
void SetMailboxProvisionedDate(const Aws::Utils::DateTime &value)
DescribeUserResult & WithLastName(Aws::String &&value)
void SetDepartment(const Aws::String &value)
DescribeUserResult & WithFirstName(const char *value)
DescribeUserResult & WithCity(const char *value)
void SetMailboxDeprovisionedDate(const Aws::Utils::DateTime &value)
void SetDisabledDate(Aws::Utils::DateTime &&value)
void SetIdentityProviderUserId(const Aws::String &value)
DescribeUserResult & WithDepartment(const char *value)
DescribeUserResult & WithTelephone(const char *value)
DescribeUserResult & WithDisplayName(const Aws::String &value)
DescribeUserResult & WithMailboxDeprovisionedDate(Aws::Utils::DateTime &&value)
DescribeUserResult & WithEnabledDate(Aws::Utils::DateTime &&value)
void SetStreet(const Aws::String &value)
void SetIdentityProviderIdentityStoreId(const char *value)
DescribeUserResult & WithUserId(const Aws::String &value)
AWS_WORKMAIL_API DescribeUserResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastName(const Aws::String &value)
void SetUserId(const Aws::String &value)
DescribeUserResult & WithName(const Aws::String &value)
DescribeUserResult & WithCountry(const Aws::String &value)
void SetEnabledDate(const Aws::Utils::DateTime &value)
DescribeUserResult & WithStreet(Aws::String &&value)
DescribeUserResult & WithCity(Aws::String &&value)
DescribeUserResult & WithOffice(const char *value)
AWS_WORKMAIL_API DescribeUserResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetFirstName(const Aws::String &value)
DescribeUserResult & WithHiddenFromGlobalAddressList(bool value)
void SetMailboxDeprovisionedDate(Aws::Utils::DateTime &&value)
DescribeUserResult & WithInitials(const char *value)
DescribeUserResult & WithEmail(const char *value)
DescribeUserResult & WithZipCode(const char *value)
DescribeUserResult & WithMailboxProvisionedDate(Aws::Utils::DateTime &&value)
DescribeUserResult & WithTelephone(const Aws::String &value)
void SetIdentityProviderIdentityStoreId(const Aws::String &value)
void SetZipCode(const Aws::String &value)
DescribeUserResult & WithIdentityProviderIdentityStoreId(Aws::String &&value)
DescribeUserResult & WithLastName(const char *value)
DescribeUserResult & WithDisplayName(const char *value)
void SetDisabledDate(const Aws::Utils::DateTime &value)
DescribeUserResult & WithDisplayName(Aws::String &&value)
void SetInitials(const Aws::String &value)
DescribeUserResult & WithEmail(Aws::String &&value)
DescribeUserResult & WithCountry(const char *value)
const Aws::Utils::DateTime & GetEnabledDate() const
void SetMailboxProvisionedDate(Aws::Utils::DateTime &&value)
void SetName(const Aws::String &value)
DescribeUserResult & WithDepartment(Aws::String &&value)
DescribeUserResult & WithTelephone(Aws::String &&value)
const Aws::String & GetIdentityProviderIdentityStoreId() const
DescribeUserResult & WithZipCode(Aws::String &&value)
DescribeUserResult & WithUserId(const char *value)
void SetOffice(const Aws::String &value)
DescribeUserResult & WithCompany(const char *value)
DescribeUserResult & WithLastName(const Aws::String &value)
DescribeUserResult & WithOffice(const Aws::String &value)
void SetTelephone(const Aws::String &value)
void SetCountry(const Aws::String &value)
DescribeUserResult & WithJobTitle(Aws::String &&value)
DescribeUserResult & WithIdentityProviderUserId(const char *value)
DescribeUserResult & WithUserRole(const UserRole &value)
DescribeUserResult & WithMailboxDeprovisionedDate(const Aws::Utils::DateTime &value)
void SetEnabledDate(Aws::Utils::DateTime &&value)
DescribeUserResult & WithMailboxProvisionedDate(const Aws::Utils::DateTime &value)
DescribeUserResult & WithState(const EntityState &value)
void SetJobTitle(const Aws::String &value)
void SetIdentityProviderIdentityStoreId(Aws::String &&value)
DescribeUserResult & WithRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
DescribeUserResult & WithInitials(const Aws::String &value)
DescribeUserResult & WithRequestId(const char *value)
DescribeUserResult & WithFirstName(const Aws::String &value)
DescribeUserResult & WithCountry(Aws::String &&value)
DescribeUserResult & WithUserRole(UserRole &&value)
void SetCity(const Aws::String &value)
DescribeUserResult & WithEmail(const Aws::String &value)
DescribeUserResult & WithJobTitle(const Aws::String &value)
DescribeUserResult & WithCity(const Aws::String &value)
DescribeUserResult & WithJobTitle(const char *value)
DescribeUserResult & WithDepartment(const Aws::String &value)
DescribeUserResult & WithFirstName(Aws::String &&value)
const Aws::Utils::DateTime & GetMailboxDeprovisionedDate() const
DescribeUserResult & WithDisabledDate(Aws::Utils::DateTime &&value)
const Aws::String & GetDisplayName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue