AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateUserRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workmail/WorkMailRequest.h>
9#include <aws/workmail/WorkMail_EXPORTS.h>
10#include <aws/workmail/model/UserRole.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WorkMail {
16namespace Model {
17
21 public:
22 AWS_WORKMAIL_API UpdateUserRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateUser"; }
29
30 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
39 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
40 template <typename OrganizationIdT = Aws::String>
41 void SetOrganizationId(OrganizationIdT&& value) {
42 m_organizationIdHasBeenSet = true;
43 m_organizationId = std::forward<OrganizationIdT>(value);
44 }
45 template <typename OrganizationIdT = Aws::String>
46 UpdateUserRequest& WithOrganizationId(OrganizationIdT&& value) {
47 SetOrganizationId(std::forward<OrganizationIdT>(value));
48 return *this;
49 }
51
53
60 inline const Aws::String& GetUserId() const { return m_userId; }
61 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
62 template <typename UserIdT = Aws::String>
63 void SetUserId(UserIdT&& value) {
64 m_userIdHasBeenSet = true;
65 m_userId = std::forward<UserIdT>(value);
66 }
67 template <typename UserIdT = Aws::String>
68 UpdateUserRequest& WithUserId(UserIdT&& value) {
69 SetUserId(std::forward<UserIdT>(value));
70 return *this;
71 }
73
75
79 inline UserRole GetRole() const { return m_role; }
80 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
81 inline void SetRole(UserRole value) {
82 m_roleHasBeenSet = true;
83 m_role = value;
84 }
86 SetRole(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDisplayName() const { return m_displayName; }
96 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
97 template <typename DisplayNameT = Aws::String>
98 void SetDisplayName(DisplayNameT&& value) {
99 m_displayNameHasBeenSet = true;
100 m_displayName = std::forward<DisplayNameT>(value);
101 }
102 template <typename DisplayNameT = Aws::String>
103 UpdateUserRequest& WithDisplayName(DisplayNameT&& value) {
104 SetDisplayName(std::forward<DisplayNameT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetFirstName() const { return m_firstName; }
114 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
115 template <typename FirstNameT = Aws::String>
116 void SetFirstName(FirstNameT&& value) {
117 m_firstNameHasBeenSet = true;
118 m_firstName = std::forward<FirstNameT>(value);
119 }
120 template <typename FirstNameT = Aws::String>
121 UpdateUserRequest& WithFirstName(FirstNameT&& value) {
122 SetFirstName(std::forward<FirstNameT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetLastName() const { return m_lastName; }
132 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
133 template <typename LastNameT = Aws::String>
134 void SetLastName(LastNameT&& value) {
135 m_lastNameHasBeenSet = true;
136 m_lastName = std::forward<LastNameT>(value);
137 }
138 template <typename LastNameT = Aws::String>
139 UpdateUserRequest& WithLastName(LastNameT&& value) {
140 SetLastName(std::forward<LastNameT>(value));
141 return *this;
142 }
144
146
149 inline bool GetHiddenFromGlobalAddressList() const { return m_hiddenFromGlobalAddressList; }
150 inline bool HiddenFromGlobalAddressListHasBeenSet() const { return m_hiddenFromGlobalAddressListHasBeenSet; }
151 inline void SetHiddenFromGlobalAddressList(bool value) {
152 m_hiddenFromGlobalAddressListHasBeenSet = true;
153 m_hiddenFromGlobalAddressList = value;
154 }
157 return *this;
158 }
160
162
165 inline const Aws::String& GetInitials() const { return m_initials; }
166 inline bool InitialsHasBeenSet() const { return m_initialsHasBeenSet; }
167 template <typename InitialsT = Aws::String>
168 void SetInitials(InitialsT&& value) {
169 m_initialsHasBeenSet = true;
170 m_initials = std::forward<InitialsT>(value);
171 }
172 template <typename InitialsT = Aws::String>
173 UpdateUserRequest& WithInitials(InitialsT&& value) {
174 SetInitials(std::forward<InitialsT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetTelephone() const { return m_telephone; }
184 inline bool TelephoneHasBeenSet() const { return m_telephoneHasBeenSet; }
185 template <typename TelephoneT = Aws::String>
186 void SetTelephone(TelephoneT&& value) {
187 m_telephoneHasBeenSet = true;
188 m_telephone = std::forward<TelephoneT>(value);
189 }
190 template <typename TelephoneT = Aws::String>
191 UpdateUserRequest& WithTelephone(TelephoneT&& value) {
192 SetTelephone(std::forward<TelephoneT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetStreet() const { return m_street; }
202 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
203 template <typename StreetT = Aws::String>
204 void SetStreet(StreetT&& value) {
205 m_streetHasBeenSet = true;
206 m_street = std::forward<StreetT>(value);
207 }
208 template <typename StreetT = Aws::String>
209 UpdateUserRequest& WithStreet(StreetT&& value) {
210 SetStreet(std::forward<StreetT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetJobTitle() const { return m_jobTitle; }
220 inline bool JobTitleHasBeenSet() const { return m_jobTitleHasBeenSet; }
221 template <typename JobTitleT = Aws::String>
222 void SetJobTitle(JobTitleT&& value) {
223 m_jobTitleHasBeenSet = true;
224 m_jobTitle = std::forward<JobTitleT>(value);
225 }
226 template <typename JobTitleT = Aws::String>
227 UpdateUserRequest& WithJobTitle(JobTitleT&& value) {
228 SetJobTitle(std::forward<JobTitleT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::String& GetCity() const { return m_city; }
238 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
239 template <typename CityT = Aws::String>
240 void SetCity(CityT&& value) {
241 m_cityHasBeenSet = true;
242 m_city = std::forward<CityT>(value);
243 }
244 template <typename CityT = Aws::String>
245 UpdateUserRequest& WithCity(CityT&& value) {
246 SetCity(std::forward<CityT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::String& GetCompany() const { return m_company; }
256 inline bool CompanyHasBeenSet() const { return m_companyHasBeenSet; }
257 template <typename CompanyT = Aws::String>
258 void SetCompany(CompanyT&& value) {
259 m_companyHasBeenSet = true;
260 m_company = std::forward<CompanyT>(value);
261 }
262 template <typename CompanyT = Aws::String>
263 UpdateUserRequest& WithCompany(CompanyT&& value) {
264 SetCompany(std::forward<CompanyT>(value));
265 return *this;
266 }
268
270
273 inline const Aws::String& GetZipCode() const { return m_zipCode; }
274 inline bool ZipCodeHasBeenSet() const { return m_zipCodeHasBeenSet; }
275 template <typename ZipCodeT = Aws::String>
276 void SetZipCode(ZipCodeT&& value) {
277 m_zipCodeHasBeenSet = true;
278 m_zipCode = std::forward<ZipCodeT>(value);
279 }
280 template <typename ZipCodeT = Aws::String>
281 UpdateUserRequest& WithZipCode(ZipCodeT&& value) {
282 SetZipCode(std::forward<ZipCodeT>(value));
283 return *this;
284 }
286
288
291 inline const Aws::String& GetDepartment() const { return m_department; }
292 inline bool DepartmentHasBeenSet() const { return m_departmentHasBeenSet; }
293 template <typename DepartmentT = Aws::String>
294 void SetDepartment(DepartmentT&& value) {
295 m_departmentHasBeenSet = true;
296 m_department = std::forward<DepartmentT>(value);
297 }
298 template <typename DepartmentT = Aws::String>
299 UpdateUserRequest& WithDepartment(DepartmentT&& value) {
300 SetDepartment(std::forward<DepartmentT>(value));
301 return *this;
302 }
304
306
309 inline const Aws::String& GetCountry() const { return m_country; }
310 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
311 template <typename CountryT = Aws::String>
312 void SetCountry(CountryT&& value) {
313 m_countryHasBeenSet = true;
314 m_country = std::forward<CountryT>(value);
315 }
316 template <typename CountryT = Aws::String>
317 UpdateUserRequest& WithCountry(CountryT&& value) {
318 SetCountry(std::forward<CountryT>(value));
319 return *this;
320 }
322
324
327 inline const Aws::String& GetOffice() const { return m_office; }
328 inline bool OfficeHasBeenSet() const { return m_officeHasBeenSet; }
329 template <typename OfficeT = Aws::String>
330 void SetOffice(OfficeT&& value) {
331 m_officeHasBeenSet = true;
332 m_office = std::forward<OfficeT>(value);
333 }
334 template <typename OfficeT = Aws::String>
335 UpdateUserRequest& WithOffice(OfficeT&& value) {
336 SetOffice(std::forward<OfficeT>(value));
337 return *this;
338 }
340
342
347 inline const Aws::String& GetIdentityProviderUserId() const { return m_identityProviderUserId; }
348 inline bool IdentityProviderUserIdHasBeenSet() const { return m_identityProviderUserIdHasBeenSet; }
349 template <typename IdentityProviderUserIdT = Aws::String>
350 void SetIdentityProviderUserId(IdentityProviderUserIdT&& value) {
351 m_identityProviderUserIdHasBeenSet = true;
352 m_identityProviderUserId = std::forward<IdentityProviderUserIdT>(value);
353 }
354 template <typename IdentityProviderUserIdT = Aws::String>
355 UpdateUserRequest& WithIdentityProviderUserId(IdentityProviderUserIdT&& value) {
356 SetIdentityProviderUserId(std::forward<IdentityProviderUserIdT>(value));
357 return *this;
358 }
360 private:
361 Aws::String m_organizationId;
362
363 Aws::String m_userId;
364
366
367 Aws::String m_displayName;
368
369 Aws::String m_firstName;
370
371 Aws::String m_lastName;
372
373 bool m_hiddenFromGlobalAddressList{false};
374
375 Aws::String m_initials;
376
377 Aws::String m_telephone;
378
379 Aws::String m_street;
380
381 Aws::String m_jobTitle;
382
383 Aws::String m_city;
384
385 Aws::String m_company;
386
387 Aws::String m_zipCode;
388
389 Aws::String m_department;
390
391 Aws::String m_country;
392
393 Aws::String m_office;
394
395 Aws::String m_identityProviderUserId;
396 bool m_organizationIdHasBeenSet = false;
397 bool m_userIdHasBeenSet = false;
398 bool m_roleHasBeenSet = false;
399 bool m_displayNameHasBeenSet = false;
400 bool m_firstNameHasBeenSet = false;
401 bool m_lastNameHasBeenSet = false;
402 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
403 bool m_initialsHasBeenSet = false;
404 bool m_telephoneHasBeenSet = false;
405 bool m_streetHasBeenSet = false;
406 bool m_jobTitleHasBeenSet = false;
407 bool m_cityHasBeenSet = false;
408 bool m_companyHasBeenSet = false;
409 bool m_zipCodeHasBeenSet = false;
410 bool m_departmentHasBeenSet = false;
411 bool m_countryHasBeenSet = false;
412 bool m_officeHasBeenSet = false;
413 bool m_identityProviderUserIdHasBeenSet = false;
414};
415
416} // namespace Model
417} // namespace WorkMail
418} // namespace Aws
const Aws::String & GetOrganizationId() const
UpdateUserRequest & WithStreet(StreetT &&value)
const Aws::String & GetJobTitle() const
const Aws::String & GetDepartment() const
UpdateUserRequest & WithOrganizationId(OrganizationIdT &&value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateUserRequest & WithLastName(LastNameT &&value)
virtual const char * GetServiceRequestName() const override
UpdateUserRequest & WithOffice(OfficeT &&value)
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetInitials() const
UpdateUserRequest & WithDisplayName(DisplayNameT &&value)
void SetOrganizationId(OrganizationIdT &&value)
void SetIdentityProviderUserId(IdentityProviderUserIdT &&value)
UpdateUserRequest & WithTelephone(TelephoneT &&value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
UpdateUserRequest & WithIdentityProviderUserId(IdentityProviderUserIdT &&value)
UpdateUserRequest & WithDepartment(DepartmentT &&value)
UpdateUserRequest & WithJobTitle(JobTitleT &&value)
const Aws::String & GetDisplayName() const
UpdateUserRequest & WithHiddenFromGlobalAddressList(bool value)
const Aws::String & GetUserId() const
UpdateUserRequest & WithCity(CityT &&value)
const Aws::String & GetFirstName() const
const Aws::String & GetTelephone() const
UpdateUserRequest & WithInitials(InitialsT &&value)
const Aws::String & GetLastName() const
AWS_WORKMAIL_API UpdateUserRequest()=default
const Aws::String & GetIdentityProviderUserId() const
UpdateUserRequest & WithRole(UserRole value)
UpdateUserRequest & WithCompany(CompanyT &&value)
UpdateUserRequest & WithFirstName(FirstNameT &&value)
UpdateUserRequest & WithZipCode(ZipCodeT &&value)
UpdateUserRequest & WithCountry(CountryT &&value)
UpdateUserRequest & WithUserId(UserIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String