AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename OrganizationIdT = Aws::String>
45 void SetOrganizationId(OrganizationIdT&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::forward<OrganizationIdT>(value); }
46 template<typename OrganizationIdT = Aws::String>
47 UpdateUserRequest& WithOrganizationId(OrganizationIdT&& value) { SetOrganizationId(std::forward<OrganizationIdT>(value)); return *this;}
49
51
58 inline const Aws::String& GetUserId() const { return m_userId; }
59 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
60 template<typename UserIdT = Aws::String>
61 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
62 template<typename UserIdT = Aws::String>
63 UpdateUserRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
65
67
71 inline UserRole GetRole() const { return m_role; }
72 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
73 inline void SetRole(UserRole value) { m_roleHasBeenSet = true; m_role = value; }
74 inline UpdateUserRequest& WithRole(UserRole value) { SetRole(value); return *this;}
76
78
81 inline const Aws::String& GetDisplayName() const { return m_displayName; }
82 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
83 template<typename DisplayNameT = Aws::String>
84 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
85 template<typename DisplayNameT = Aws::String>
86 UpdateUserRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
88
90
93 inline const Aws::String& GetFirstName() const { return m_firstName; }
94 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
95 template<typename FirstNameT = Aws::String>
96 void SetFirstName(FirstNameT&& value) { m_firstNameHasBeenSet = true; m_firstName = std::forward<FirstNameT>(value); }
97 template<typename FirstNameT = Aws::String>
98 UpdateUserRequest& WithFirstName(FirstNameT&& value) { SetFirstName(std::forward<FirstNameT>(value)); return *this;}
100
102
105 inline const Aws::String& GetLastName() const { return m_lastName; }
106 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
107 template<typename LastNameT = Aws::String>
108 void SetLastName(LastNameT&& value) { m_lastNameHasBeenSet = true; m_lastName = std::forward<LastNameT>(value); }
109 template<typename LastNameT = Aws::String>
110 UpdateUserRequest& WithLastName(LastNameT&& value) { SetLastName(std::forward<LastNameT>(value)); return *this;}
112
114
117 inline bool GetHiddenFromGlobalAddressList() const { return m_hiddenFromGlobalAddressList; }
118 inline bool HiddenFromGlobalAddressListHasBeenSet() const { return m_hiddenFromGlobalAddressListHasBeenSet; }
119 inline void SetHiddenFromGlobalAddressList(bool value) { m_hiddenFromGlobalAddressListHasBeenSet = true; m_hiddenFromGlobalAddressList = value; }
122
124
127 inline const Aws::String& GetInitials() const { return m_initials; }
128 inline bool InitialsHasBeenSet() const { return m_initialsHasBeenSet; }
129 template<typename InitialsT = Aws::String>
130 void SetInitials(InitialsT&& value) { m_initialsHasBeenSet = true; m_initials = std::forward<InitialsT>(value); }
131 template<typename InitialsT = Aws::String>
132 UpdateUserRequest& WithInitials(InitialsT&& value) { SetInitials(std::forward<InitialsT>(value)); return *this;}
134
136
139 inline const Aws::String& GetTelephone() const { return m_telephone; }
140 inline bool TelephoneHasBeenSet() const { return m_telephoneHasBeenSet; }
141 template<typename TelephoneT = Aws::String>
142 void SetTelephone(TelephoneT&& value) { m_telephoneHasBeenSet = true; m_telephone = std::forward<TelephoneT>(value); }
143 template<typename TelephoneT = Aws::String>
144 UpdateUserRequest& WithTelephone(TelephoneT&& value) { SetTelephone(std::forward<TelephoneT>(value)); return *this;}
146
148
151 inline const Aws::String& GetStreet() const { return m_street; }
152 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
153 template<typename StreetT = Aws::String>
154 void SetStreet(StreetT&& value) { m_streetHasBeenSet = true; m_street = std::forward<StreetT>(value); }
155 template<typename StreetT = Aws::String>
156 UpdateUserRequest& WithStreet(StreetT&& value) { SetStreet(std::forward<StreetT>(value)); return *this;}
158
160
163 inline const Aws::String& GetJobTitle() const { return m_jobTitle; }
164 inline bool JobTitleHasBeenSet() const { return m_jobTitleHasBeenSet; }
165 template<typename JobTitleT = Aws::String>
166 void SetJobTitle(JobTitleT&& value) { m_jobTitleHasBeenSet = true; m_jobTitle = std::forward<JobTitleT>(value); }
167 template<typename JobTitleT = Aws::String>
168 UpdateUserRequest& WithJobTitle(JobTitleT&& value) { SetJobTitle(std::forward<JobTitleT>(value)); return *this;}
170
172
175 inline const Aws::String& GetCity() const { return m_city; }
176 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
177 template<typename CityT = Aws::String>
178 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
179 template<typename CityT = Aws::String>
180 UpdateUserRequest& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
182
184
187 inline const Aws::String& GetCompany() const { return m_company; }
188 inline bool CompanyHasBeenSet() const { return m_companyHasBeenSet; }
189 template<typename CompanyT = Aws::String>
190 void SetCompany(CompanyT&& value) { m_companyHasBeenSet = true; m_company = std::forward<CompanyT>(value); }
191 template<typename CompanyT = Aws::String>
192 UpdateUserRequest& WithCompany(CompanyT&& value) { SetCompany(std::forward<CompanyT>(value)); return *this;}
194
196
199 inline const Aws::String& GetZipCode() const { return m_zipCode; }
200 inline bool ZipCodeHasBeenSet() const { return m_zipCodeHasBeenSet; }
201 template<typename ZipCodeT = Aws::String>
202 void SetZipCode(ZipCodeT&& value) { m_zipCodeHasBeenSet = true; m_zipCode = std::forward<ZipCodeT>(value); }
203 template<typename ZipCodeT = Aws::String>
204 UpdateUserRequest& WithZipCode(ZipCodeT&& value) { SetZipCode(std::forward<ZipCodeT>(value)); return *this;}
206
208
211 inline const Aws::String& GetDepartment() const { return m_department; }
212 inline bool DepartmentHasBeenSet() const { return m_departmentHasBeenSet; }
213 template<typename DepartmentT = Aws::String>
214 void SetDepartment(DepartmentT&& value) { m_departmentHasBeenSet = true; m_department = std::forward<DepartmentT>(value); }
215 template<typename DepartmentT = Aws::String>
216 UpdateUserRequest& WithDepartment(DepartmentT&& value) { SetDepartment(std::forward<DepartmentT>(value)); return *this;}
218
220
223 inline const Aws::String& GetCountry() const { return m_country; }
224 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
225 template<typename CountryT = Aws::String>
226 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
227 template<typename CountryT = Aws::String>
228 UpdateUserRequest& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
230
232
235 inline const Aws::String& GetOffice() const { return m_office; }
236 inline bool OfficeHasBeenSet() const { return m_officeHasBeenSet; }
237 template<typename OfficeT = Aws::String>
238 void SetOffice(OfficeT&& value) { m_officeHasBeenSet = true; m_office = std::forward<OfficeT>(value); }
239 template<typename OfficeT = Aws::String>
240 UpdateUserRequest& WithOffice(OfficeT&& value) { SetOffice(std::forward<OfficeT>(value)); return *this;}
242
244
249 inline const Aws::String& GetIdentityProviderUserId() const { return m_identityProviderUserId; }
250 inline bool IdentityProviderUserIdHasBeenSet() const { return m_identityProviderUserIdHasBeenSet; }
251 template<typename IdentityProviderUserIdT = Aws::String>
252 void SetIdentityProviderUserId(IdentityProviderUserIdT&& value) { m_identityProviderUserIdHasBeenSet = true; m_identityProviderUserId = std::forward<IdentityProviderUserIdT>(value); }
253 template<typename IdentityProviderUserIdT = Aws::String>
254 UpdateUserRequest& WithIdentityProviderUserId(IdentityProviderUserIdT&& value) { SetIdentityProviderUserId(std::forward<IdentityProviderUserIdT>(value)); return *this;}
256 private:
257
258 Aws::String m_organizationId;
259 bool m_organizationIdHasBeenSet = false;
260
261 Aws::String m_userId;
262 bool m_userIdHasBeenSet = false;
263
265 bool m_roleHasBeenSet = false;
266
267 Aws::String m_displayName;
268 bool m_displayNameHasBeenSet = false;
269
270 Aws::String m_firstName;
271 bool m_firstNameHasBeenSet = false;
272
273 Aws::String m_lastName;
274 bool m_lastNameHasBeenSet = false;
275
276 bool m_hiddenFromGlobalAddressList{false};
277 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
278
279 Aws::String m_initials;
280 bool m_initialsHasBeenSet = false;
281
282 Aws::String m_telephone;
283 bool m_telephoneHasBeenSet = false;
284
285 Aws::String m_street;
286 bool m_streetHasBeenSet = false;
287
288 Aws::String m_jobTitle;
289 bool m_jobTitleHasBeenSet = false;
290
291 Aws::String m_city;
292 bool m_cityHasBeenSet = false;
293
294 Aws::String m_company;
295 bool m_companyHasBeenSet = false;
296
297 Aws::String m_zipCode;
298 bool m_zipCodeHasBeenSet = false;
299
300 Aws::String m_department;
301 bool m_departmentHasBeenSet = false;
302
303 Aws::String m_country;
304 bool m_countryHasBeenSet = false;
305
306 Aws::String m_office;
307 bool m_officeHasBeenSet = false;
308
309 Aws::String m_identityProviderUserId;
310 bool m_identityProviderUserIdHasBeenSet = false;
311 };
312
313} // namespace Model
314} // namespace WorkMail
315} // 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