AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateUserRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace AppStream
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
33
35
37
38
45 inline const Aws::String& GetUserName() const{ return m_userName; }
46
53 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
54
61 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
62
69 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
70
77 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
78
85 inline CreateUserRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
86
93 inline CreateUserRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
94
101 inline CreateUserRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
102
103
112 inline const MessageAction& GetMessageAction() const{ return m_messageAction; }
113
122 inline bool MessageActionHasBeenSet() const { return m_messageActionHasBeenSet; }
123
132 inline void SetMessageAction(const MessageAction& value) { m_messageActionHasBeenSet = true; m_messageAction = value; }
133
142 inline void SetMessageAction(MessageAction&& value) { m_messageActionHasBeenSet = true; m_messageAction = std::move(value); }
143
152 inline CreateUserRequest& WithMessageAction(const MessageAction& value) { SetMessageAction(value); return *this;}
153
162 inline CreateUserRequest& WithMessageAction(MessageAction&& value) { SetMessageAction(std::move(value)); return *this;}
163
164
168 inline const Aws::String& GetFirstName() const{ return m_firstName; }
169
173 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
174
178 inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
179
183 inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); }
184
188 inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
189
193 inline CreateUserRequest& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
194
198 inline CreateUserRequest& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
199
203 inline CreateUserRequest& WithFirstName(const char* value) { SetFirstName(value); return *this;}
204
205
209 inline const Aws::String& GetLastName() const{ return m_lastName; }
210
214 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
215
219 inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
220
224 inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); }
225
229 inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
230
234 inline CreateUserRequest& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
235
239 inline CreateUserRequest& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
240
244 inline CreateUserRequest& WithLastName(const char* value) { SetLastName(value); return *this;}
245
246
250 inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; }
251
255 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
256
260 inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
261
265 inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); }
266
271
275 inline CreateUserRequest& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;}
276
277 private:
278
279 Aws::String m_userName;
280 bool m_userNameHasBeenSet = false;
281
282 MessageAction m_messageAction;
283 bool m_messageActionHasBeenSet = false;
284
285 Aws::String m_firstName;
286 bool m_firstNameHasBeenSet = false;
287
288 Aws::String m_lastName;
289 bool m_lastNameHasBeenSet = false;
290
291 AuthenticationType m_authenticationType;
292 bool m_authenticationTypeHasBeenSet = false;
293 };
294
295} // namespace Model
296} // namespace AppStream
297} // namespace Aws
#define AWS_APPSTREAM_API
CreateUserRequest & WithMessageAction(const MessageAction &value)
void SetAuthenticationType(AuthenticationType &&value)
const AuthenticationType & GetAuthenticationType() const
CreateUserRequest & WithFirstName(const Aws::String &value)
const Aws::String & GetUserName() const
void SetMessageAction(const MessageAction &value)
const Aws::String & GetFirstName() const
CreateUserRequest & WithAuthenticationType(const AuthenticationType &value)
CreateUserRequest & WithUserName(Aws::String &&value)
void SetLastName(const Aws::String &value)
void SetAuthenticationType(const AuthenticationType &value)
void SetFirstName(const Aws::String &value)
CreateUserRequest & WithUserName(const char *value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
void SetMessageAction(MessageAction &&value)
CreateUserRequest & WithLastName(const Aws::String &value)
CreateUserRequest & WithAuthenticationType(AuthenticationType &&value)
virtual const char * GetServiceRequestName() const override
const MessageAction & GetMessageAction() const
CreateUserRequest & WithLastName(const char *value)
CreateUserRequest & WithUserName(const Aws::String &value)
CreateUserRequest & WithFirstName(Aws::String &&value)
CreateUserRequest & WithLastName(Aws::String &&value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetLastName() const
void SetUserName(const Aws::String &value)
CreateUserRequest & WithFirstName(const char *value)
CreateUserRequest & WithMessageAction(MessageAction &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String