AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateUserRequest.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/workmail/WorkMailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workmail/model/UserRole.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WorkMail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WORKMAIL_API UpdateUserRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateUser"; }
32
33 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
43 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
44 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
45 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
46 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
47 inline UpdateUserRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
48 inline UpdateUserRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
49 inline UpdateUserRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
51
53
60 inline const Aws::String& GetUserId() const{ return m_userId; }
61 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
62 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
63 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
64 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
65 inline UpdateUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
66 inline UpdateUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
67 inline UpdateUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
69
71
75 inline const UserRole& GetRole() const{ return m_role; }
76 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
77 inline void SetRole(const UserRole& value) { m_roleHasBeenSet = true; m_role = value; }
78 inline void SetRole(UserRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
79 inline UpdateUserRequest& WithRole(const UserRole& value) { SetRole(value); return *this;}
80 inline UpdateUserRequest& WithRole(UserRole&& value) { SetRole(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
88 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
89 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
90 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
91 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
92 inline UpdateUserRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
93 inline UpdateUserRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
94 inline UpdateUserRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
96
98
101 inline const Aws::String& GetFirstName() const{ return m_firstName; }
102 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
103 inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
104 inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); }
105 inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
106 inline UpdateUserRequest& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
107 inline UpdateUserRequest& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
108 inline UpdateUserRequest& WithFirstName(const char* value) { SetFirstName(value); return *this;}
110
112
115 inline const Aws::String& GetLastName() const{ return m_lastName; }
116 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
117 inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
118 inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); }
119 inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
120 inline UpdateUserRequest& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
121 inline UpdateUserRequest& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
122 inline UpdateUserRequest& WithLastName(const char* value) { SetLastName(value); return *this;}
124
126
129 inline bool GetHiddenFromGlobalAddressList() const{ return m_hiddenFromGlobalAddressList; }
130 inline bool HiddenFromGlobalAddressListHasBeenSet() const { return m_hiddenFromGlobalAddressListHasBeenSet; }
131 inline void SetHiddenFromGlobalAddressList(bool value) { m_hiddenFromGlobalAddressListHasBeenSet = true; m_hiddenFromGlobalAddressList = value; }
134
136
139 inline const Aws::String& GetInitials() const{ return m_initials; }
140 inline bool InitialsHasBeenSet() const { return m_initialsHasBeenSet; }
141 inline void SetInitials(const Aws::String& value) { m_initialsHasBeenSet = true; m_initials = value; }
142 inline void SetInitials(Aws::String&& value) { m_initialsHasBeenSet = true; m_initials = std::move(value); }
143 inline void SetInitials(const char* value) { m_initialsHasBeenSet = true; m_initials.assign(value); }
144 inline UpdateUserRequest& WithInitials(const Aws::String& value) { SetInitials(value); return *this;}
145 inline UpdateUserRequest& WithInitials(Aws::String&& value) { SetInitials(std::move(value)); return *this;}
146 inline UpdateUserRequest& WithInitials(const char* value) { SetInitials(value); return *this;}
148
150
153 inline const Aws::String& GetTelephone() const{ return m_telephone; }
154 inline bool TelephoneHasBeenSet() const { return m_telephoneHasBeenSet; }
155 inline void SetTelephone(const Aws::String& value) { m_telephoneHasBeenSet = true; m_telephone = value; }
156 inline void SetTelephone(Aws::String&& value) { m_telephoneHasBeenSet = true; m_telephone = std::move(value); }
157 inline void SetTelephone(const char* value) { m_telephoneHasBeenSet = true; m_telephone.assign(value); }
158 inline UpdateUserRequest& WithTelephone(const Aws::String& value) { SetTelephone(value); return *this;}
159 inline UpdateUserRequest& WithTelephone(Aws::String&& value) { SetTelephone(std::move(value)); return *this;}
160 inline UpdateUserRequest& WithTelephone(const char* value) { SetTelephone(value); return *this;}
162
164
167 inline const Aws::String& GetStreet() const{ return m_street; }
168 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
169 inline void SetStreet(const Aws::String& value) { m_streetHasBeenSet = true; m_street = value; }
170 inline void SetStreet(Aws::String&& value) { m_streetHasBeenSet = true; m_street = std::move(value); }
171 inline void SetStreet(const char* value) { m_streetHasBeenSet = true; m_street.assign(value); }
172 inline UpdateUserRequest& WithStreet(const Aws::String& value) { SetStreet(value); return *this;}
173 inline UpdateUserRequest& WithStreet(Aws::String&& value) { SetStreet(std::move(value)); return *this;}
174 inline UpdateUserRequest& WithStreet(const char* value) { SetStreet(value); return *this;}
176
178
181 inline const Aws::String& GetJobTitle() const{ return m_jobTitle; }
182 inline bool JobTitleHasBeenSet() const { return m_jobTitleHasBeenSet; }
183 inline void SetJobTitle(const Aws::String& value) { m_jobTitleHasBeenSet = true; m_jobTitle = value; }
184 inline void SetJobTitle(Aws::String&& value) { m_jobTitleHasBeenSet = true; m_jobTitle = std::move(value); }
185 inline void SetJobTitle(const char* value) { m_jobTitleHasBeenSet = true; m_jobTitle.assign(value); }
186 inline UpdateUserRequest& WithJobTitle(const Aws::String& value) { SetJobTitle(value); return *this;}
187 inline UpdateUserRequest& WithJobTitle(Aws::String&& value) { SetJobTitle(std::move(value)); return *this;}
188 inline UpdateUserRequest& WithJobTitle(const char* value) { SetJobTitle(value); return *this;}
190
192
195 inline const Aws::String& GetCity() const{ return m_city; }
196 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
197 inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
198 inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
199 inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
200 inline UpdateUserRequest& WithCity(const Aws::String& value) { SetCity(value); return *this;}
201 inline UpdateUserRequest& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;}
202 inline UpdateUserRequest& WithCity(const char* value) { SetCity(value); return *this;}
204
206
209 inline const Aws::String& GetCompany() const{ return m_company; }
210 inline bool CompanyHasBeenSet() const { return m_companyHasBeenSet; }
211 inline void SetCompany(const Aws::String& value) { m_companyHasBeenSet = true; m_company = value; }
212 inline void SetCompany(Aws::String&& value) { m_companyHasBeenSet = true; m_company = std::move(value); }
213 inline void SetCompany(const char* value) { m_companyHasBeenSet = true; m_company.assign(value); }
214 inline UpdateUserRequest& WithCompany(const Aws::String& value) { SetCompany(value); return *this;}
215 inline UpdateUserRequest& WithCompany(Aws::String&& value) { SetCompany(std::move(value)); return *this;}
216 inline UpdateUserRequest& WithCompany(const char* value) { SetCompany(value); return *this;}
218
220
223 inline const Aws::String& GetZipCode() const{ return m_zipCode; }
224 inline bool ZipCodeHasBeenSet() const { return m_zipCodeHasBeenSet; }
225 inline void SetZipCode(const Aws::String& value) { m_zipCodeHasBeenSet = true; m_zipCode = value; }
226 inline void SetZipCode(Aws::String&& value) { m_zipCodeHasBeenSet = true; m_zipCode = std::move(value); }
227 inline void SetZipCode(const char* value) { m_zipCodeHasBeenSet = true; m_zipCode.assign(value); }
228 inline UpdateUserRequest& WithZipCode(const Aws::String& value) { SetZipCode(value); return *this;}
229 inline UpdateUserRequest& WithZipCode(Aws::String&& value) { SetZipCode(std::move(value)); return *this;}
230 inline UpdateUserRequest& WithZipCode(const char* value) { SetZipCode(value); return *this;}
232
234
237 inline const Aws::String& GetDepartment() const{ return m_department; }
238 inline bool DepartmentHasBeenSet() const { return m_departmentHasBeenSet; }
239 inline void SetDepartment(const Aws::String& value) { m_departmentHasBeenSet = true; m_department = value; }
240 inline void SetDepartment(Aws::String&& value) { m_departmentHasBeenSet = true; m_department = std::move(value); }
241 inline void SetDepartment(const char* value) { m_departmentHasBeenSet = true; m_department.assign(value); }
242 inline UpdateUserRequest& WithDepartment(const Aws::String& value) { SetDepartment(value); return *this;}
243 inline UpdateUserRequest& WithDepartment(Aws::String&& value) { SetDepartment(std::move(value)); return *this;}
244 inline UpdateUserRequest& WithDepartment(const char* value) { SetDepartment(value); return *this;}
246
248
251 inline const Aws::String& GetCountry() const{ return m_country; }
252 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
253 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
254 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
255 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
256 inline UpdateUserRequest& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
257 inline UpdateUserRequest& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
258 inline UpdateUserRequest& WithCountry(const char* value) { SetCountry(value); return *this;}
260
262
265 inline const Aws::String& GetOffice() const{ return m_office; }
266 inline bool OfficeHasBeenSet() const { return m_officeHasBeenSet; }
267 inline void SetOffice(const Aws::String& value) { m_officeHasBeenSet = true; m_office = value; }
268 inline void SetOffice(Aws::String&& value) { m_officeHasBeenSet = true; m_office = std::move(value); }
269 inline void SetOffice(const char* value) { m_officeHasBeenSet = true; m_office.assign(value); }
270 inline UpdateUserRequest& WithOffice(const Aws::String& value) { SetOffice(value); return *this;}
271 inline UpdateUserRequest& WithOffice(Aws::String&& value) { SetOffice(std::move(value)); return *this;}
272 inline UpdateUserRequest& WithOffice(const char* value) { SetOffice(value); return *this;}
274
276
281 inline const Aws::String& GetIdentityProviderUserId() const{ return m_identityProviderUserId; }
282 inline bool IdentityProviderUserIdHasBeenSet() const { return m_identityProviderUserIdHasBeenSet; }
283 inline void SetIdentityProviderUserId(const Aws::String& value) { m_identityProviderUserIdHasBeenSet = true; m_identityProviderUserId = value; }
284 inline void SetIdentityProviderUserId(Aws::String&& value) { m_identityProviderUserIdHasBeenSet = true; m_identityProviderUserId = std::move(value); }
285 inline void SetIdentityProviderUserId(const char* value) { m_identityProviderUserIdHasBeenSet = true; m_identityProviderUserId.assign(value); }
287 inline UpdateUserRequest& WithIdentityProviderUserId(Aws::String&& value) { SetIdentityProviderUserId(std::move(value)); return *this;}
288 inline UpdateUserRequest& WithIdentityProviderUserId(const char* value) { SetIdentityProviderUserId(value); return *this;}
290 private:
291
292 Aws::String m_organizationId;
293 bool m_organizationIdHasBeenSet = false;
294
295 Aws::String m_userId;
296 bool m_userIdHasBeenSet = false;
297
298 UserRole m_role;
299 bool m_roleHasBeenSet = false;
300
301 Aws::String m_displayName;
302 bool m_displayNameHasBeenSet = false;
303
304 Aws::String m_firstName;
305 bool m_firstNameHasBeenSet = false;
306
307 Aws::String m_lastName;
308 bool m_lastNameHasBeenSet = false;
309
310 bool m_hiddenFromGlobalAddressList;
311 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
312
313 Aws::String m_initials;
314 bool m_initialsHasBeenSet = false;
315
316 Aws::String m_telephone;
317 bool m_telephoneHasBeenSet = false;
318
319 Aws::String m_street;
320 bool m_streetHasBeenSet = false;
321
322 Aws::String m_jobTitle;
323 bool m_jobTitleHasBeenSet = false;
324
325 Aws::String m_city;
326 bool m_cityHasBeenSet = false;
327
328 Aws::String m_company;
329 bool m_companyHasBeenSet = false;
330
331 Aws::String m_zipCode;
332 bool m_zipCodeHasBeenSet = false;
333
334 Aws::String m_department;
335 bool m_departmentHasBeenSet = false;
336
337 Aws::String m_country;
338 bool m_countryHasBeenSet = false;
339
340 Aws::String m_office;
341 bool m_officeHasBeenSet = false;
342
343 Aws::String m_identityProviderUserId;
344 bool m_identityProviderUserIdHasBeenSet = false;
345 };
346
347} // namespace Model
348} // namespace WorkMail
349} // namespace Aws
UpdateUserRequest & WithUserId(Aws::String &&value)
UpdateUserRequest & WithIdentityProviderUserId(Aws::String &&value)
UpdateUserRequest & WithJobTitle(const Aws::String &value)
void SetZipCode(const Aws::String &value)
void SetOffice(const Aws::String &value)
const Aws::String & GetOrganizationId() const
UpdateUserRequest & WithCity(const char *value)
UpdateUserRequest & WithInitials(Aws::String &&value)
UpdateUserRequest & WithOrganizationId(const Aws::String &value)
void SetCountry(const Aws::String &value)
void SetIdentityProviderUserId(Aws::String &&value)
UpdateUserRequest & WithTelephone(const Aws::String &value)
const Aws::String & GetJobTitle() const
const Aws::String & GetDepartment() const
UpdateUserRequest & WithTelephone(Aws::String &&value)
UpdateUserRequest & WithCountry(Aws::String &&value)
UpdateUserRequest & WithFirstName(const char *value)
void SetIdentityProviderUserId(const char *value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateUserRequest & WithDepartment(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateUserRequest & WithOrganizationId(const char *value)
void SetIdentityProviderUserId(const Aws::String &value)
const Aws::String & GetInitials() const
UpdateUserRequest & WithCountry(const char *value)
UpdateUserRequest & WithDisplayName(Aws::String &&value)
UpdateUserRequest & WithFirstName(Aws::String &&value)
void SetStreet(const Aws::String &value)
UpdateUserRequest & WithZipCode(const Aws::String &value)
UpdateUserRequest & WithCompany(const Aws::String &value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
void SetDepartment(const Aws::String &value)
UpdateUserRequest & WithOffice(Aws::String &&value)
UpdateUserRequest & WithIdentityProviderUserId(const Aws::String &value)
UpdateUserRequest & WithUserId(const char *value)
UpdateUserRequest & WithStreet(const char *value)
UpdateUserRequest & WithCompany(Aws::String &&value)
void SetOrganizationId(const Aws::String &value)
void SetInitials(const Aws::String &value)
void SetTelephone(const Aws::String &value)
UpdateUserRequest & WithLastName(const char *value)
UpdateUserRequest & WithCompany(const char *value)
UpdateUserRequest & WithCity(const Aws::String &value)
UpdateUserRequest & WithDepartment(const Aws::String &value)
void SetDisplayName(const Aws::String &value)
void SetCity(const Aws::String &value)
UpdateUserRequest & WithJobTitle(Aws::String &&value)
UpdateUserRequest & WithIdentityProviderUserId(const char *value)
const Aws::String & GetDisplayName() const
UpdateUserRequest & WithStreet(const Aws::String &value)
UpdateUserRequest & WithDisplayName(const Aws::String &value)
void SetUserId(const Aws::String &value)
UpdateUserRequest & WithDisplayName(const char *value)
UpdateUserRequest & WithHiddenFromGlobalAddressList(bool value)
UpdateUserRequest & WithDepartment(Aws::String &&value)
const Aws::String & GetUserId() const
UpdateUserRequest & WithOffice(const char *value)
UpdateUserRequest & WithTelephone(const char *value)
const Aws::String & GetFirstName() const
const Aws::String & GetTelephone() const
void SetOrganizationId(Aws::String &&value)
void SetJobTitle(const Aws::String &value)
UpdateUserRequest & WithZipCode(Aws::String &&value)
void SetCompany(const Aws::String &value)
void SetFirstName(const Aws::String &value)
UpdateUserRequest & WithJobTitle(const char *value)
UpdateUserRequest & WithLastName(const Aws::String &value)
UpdateUserRequest & WithLastName(Aws::String &&value)
UpdateUserRequest & WithOrganizationId(Aws::String &&value)
const Aws::String & GetLastName() const
UpdateUserRequest & WithRole(const UserRole &value)
void SetLastName(const Aws::String &value)
const Aws::String & GetIdentityProviderUserId() const
UpdateUserRequest & WithRole(UserRole &&value)
UpdateUserRequest & WithOffice(const Aws::String &value)
UpdateUserRequest & WithInitials(const Aws::String &value)
UpdateUserRequest & WithZipCode(const char *value)
UpdateUserRequest & WithUserId(const Aws::String &value)
UpdateUserRequest & WithFirstName(const Aws::String &value)
UpdateUserRequest & WithCity(Aws::String &&value)
UpdateUserRequest & WithStreet(Aws::String &&value)
UpdateUserRequest & WithInitials(const char *value)
UpdateUserRequest & WithCountry(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String