AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIdentityStoreId(const Aws::String& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = value; }
49 inline void SetIdentityStoreId(Aws::String&& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = std::move(value); }
50 inline void SetIdentityStoreId(const char* value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId.assign(value); }
51 inline CreateUserRequest& WithIdentityStoreId(const Aws::String& value) { SetIdentityStoreId(value); return *this;}
52 inline CreateUserRequest& WithIdentityStoreId(Aws::String&& value) { SetIdentityStoreId(std::move(value)); return *this;}
53 inline CreateUserRequest& WithIdentityStoreId(const char* value) { SetIdentityStoreId(value); return *this;}
55
57
65 inline const Aws::String& GetUserName() const{ return m_userName; }
66 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
67 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
68 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
69 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
70 inline CreateUserRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
71 inline CreateUserRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
72 inline CreateUserRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
74
76
79 inline const Name& GetName() const{ return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 inline void SetName(const Name& value) { m_nameHasBeenSet = true; m_name = value; }
82 inline void SetName(Name&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
83 inline CreateUserRequest& WithName(const Name& value) { SetName(value); return *this;}
84 inline CreateUserRequest& WithName(Name&& value) { SetName(std::move(value)); return *this;}
86
88
92 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
93 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
94 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
95 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
96 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
97 inline CreateUserRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
98 inline CreateUserRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
99 inline CreateUserRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
101
103
106 inline const Aws::String& GetNickName() const{ return m_nickName; }
107 inline bool NickNameHasBeenSet() const { return m_nickNameHasBeenSet; }
108 inline void SetNickName(const Aws::String& value) { m_nickNameHasBeenSet = true; m_nickName = value; }
109 inline void SetNickName(Aws::String&& value) { m_nickNameHasBeenSet = true; m_nickName = std::move(value); }
110 inline void SetNickName(const char* value) { m_nickNameHasBeenSet = true; m_nickName.assign(value); }
111 inline CreateUserRequest& WithNickName(const Aws::String& value) { SetNickName(value); return *this;}
112 inline CreateUserRequest& WithNickName(Aws::String&& value) { SetNickName(std::move(value)); return *this;}
113 inline CreateUserRequest& WithNickName(const char* value) { SetNickName(value); return *this;}
115
117
120 inline const Aws::String& GetProfileUrl() const{ return m_profileUrl; }
121 inline bool ProfileUrlHasBeenSet() const { return m_profileUrlHasBeenSet; }
122 inline void SetProfileUrl(const Aws::String& value) { m_profileUrlHasBeenSet = true; m_profileUrl = value; }
123 inline void SetProfileUrl(Aws::String&& value) { m_profileUrlHasBeenSet = true; m_profileUrl = std::move(value); }
124 inline void SetProfileUrl(const char* value) { m_profileUrlHasBeenSet = true; m_profileUrl.assign(value); }
125 inline CreateUserRequest& WithProfileUrl(const Aws::String& value) { SetProfileUrl(value); return *this;}
126 inline CreateUserRequest& WithProfileUrl(Aws::String&& value) { SetProfileUrl(std::move(value)); return *this;}
127 inline CreateUserRequest& WithProfileUrl(const char* value) { SetProfileUrl(value); return *this;}
129
131
135 inline const Aws::Vector<Email>& GetEmails() const{ return m_emails; }
136 inline bool EmailsHasBeenSet() const { return m_emailsHasBeenSet; }
137 inline void SetEmails(const Aws::Vector<Email>& value) { m_emailsHasBeenSet = true; m_emails = value; }
138 inline void SetEmails(Aws::Vector<Email>&& value) { m_emailsHasBeenSet = true; m_emails = std::move(value); }
139 inline CreateUserRequest& WithEmails(const Aws::Vector<Email>& value) { SetEmails(value); return *this;}
140 inline CreateUserRequest& WithEmails(Aws::Vector<Email>&& value) { SetEmails(std::move(value)); return *this;}
141 inline CreateUserRequest& AddEmails(const Email& value) { m_emailsHasBeenSet = true; m_emails.push_back(value); return *this; }
142 inline CreateUserRequest& AddEmails(Email&& value) { m_emailsHasBeenSet = true; m_emails.push_back(std::move(value)); return *this; }
144
146
150 inline const Aws::Vector<Address>& GetAddresses() const{ return m_addresses; }
151 inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
152 inline void SetAddresses(const Aws::Vector<Address>& value) { m_addressesHasBeenSet = true; m_addresses = value; }
153 inline void SetAddresses(Aws::Vector<Address>&& value) { m_addressesHasBeenSet = true; m_addresses = std::move(value); }
154 inline CreateUserRequest& WithAddresses(const Aws::Vector<Address>& value) { SetAddresses(value); return *this;}
155 inline CreateUserRequest& WithAddresses(Aws::Vector<Address>&& value) { SetAddresses(std::move(value)); return *this;}
156 inline CreateUserRequest& AddAddresses(const Address& value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
157 inline CreateUserRequest& AddAddresses(Address&& value) { m_addressesHasBeenSet = true; m_addresses.push_back(std::move(value)); return *this; }
159
161
165 inline const Aws::Vector<PhoneNumber>& GetPhoneNumbers() const{ return m_phoneNumbers; }
166 inline bool PhoneNumbersHasBeenSet() const { return m_phoneNumbersHasBeenSet; }
167 inline void SetPhoneNumbers(const Aws::Vector<PhoneNumber>& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers = value; }
168 inline void SetPhoneNumbers(Aws::Vector<PhoneNumber>&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers = std::move(value); }
169 inline CreateUserRequest& WithPhoneNumbers(const Aws::Vector<PhoneNumber>& value) { SetPhoneNumbers(value); return *this;}
170 inline CreateUserRequest& WithPhoneNumbers(Aws::Vector<PhoneNumber>&& value) { SetPhoneNumbers(std::move(value)); return *this;}
171 inline CreateUserRequest& AddPhoneNumbers(const PhoneNumber& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers.push_back(value); return *this; }
172 inline CreateUserRequest& AddPhoneNumbers(PhoneNumber&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers.push_back(std::move(value)); return *this; }
174
176
180 inline const Aws::String& GetUserType() const{ return m_userType; }
181 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
182 inline void SetUserType(const Aws::String& value) { m_userTypeHasBeenSet = true; m_userType = value; }
183 inline void SetUserType(Aws::String&& value) { m_userTypeHasBeenSet = true; m_userType = std::move(value); }
184 inline void SetUserType(const char* value) { m_userTypeHasBeenSet = true; m_userType.assign(value); }
185 inline CreateUserRequest& WithUserType(const Aws::String& value) { SetUserType(value); return *this;}
186 inline CreateUserRequest& WithUserType(Aws::String&& value) { SetUserType(std::move(value)); return *this;}
187 inline CreateUserRequest& WithUserType(const char* value) { SetUserType(value); return *this;}
189
191
195 inline const Aws::String& GetTitle() const{ return m_title; }
196 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
197 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
198 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
199 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
200 inline CreateUserRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
201 inline CreateUserRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
202 inline CreateUserRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
204
206
210 inline const Aws::String& GetPreferredLanguage() const{ return m_preferredLanguage; }
211 inline bool PreferredLanguageHasBeenSet() const { return m_preferredLanguageHasBeenSet; }
212 inline void SetPreferredLanguage(const Aws::String& value) { m_preferredLanguageHasBeenSet = true; m_preferredLanguage = value; }
213 inline void SetPreferredLanguage(Aws::String&& value) { m_preferredLanguageHasBeenSet = true; m_preferredLanguage = std::move(value); }
214 inline void SetPreferredLanguage(const char* value) { m_preferredLanguageHasBeenSet = true; m_preferredLanguage.assign(value); }
215 inline CreateUserRequest& WithPreferredLanguage(const Aws::String& value) { SetPreferredLanguage(value); return *this;}
216 inline CreateUserRequest& WithPreferredLanguage(Aws::String&& value) { SetPreferredLanguage(std::move(value)); return *this;}
217 inline CreateUserRequest& WithPreferredLanguage(const char* value) { SetPreferredLanguage(value); return *this;}
219
221
224 inline const Aws::String& GetLocale() const{ return m_locale; }
225 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
226 inline void SetLocale(const Aws::String& value) { m_localeHasBeenSet = true; m_locale = value; }
227 inline void SetLocale(Aws::String&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
228 inline void SetLocale(const char* value) { m_localeHasBeenSet = true; m_locale.assign(value); }
229 inline CreateUserRequest& WithLocale(const Aws::String& value) { SetLocale(value); return *this;}
230 inline CreateUserRequest& WithLocale(Aws::String&& value) { SetLocale(std::move(value)); return *this;}
231 inline CreateUserRequest& WithLocale(const char* value) { SetLocale(value); return *this;}
233
235
238 inline const Aws::String& GetTimezone() const{ return m_timezone; }
239 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
240 inline void SetTimezone(const Aws::String& value) { m_timezoneHasBeenSet = true; m_timezone = value; }
241 inline void SetTimezone(Aws::String&& value) { m_timezoneHasBeenSet = true; m_timezone = std::move(value); }
242 inline void SetTimezone(const char* value) { m_timezoneHasBeenSet = true; m_timezone.assign(value); }
243 inline CreateUserRequest& WithTimezone(const Aws::String& value) { SetTimezone(value); return *this;}
244 inline CreateUserRequest& WithTimezone(Aws::String&& value) { SetTimezone(std::move(value)); return *this;}
245 inline CreateUserRequest& WithTimezone(const char* value) { SetTimezone(value); return *this;}
247 private:
248
249 Aws::String m_identityStoreId;
250 bool m_identityStoreIdHasBeenSet = false;
251
252 Aws::String m_userName;
253 bool m_userNameHasBeenSet = false;
254
255 Name m_name;
256 bool m_nameHasBeenSet = false;
257
258 Aws::String m_displayName;
259 bool m_displayNameHasBeenSet = false;
260
261 Aws::String m_nickName;
262 bool m_nickNameHasBeenSet = false;
263
264 Aws::String m_profileUrl;
265 bool m_profileUrlHasBeenSet = false;
266
267 Aws::Vector<Email> m_emails;
268 bool m_emailsHasBeenSet = false;
269
270 Aws::Vector<Address> m_addresses;
271 bool m_addressesHasBeenSet = false;
272
273 Aws::Vector<PhoneNumber> m_phoneNumbers;
274 bool m_phoneNumbersHasBeenSet = false;
275
276 Aws::String m_userType;
277 bool m_userTypeHasBeenSet = false;
278
279 Aws::String m_title;
280 bool m_titleHasBeenSet = false;
281
282 Aws::String m_preferredLanguage;
283 bool m_preferredLanguageHasBeenSet = false;
284
285 Aws::String m_locale;
286 bool m_localeHasBeenSet = false;
287
288 Aws::String m_timezone;
289 bool m_timezoneHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace IdentityStore
294} // namespace Aws
CreateUserRequest & WithPreferredLanguage(const Aws::String &value)
CreateUserRequest & WithUserName(Aws::String &&value)
CreateUserRequest & WithTitle(const char *value)
CreateUserRequest & WithUserType(Aws::String &&value)
CreateUserRequest & WithAddresses(Aws::Vector< Address > &&value)
void SetUserName(const Aws::String &value)
CreateUserRequest & WithTitle(const Aws::String &value)
CreateUserRequest & WithEmails(const Aws::Vector< Email > &value)
CreateUserRequest & WithDisplayName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AWS_IDENTITYSTORE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateUserRequest & WithTimezone(const char *value)
CreateUserRequest & WithUserName(const Aws::String &value)
CreateUserRequest & AddAddresses(Address &&value)
CreateUserRequest & WithTimezone(const Aws::String &value)
const Aws::Vector< Email > & GetEmails() const
CreateUserRequest & WithProfileUrl(const char *value)
CreateUserRequest & AddPhoneNumbers(const PhoneNumber &value)
void SetDisplayName(const Aws::String &value)
void SetEmails(const Aws::Vector< Email > &value)
CreateUserRequest & AddPhoneNumbers(PhoneNumber &&value)
AWS_IDENTITYSTORE_API Aws::String SerializePayload() const override
const Aws::Vector< PhoneNumber > & GetPhoneNumbers() const
CreateUserRequest & AddEmails(const Email &value)
CreateUserRequest & WithNickName(const char *value)
CreateUserRequest & WithIdentityStoreId(const Aws::String &value)
CreateUserRequest & WithPreferredLanguage(Aws::String &&value)
CreateUserRequest & WithIdentityStoreId(const char *value)
CreateUserRequest & WithPreferredLanguage(const char *value)
CreateUserRequest & WithNickName(const Aws::String &value)
CreateUserRequest & WithProfileUrl(Aws::String &&value)
void SetPhoneNumbers(const Aws::Vector< PhoneNumber > &value)
void SetAddresses(Aws::Vector< Address > &&value)
CreateUserRequest & WithName(Name &&value)
void SetProfileUrl(const Aws::String &value)
CreateUserRequest & WithPhoneNumbers(const Aws::Vector< PhoneNumber > &value)
CreateUserRequest & WithDisplayName(const Aws::String &value)
CreateUserRequest & WithLocale(const Aws::String &value)
CreateUserRequest & WithPhoneNumbers(Aws::Vector< PhoneNumber > &&value)
CreateUserRequest & AddAddresses(const Address &value)
CreateUserRequest & WithName(const Name &value)
void SetEmails(Aws::Vector< Email > &&value)
CreateUserRequest & WithEmails(Aws::Vector< Email > &&value)
CreateUserRequest & WithIdentityStoreId(Aws::String &&value)
CreateUserRequest & WithTitle(Aws::String &&value)
CreateUserRequest & WithLocale(const char *value)
void SetIdentityStoreId(const Aws::String &value)
void SetPreferredLanguage(const Aws::String &value)
CreateUserRequest & WithLocale(Aws::String &&value)
CreateUserRequest & WithProfileUrl(const Aws::String &value)
CreateUserRequest & WithTimezone(Aws::String &&value)
CreateUserRequest & WithAddresses(const Aws::Vector< Address > &value)
CreateUserRequest & WithUserType(const Aws::String &value)
CreateUserRequest & WithUserName(const char *value)
const Aws::Vector< Address > & GetAddresses() const
CreateUserRequest & WithDisplayName(const char *value)
void SetPhoneNumbers(Aws::Vector< PhoneNumber > &&value)
void SetAddresses(const Aws::Vector< Address > &value)
CreateUserRequest & AddEmails(Email &&value)
CreateUserRequest & WithNickName(Aws::String &&value)
CreateUserRequest & WithUserType(const char *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