AWS SDK for C++  1.9.44
AWS SDK for C++
CreateUserRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace AlexaForBusiness
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetUserId() const{ return m_userId; }
44 
48  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
49 
53  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
54 
58  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
59 
63  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
64 
68  inline CreateUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
69 
73  inline CreateUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
74 
78  inline CreateUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
79 
80 
84  inline const Aws::String& GetFirstName() const{ return m_firstName; }
85 
89  inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
90 
94  inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
95 
99  inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); }
100 
104  inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
105 
109  inline CreateUserRequest& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
110 
114  inline CreateUserRequest& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
115 
119  inline CreateUserRequest& WithFirstName(const char* value) { SetFirstName(value); return *this;}
120 
121 
125  inline const Aws::String& GetLastName() const{ return m_lastName; }
126 
130  inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
131 
135  inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
136 
140  inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); }
141 
145  inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
146 
150  inline CreateUserRequest& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
151 
155  inline CreateUserRequest& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
156 
160  inline CreateUserRequest& WithLastName(const char* value) { SetLastName(value); return *this;}
161 
162 
166  inline const Aws::String& GetEmail() const{ return m_email; }
167 
171  inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
172 
176  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
177 
181  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
182 
186  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
187 
191  inline CreateUserRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
192 
196  inline CreateUserRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
197 
201  inline CreateUserRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
202 
203 
208  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
209 
214  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
215 
220  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
221 
226  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
227 
232  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
233 
238  inline CreateUserRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
239 
244  inline CreateUserRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
245 
250  inline CreateUserRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
251 
252 
256  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
257 
261  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
262 
266  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
267 
271  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
272 
276  inline CreateUserRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
277 
281  inline CreateUserRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
282 
286  inline CreateUserRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
287 
291  inline CreateUserRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
292 
293  private:
294 
295  Aws::String m_userId;
296  bool m_userIdHasBeenSet;
297 
298  Aws::String m_firstName;
299  bool m_firstNameHasBeenSet;
300 
301  Aws::String m_lastName;
302  bool m_lastNameHasBeenSet;
303 
304  Aws::String m_email;
305  bool m_emailHasBeenSet;
306 
307  Aws::String m_clientRequestToken;
308  bool m_clientRequestTokenHasBeenSet;
309 
310  Aws::Vector<Tag> m_tags;
311  bool m_tagsHasBeenSet;
312  };
313 
314 } // namespace Model
315 } // namespace AlexaForBusiness
316 } // namespace Aws
Aws::AlexaForBusiness::Model::CreateUserRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateUserRequest.h:226
Aws::AlexaForBusiness::Model::CreateUserRequest::SetUserId
void SetUserId(const Aws::String &value)
Definition: CreateUserRequest.h:53
Aws::AlexaForBusiness::Model::CreateUserRequest::WithLastName
CreateUserRequest & WithLastName(Aws::String &&value)
Definition: CreateUserRequest.h:155
Aws::AlexaForBusiness::Model::CreateUserRequest::WithUserId
CreateUserRequest & WithUserId(const Aws::String &value)
Definition: CreateUserRequest.h:68
Aws::AlexaForBusiness::Model::CreateUserRequest::WithLastName
CreateUserRequest & WithLastName(const char *value)
Definition: CreateUserRequest.h:160
Aws::AlexaForBusiness::Model::CreateUserRequest::WithUserId
CreateUserRequest & WithUserId(Aws::String &&value)
Definition: CreateUserRequest.h:73
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AlexaForBusiness::Model::CreateUserRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateUserRequest.h:232
Aws::AlexaForBusiness::Model::CreateUserRequest::SetEmail
void SetEmail(Aws::String &&value)
Definition: CreateUserRequest.h:181
Aws::AlexaForBusiness::Model::CreateUserRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateUserRequest.h:256
Aws::AlexaForBusiness::Model::CreateUserRequest::WithClientRequestToken
CreateUserRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateUserRequest.h:238
Aws::AlexaForBusiness::Model::CreateUserRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateUserRequest.h:220
Tag.h
Aws::AlexaForBusiness::Model::CreateUserRequest::LastNameHasBeenSet
bool LastNameHasBeenSet() const
Definition: CreateUserRequest.h:130
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AlexaForBusiness::Model::CreateUserRequest::GetEmail
const Aws::String & GetEmail() const
Definition: CreateUserRequest.h:166
Aws::AlexaForBusiness::Model::CreateUserRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::AlexaForBusiness::Model::CreateUserRequest::WithEmail
CreateUserRequest & WithEmail(const char *value)
Definition: CreateUserRequest.h:201
Aws::AlexaForBusiness::Model::CreateUserRequest::WithEmail
CreateUserRequest & WithEmail(Aws::String &&value)
Definition: CreateUserRequest.h:196
AWSVector.h
Aws::AlexaForBusiness::Model::CreateUserRequest::WithTags
CreateUserRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateUserRequest.h:276
Aws::AlexaForBusiness::Model::CreateUserRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateUserRequest.h:261
Aws::AlexaForBusiness::Model::CreateUserRequest::WithClientRequestToken
CreateUserRequest & WithClientRequestToken(const char *value)
Definition: CreateUserRequest.h:250
Aws::AlexaForBusiness::Model::CreateUserRequest::SetUserId
void SetUserId(const char *value)
Definition: CreateUserRequest.h:63
Aws::AlexaForBusiness::Model::CreateUserRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateUserRequest.h:271
Aws::AlexaForBusiness::Model::CreateUserRequest::CreateUserRequest
CreateUserRequest()
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::CreateUserRequest::SetLastName
void SetLastName(Aws::String &&value)
Definition: CreateUserRequest.h:140
Aws::AlexaForBusiness::Model::CreateUserRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateUserRequest.h:208
Aws::AlexaForBusiness::Model::CreateUserRequest::GetFirstName
const Aws::String & GetFirstName() const
Definition: CreateUserRequest.h:84
Aws::AlexaForBusiness::Model::CreateUserRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateUserRequest.h:33
Aws::AlexaForBusiness::Model::Tag
Definition: Tag.h:33
Aws::AlexaForBusiness::Model::CreateUserRequest::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: CreateUserRequest.h:48
Aws::AlexaForBusiness::Model::CreateUserRequest::GetUserId
const Aws::String & GetUserId() const
Definition: CreateUserRequest.h:43
AWSString.h
Aws::AlexaForBusiness::Model::CreateUserRequest::SetUserId
void SetUserId(Aws::String &&value)
Definition: CreateUserRequest.h:58
Aws::AlexaForBusiness::Model::CreateUserRequest::WithLastName
CreateUserRequest & WithLastName(const Aws::String &value)
Definition: CreateUserRequest.h:150
Aws::AlexaForBusiness::Model::CreateUserRequest::WithFirstName
CreateUserRequest & WithFirstName(const Aws::String &value)
Definition: CreateUserRequest.h:109
Aws::AlexaForBusiness::Model::CreateUserRequest
Definition: CreateUserRequest.h:25
Aws::AlexaForBusiness::Model::CreateUserRequest::SetFirstName
void SetFirstName(Aws::String &&value)
Definition: CreateUserRequest.h:99
Aws::AlexaForBusiness::Model::CreateUserRequest::WithFirstName
CreateUserRequest & WithFirstName(const char *value)
Definition: CreateUserRequest.h:119
Aws::AlexaForBusiness::Model::CreateUserRequest::WithTags
CreateUserRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateUserRequest.h:281
Aws::AlexaForBusiness::Model::CreateUserRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateUserRequest.h:266
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::CreateUserRequest::SetFirstName
void SetFirstName(const Aws::String &value)
Definition: CreateUserRequest.h:94
Aws::AlexaForBusiness::Model::CreateUserRequest::WithEmail
CreateUserRequest & WithEmail(const Aws::String &value)
Definition: CreateUserRequest.h:191
Aws::AlexaForBusiness::Model::CreateUserRequest::WithUserId
CreateUserRequest & WithUserId(const char *value)
Definition: CreateUserRequest.h:78
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::Model::CreateUserRequest::SetLastName
void SetLastName(const Aws::String &value)
Definition: CreateUserRequest.h:135
Aws::AlexaForBusiness::AlexaForBusinessRequest
Definition: AlexaForBusinessRequest.h:17
Aws::AlexaForBusiness::Model::CreateUserRequest::WithClientRequestToken
CreateUserRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateUserRequest.h:244
Aws::AlexaForBusiness::Model::CreateUserRequest::AddTags
CreateUserRequest & AddTags(Tag &&value)
Definition: CreateUserRequest.h:291
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::CreateUserRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateUserRequest.h:214
Aws::AlexaForBusiness::Model::CreateUserRequest::GetLastName
const Aws::String & GetLastName() const
Definition: CreateUserRequest.h:125
Aws::AlexaForBusiness::Model::CreateUserRequest::SetLastName
void SetLastName(const char *value)
Definition: CreateUserRequest.h:145
Aws::AlexaForBusiness::Model::CreateUserRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AlexaForBusiness::Model::CreateUserRequest::SetEmail
void SetEmail(const char *value)
Definition: CreateUserRequest.h:186
Aws::AlexaForBusiness::Model::CreateUserRequest::SetFirstName
void SetFirstName(const char *value)
Definition: CreateUserRequest.h:104
UUID.h
Aws::AlexaForBusiness::Model::CreateUserRequest::EmailHasBeenSet
bool EmailHasBeenSet() const
Definition: CreateUserRequest.h:171
Aws::AlexaForBusiness::Model::CreateUserRequest::WithFirstName
CreateUserRequest & WithFirstName(Aws::String &&value)
Definition: CreateUserRequest.h:114
AlexaForBusinessRequest.h
Aws::AlexaForBusiness::Model::CreateUserRequest::FirstNameHasBeenSet
bool FirstNameHasBeenSet() const
Definition: CreateUserRequest.h:89
Aws::AlexaForBusiness::Model::CreateUserRequest::SetEmail
void SetEmail(const Aws::String &value)
Definition: CreateUserRequest.h:176
Aws::AlexaForBusiness::Model::CreateUserRequest::AddTags
CreateUserRequest & AddTags(const Tag &value)
Definition: CreateUserRequest.h:286