/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace WorkMail { namespace Model { /** */ class CreateUserRequest : public WorkMailRequest { public: AWS_WORKMAIL_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_WORKMAIL_API Aws::String SerializePayload() const override; AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the organization for which the user is created.

*/ inline const Aws::String& GetOrganizationId() const{ return m_organizationId; } /** *

The identifier of the organization for which the user is created.

*/ inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; } /** *

The identifier of the organization for which the user is created.

*/ inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; } /** *

The identifier of the organization for which the user is created.

*/ inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); } /** *

The identifier of the organization for which the user is created.

*/ inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); } /** *

The identifier of the organization for which the user is created.

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

The identifier of the organization for which the user is created.

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

The identifier of the organization for which the user is created.

*/ inline CreateUserRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;} /** *

The name for the new user. WorkMail directory user names have a maximum * length of 64. All others have a maximum length of 20.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name for the new user. WorkMail directory user names have a maximum * length of 64. All others have a maximum length of 20.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name for the new user. WorkMail directory user names have a maximum * length of 64. All others have a maximum length of 20.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name for the new user. WorkMail directory user names have a maximum * length of 64. All others have a maximum length of 20.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name for the new user. WorkMail directory user names have a maximum * length of 64. All others have a maximum length of 20.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name for the new user. WorkMail directory user names have a maximum * length of 64. All others have a maximum length of 20.

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

The name for the new user. WorkMail directory user names have a maximum * length of 64. All others have a maximum length of 20.

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

The name for the new user. WorkMail directory user names have a maximum * length of 64. All others have a maximum length of 20.

*/ inline CreateUserRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The display name for the new user.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The display name for the new user.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The display name for the new user.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The display name for the new user.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The display name for the new user.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The display name for the new user.

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

The display name for the new user.

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

The display name for the new user.

*/ inline CreateUserRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The password for the new user.

*/ inline const Aws::String& GetPassword() const{ return m_password; } /** *

The password for the new user.

*/ inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; } /** *

The password for the new user.

*/ inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; } /** *

The password for the new user.

*/ inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); } /** *

The password for the new user.

*/ inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); } /** *

The password for the new user.

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

The password for the new user.

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

The password for the new user.

*/ inline CreateUserRequest& WithPassword(const char* value) { SetPassword(value); return *this;} private: Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws