/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace AppStream { namespace Model { /** */ class CreateUserRequest : public AppStreamRequest { public: AWS_APPSTREAM_API CreateUserRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; } AWS_APPSTREAM_API Aws::String SerializePayload() const override; AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The email address of the user.

Users' email addresses are * case-sensitive. During login, if they specify an email address that doesn't use * the same capitalization as the email address specified when their user pool * account was created, a "user does not exist" error message displays.

*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *

The email address of the user.

Users' email addresses are * case-sensitive. During login, if they specify an email address that doesn't use * the same capitalization as the email address specified when their user pool * account was created, a "user does not exist" error message displays.

*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *

The email address of the user.

Users' email addresses are * case-sensitive. During login, if they specify an email address that doesn't use * the same capitalization as the email address specified when their user pool * account was created, a "user does not exist" error message displays.

*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *

The email address of the user.

Users' email addresses are * case-sensitive. During login, if they specify an email address that doesn't use * the same capitalization as the email address specified when their user pool * account was created, a "user does not exist" error message displays.

*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *

The email address of the user.

Users' email addresses are * case-sensitive. During login, if they specify an email address that doesn't use * the same capitalization as the email address specified when their user pool * account was created, a "user does not exist" error message displays.

*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *

The email address of the user.

Users' email addresses are * case-sensitive. During login, if they specify an email address that doesn't use * the same capitalization as the email address specified when their user pool * account was created, a "user does not exist" error message displays.

*/ inline CreateUserRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *

The email address of the user.

Users' email addresses are * case-sensitive. During login, if they specify an email address that doesn't use * the same capitalization as the email address specified when their user pool * account was created, a "user does not exist" error message displays.

*/ inline CreateUserRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *

The email address of the user.

Users' email addresses are * case-sensitive. During login, if they specify an email address that doesn't use * the same capitalization as the email address specified when their user pool * account was created, a "user does not exist" error message displays.

*/ inline CreateUserRequest& WithUserName(const char* value) { SetUserName(value); return *this;} /** *

The action to take for the welcome email that is sent to a user after the * user is created in the user pool. If you specify SUPPRESS, no email is sent. If * you specify RESEND, do not specify the first name or last name of the user. If * the value is null, the email is sent.

The temporary password in * the welcome email is valid for only 7 days. If users don’t set their passwords * within 7 days, you must send them a new welcome email.

*/ inline const MessageAction& GetMessageAction() const{ return m_messageAction; } /** *

The action to take for the welcome email that is sent to a user after the * user is created in the user pool. If you specify SUPPRESS, no email is sent. If * you specify RESEND, do not specify the first name or last name of the user. If * the value is null, the email is sent.

The temporary password in * the welcome email is valid for only 7 days. If users don’t set their passwords * within 7 days, you must send them a new welcome email.

*/ inline bool MessageActionHasBeenSet() const { return m_messageActionHasBeenSet; } /** *

The action to take for the welcome email that is sent to a user after the * user is created in the user pool. If you specify SUPPRESS, no email is sent. If * you specify RESEND, do not specify the first name or last name of the user. If * the value is null, the email is sent.

The temporary password in * the welcome email is valid for only 7 days. If users don’t set their passwords * within 7 days, you must send them a new welcome email.

*/ inline void SetMessageAction(const MessageAction& value) { m_messageActionHasBeenSet = true; m_messageAction = value; } /** *

The action to take for the welcome email that is sent to a user after the * user is created in the user pool. If you specify SUPPRESS, no email is sent. If * you specify RESEND, do not specify the first name or last name of the user. If * the value is null, the email is sent.

The temporary password in * the welcome email is valid for only 7 days. If users don’t set their passwords * within 7 days, you must send them a new welcome email.

*/ inline void SetMessageAction(MessageAction&& value) { m_messageActionHasBeenSet = true; m_messageAction = std::move(value); } /** *

The action to take for the welcome email that is sent to a user after the * user is created in the user pool. If you specify SUPPRESS, no email is sent. If * you specify RESEND, do not specify the first name or last name of the user. If * the value is null, the email is sent.

The temporary password in * the welcome email is valid for only 7 days. If users don’t set their passwords * within 7 days, you must send them a new welcome email.

*/ inline CreateUserRequest& WithMessageAction(const MessageAction& value) { SetMessageAction(value); return *this;} /** *

The action to take for the welcome email that is sent to a user after the * user is created in the user pool. If you specify SUPPRESS, no email is sent. If * you specify RESEND, do not specify the first name or last name of the user. If * the value is null, the email is sent.

The temporary password in * the welcome email is valid for only 7 days. If users don’t set their passwords * within 7 days, you must send them a new welcome email.

*/ inline CreateUserRequest& WithMessageAction(MessageAction&& value) { SetMessageAction(std::move(value)); return *this;} /** *

The first name, or given name, of the user.

*/ inline const Aws::String& GetFirstName() const{ return m_firstName; } /** *

The first name, or given name, of the user.

*/ inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; } /** *

The first name, or given name, of the user.

*/ inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; } /** *

The first name, or given name, of the user.

*/ inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); } /** *

The first name, or given name, of the user.

*/ inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); } /** *

The first name, or given name, of the user.

*/ inline CreateUserRequest& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;} /** *

The first name, or given name, of the user.

*/ inline CreateUserRequest& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;} /** *

The first name, or given name, of the user.

*/ inline CreateUserRequest& WithFirstName(const char* value) { SetFirstName(value); return *this;} /** *

The last name, or surname, of the user.

*/ inline const Aws::String& GetLastName() const{ return m_lastName; } /** *

The last name, or surname, of the user.

*/ inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; } /** *

The last name, or surname, of the user.

*/ inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; } /** *

The last name, or surname, of the user.

*/ inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); } /** *

The last name, or surname, of the user.

*/ inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); } /** *

The last name, or surname, of the user.

*/ inline CreateUserRequest& WithLastName(const Aws::String& value) { SetLastName(value); return *this;} /** *

The last name, or surname, of the user.

*/ inline CreateUserRequest& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;} /** *

The last name, or surname, of the user.

*/ inline CreateUserRequest& WithLastName(const char* value) { SetLastName(value); return *this;} /** *

The authentication type for the user. You must specify USERPOOL.

*/ inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; } /** *

The authentication type for the user. You must specify USERPOOL.

*/ inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; } /** *

The authentication type for the user. You must specify USERPOOL.

*/ inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; } /** *

The authentication type for the user. You must specify USERPOOL.

*/ inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); } /** *

The authentication type for the user. You must specify USERPOOL.

*/ inline CreateUserRequest& WithAuthenticationType(const AuthenticationType& value) { SetAuthenticationType(value); return *this;} /** *

The authentication type for the user. You must specify USERPOOL.

*/ inline CreateUserRequest& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;} private: Aws::String m_userName; bool m_userNameHasBeenSet = false; MessageAction m_messageAction; bool m_messageActionHasBeenSet = false; Aws::String m_firstName; bool m_firstNameHasBeenSet = false; Aws::String m_lastName; bool m_lastNameHasBeenSet = false; AuthenticationType m_authenticationType; bool m_authenticationTypeHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws