AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/identitystore/IdentityStore_EXPORTS.h>
8#include <aws/identitystore/IdentityStoreRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/identitystore/model/Name.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/identitystore/model/Email.h>
13#include <aws/identitystore/model/Address.h>
14#include <aws/identitystore/model/PhoneNumber.h>
15#include <utility>
16
17namespace Aws
18{
19namespace IdentityStore
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IDENTITYSTORE_API CreateUserRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
36
37 AWS_IDENTITYSTORE_API Aws::String SerializePayload() const override;
38
39 AWS_IDENTITYSTORE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline const Aws::String& GetIdentityStoreId() const { return m_identityStoreId; }
47 inline bool IdentityStoreIdHasBeenSet() const { return m_identityStoreIdHasBeenSet; }
48 template<typename IdentityStoreIdT = Aws::String>
49 void SetIdentityStoreId(IdentityStoreIdT&& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = std::forward<IdentityStoreIdT>(value); }
50 template<typename IdentityStoreIdT = Aws::String>
51 CreateUserRequest& WithIdentityStoreId(IdentityStoreIdT&& value) { SetIdentityStoreId(std::forward<IdentityStoreIdT>(value)); return *this;}
53
55
63 inline const Aws::String& GetUserName() const { return m_userName; }
64 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
65 template<typename UserNameT = Aws::String>
66 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
67 template<typename UserNameT = Aws::String>
68 CreateUserRequest& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
70
72
75 inline const Name& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template<typename NameT = Name>
78 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
79 template<typename NameT = Name>
80 CreateUserRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
82
84
88 inline const Aws::String& GetDisplayName() const { return m_displayName; }
89 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
90 template<typename DisplayNameT = Aws::String>
91 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
92 template<typename DisplayNameT = Aws::String>
93 CreateUserRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
95
97
100 inline const Aws::String& GetNickName() const { return m_nickName; }
101 inline bool NickNameHasBeenSet() const { return m_nickNameHasBeenSet; }
102 template<typename NickNameT = Aws::String>
103 void SetNickName(NickNameT&& value) { m_nickNameHasBeenSet = true; m_nickName = std::forward<NickNameT>(value); }
104 template<typename NickNameT = Aws::String>
105 CreateUserRequest& WithNickName(NickNameT&& value) { SetNickName(std::forward<NickNameT>(value)); return *this;}
107
109
112 inline const Aws::String& GetProfileUrl() const { return m_profileUrl; }
113 inline bool ProfileUrlHasBeenSet() const { return m_profileUrlHasBeenSet; }
114 template<typename ProfileUrlT = Aws::String>
115 void SetProfileUrl(ProfileUrlT&& value) { m_profileUrlHasBeenSet = true; m_profileUrl = std::forward<ProfileUrlT>(value); }
116 template<typename ProfileUrlT = Aws::String>
117 CreateUserRequest& WithProfileUrl(ProfileUrlT&& value) { SetProfileUrl(std::forward<ProfileUrlT>(value)); return *this;}
119
121
125 inline const Aws::Vector<Email>& GetEmails() const { return m_emails; }
126 inline bool EmailsHasBeenSet() const { return m_emailsHasBeenSet; }
127 template<typename EmailsT = Aws::Vector<Email>>
128 void SetEmails(EmailsT&& value) { m_emailsHasBeenSet = true; m_emails = std::forward<EmailsT>(value); }
129 template<typename EmailsT = Aws::Vector<Email>>
130 CreateUserRequest& WithEmails(EmailsT&& value) { SetEmails(std::forward<EmailsT>(value)); return *this;}
131 template<typename EmailsT = Email>
132 CreateUserRequest& AddEmails(EmailsT&& value) { m_emailsHasBeenSet = true; m_emails.emplace_back(std::forward<EmailsT>(value)); return *this; }
134
136
140 inline const Aws::Vector<Address>& GetAddresses() const { return m_addresses; }
141 inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
142 template<typename AddressesT = Aws::Vector<Address>>
143 void SetAddresses(AddressesT&& value) { m_addressesHasBeenSet = true; m_addresses = std::forward<AddressesT>(value); }
144 template<typename AddressesT = Aws::Vector<Address>>
145 CreateUserRequest& WithAddresses(AddressesT&& value) { SetAddresses(std::forward<AddressesT>(value)); return *this;}
146 template<typename AddressesT = Address>
147 CreateUserRequest& AddAddresses(AddressesT&& value) { m_addressesHasBeenSet = true; m_addresses.emplace_back(std::forward<AddressesT>(value)); return *this; }
149
151
155 inline const Aws::Vector<PhoneNumber>& GetPhoneNumbers() const { return m_phoneNumbers; }
156 inline bool PhoneNumbersHasBeenSet() const { return m_phoneNumbersHasBeenSet; }
157 template<typename PhoneNumbersT = Aws::Vector<PhoneNumber>>
158 void SetPhoneNumbers(PhoneNumbersT&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers = std::forward<PhoneNumbersT>(value); }
159 template<typename PhoneNumbersT = Aws::Vector<PhoneNumber>>
160 CreateUserRequest& WithPhoneNumbers(PhoneNumbersT&& value) { SetPhoneNumbers(std::forward<PhoneNumbersT>(value)); return *this;}
161 template<typename PhoneNumbersT = PhoneNumber>
162 CreateUserRequest& AddPhoneNumbers(PhoneNumbersT&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers.emplace_back(std::forward<PhoneNumbersT>(value)); return *this; }
164
166
170 inline const Aws::String& GetUserType() const { return m_userType; }
171 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
172 template<typename UserTypeT = Aws::String>
173 void SetUserType(UserTypeT&& value) { m_userTypeHasBeenSet = true; m_userType = std::forward<UserTypeT>(value); }
174 template<typename UserTypeT = Aws::String>
175 CreateUserRequest& WithUserType(UserTypeT&& value) { SetUserType(std::forward<UserTypeT>(value)); return *this;}
177
179
183 inline const Aws::String& GetTitle() const { return m_title; }
184 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
185 template<typename TitleT = Aws::String>
186 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
187 template<typename TitleT = Aws::String>
188 CreateUserRequest& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
190
192
196 inline const Aws::String& GetPreferredLanguage() const { return m_preferredLanguage; }
197 inline bool PreferredLanguageHasBeenSet() const { return m_preferredLanguageHasBeenSet; }
198 template<typename PreferredLanguageT = Aws::String>
199 void SetPreferredLanguage(PreferredLanguageT&& value) { m_preferredLanguageHasBeenSet = true; m_preferredLanguage = std::forward<PreferredLanguageT>(value); }
200 template<typename PreferredLanguageT = Aws::String>
201 CreateUserRequest& WithPreferredLanguage(PreferredLanguageT&& value) { SetPreferredLanguage(std::forward<PreferredLanguageT>(value)); return *this;}
203
205
208 inline const Aws::String& GetLocale() const { return m_locale; }
209 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
210 template<typename LocaleT = Aws::String>
211 void SetLocale(LocaleT&& value) { m_localeHasBeenSet = true; m_locale = std::forward<LocaleT>(value); }
212 template<typename LocaleT = Aws::String>
213 CreateUserRequest& WithLocale(LocaleT&& value) { SetLocale(std::forward<LocaleT>(value)); return *this;}
215
217
220 inline const Aws::String& GetTimezone() const { return m_timezone; }
221 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
222 template<typename TimezoneT = Aws::String>
223 void SetTimezone(TimezoneT&& value) { m_timezoneHasBeenSet = true; m_timezone = std::forward<TimezoneT>(value); }
224 template<typename TimezoneT = Aws::String>
225 CreateUserRequest& WithTimezone(TimezoneT&& value) { SetTimezone(std::forward<TimezoneT>(value)); return *this;}
227 private:
228
229 Aws::String m_identityStoreId;
230 bool m_identityStoreIdHasBeenSet = false;
231
232 Aws::String m_userName;
233 bool m_userNameHasBeenSet = false;
234
235 Name m_name;
236 bool m_nameHasBeenSet = false;
237
238 Aws::String m_displayName;
239 bool m_displayNameHasBeenSet = false;
240
241 Aws::String m_nickName;
242 bool m_nickNameHasBeenSet = false;
243
244 Aws::String m_profileUrl;
245 bool m_profileUrlHasBeenSet = false;
246
247 Aws::Vector<Email> m_emails;
248 bool m_emailsHasBeenSet = false;
249
250 Aws::Vector<Address> m_addresses;
251 bool m_addressesHasBeenSet = false;
252
253 Aws::Vector<PhoneNumber> m_phoneNumbers;
254 bool m_phoneNumbersHasBeenSet = false;
255
256 Aws::String m_userType;
257 bool m_userTypeHasBeenSet = false;
258
259 Aws::String m_title;
260 bool m_titleHasBeenSet = false;
261
262 Aws::String m_preferredLanguage;
263 bool m_preferredLanguageHasBeenSet = false;
264
265 Aws::String m_locale;
266 bool m_localeHasBeenSet = false;
267
268 Aws::String m_timezone;
269 bool m_timezoneHasBeenSet = false;
270 };
271
272} // namespace Model
273} // namespace IdentityStore
274} // namespace Aws
CreateUserRequest & WithDisplayName(DisplayNameT &&value)
CreateUserRequest & WithUserName(UserNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IDENTITYSTORE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateUserRequest & AddPhoneNumbers(PhoneNumbersT &&value)
CreateUserRequest & AddEmails(EmailsT &&value)
const Aws::Vector< Email > & GetEmails() const
CreateUserRequest & AddAddresses(AddressesT &&value)
CreateUserRequest & WithTimezone(TimezoneT &&value)
AWS_IDENTITYSTORE_API CreateUserRequest()=default
AWS_IDENTITYSTORE_API Aws::String SerializePayload() const override
CreateUserRequest & WithPreferredLanguage(PreferredLanguageT &&value)
const Aws::Vector< PhoneNumber > & GetPhoneNumbers() const
CreateUserRequest & WithName(NameT &&value)
CreateUserRequest & WithProfileUrl(ProfileUrlT &&value)
CreateUserRequest & WithUserType(UserTypeT &&value)
CreateUserRequest & WithPhoneNumbers(PhoneNumbersT &&value)
CreateUserRequest & WithIdentityStoreId(IdentityStoreIdT &&value)
void SetPreferredLanguage(PreferredLanguageT &&value)
CreateUserRequest & WithAddresses(AddressesT &&value)
CreateUserRequest & WithEmails(EmailsT &&value)
CreateUserRequest & WithTitle(TitleT &&value)
void SetIdentityStoreId(IdentityStoreIdT &&value)
const Aws::Vector< Address > & GetAddresses() const
CreateUserRequest & WithLocale(LocaleT &&value)
CreateUserRequest & WithNickName(NickNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector