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

The ID of the organization.

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

The ID of the organization.

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

The ID of the organization.

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

The ID of the organization.

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

The ID of the organization.

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

The ID of the organization.

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

The ID of the organization.

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

The ID of the organization.

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

The login name of the user.

*/ inline const Aws::String& GetUsername() const{ return m_username; } /** *

The login name of the user.

*/ inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } /** *

The login name of the user.

*/ inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } /** *

The login name of the user.

*/ inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } /** *

The login name of the user.

*/ inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } /** *

The login name of the user.

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

The login name of the user.

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

The login name of the user.

*/ inline CreateUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;} /** *

The email address of the user.

*/ inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; } /** *

The email address of the user.

*/ inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; } /** *

The email address of the user.

*/ inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; } /** *

The email address of the user.

*/ inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); } /** *

The email address of the user.

*/ inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); } /** *

The email address of the user.

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

The email address of the user.

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

The email address of the user.

*/ inline CreateUserRequest& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;} /** *

The given name of the user.

*/ inline const Aws::String& GetGivenName() const{ return m_givenName; } /** *

The given name of the user.

*/ inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; } /** *

The given name of the user.

*/ inline void SetGivenName(const Aws::String& value) { m_givenNameHasBeenSet = true; m_givenName = value; } /** *

The given name of the user.

*/ inline void SetGivenName(Aws::String&& value) { m_givenNameHasBeenSet = true; m_givenName = std::move(value); } /** *

The given name of the user.

*/ inline void SetGivenName(const char* value) { m_givenNameHasBeenSet = true; m_givenName.assign(value); } /** *

The given name of the user.

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

The given name of the user.

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

The given name of the user.

*/ inline CreateUserRequest& WithGivenName(const char* value) { SetGivenName(value); return *this;} /** *

The surname of the user.

*/ inline const Aws::String& GetSurname() const{ return m_surname; } /** *

The surname of the user.

*/ inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; } /** *

The surname of the user.

*/ inline void SetSurname(const Aws::String& value) { m_surnameHasBeenSet = true; m_surname = value; } /** *

The surname of the user.

*/ inline void SetSurname(Aws::String&& value) { m_surnameHasBeenSet = true; m_surname = std::move(value); } /** *

The surname of the user.

*/ inline void SetSurname(const char* value) { m_surnameHasBeenSet = true; m_surname.assign(value); } /** *

The surname of the user.

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

The surname of the user.

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

The surname of the user.

*/ inline CreateUserRequest& WithSurname(const char* value) { SetSurname(value); return *this;} /** *

The password of the user.

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

The password of the user.

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

The password of the user.

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

The password of the user.

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

The password of the user.

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

The password of the user.

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

The password of the user.

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

The password of the user.

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

The time zone ID of the user.

*/ inline const Aws::String& GetTimeZoneId() const{ return m_timeZoneId; } /** *

The time zone ID of the user.

*/ inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; } /** *

The time zone ID of the user.

*/ inline void SetTimeZoneId(const Aws::String& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = value; } /** *

The time zone ID of the user.

*/ inline void SetTimeZoneId(Aws::String&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::move(value); } /** *

The time zone ID of the user.

*/ inline void SetTimeZoneId(const char* value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId.assign(value); } /** *

The time zone ID of the user.

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

The time zone ID of the user.

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

The time zone ID of the user.

*/ inline CreateUserRequest& WithTimeZoneId(const char* value) { SetTimeZoneId(value); return *this;} /** *

The amount of storage for the user.

*/ inline const StorageRuleType& GetStorageRule() const{ return m_storageRule; } /** *

The amount of storage for the user.

*/ inline bool StorageRuleHasBeenSet() const { return m_storageRuleHasBeenSet; } /** *

The amount of storage for the user.

*/ inline void SetStorageRule(const StorageRuleType& value) { m_storageRuleHasBeenSet = true; m_storageRule = value; } /** *

The amount of storage for the user.

*/ inline void SetStorageRule(StorageRuleType&& value) { m_storageRuleHasBeenSet = true; m_storageRule = std::move(value); } /** *

The amount of storage for the user.

*/ inline CreateUserRequest& WithStorageRule(const StorageRuleType& value) { SetStorageRule(value); return *this;} /** *

The amount of storage for the user.

*/ inline CreateUserRequest& WithStorageRule(StorageRuleType&& value) { SetStorageRule(std::move(value)); return *this;} /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; } /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; } /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; } /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); } /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); } /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

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

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

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

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline CreateUserRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;} private: Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; Aws::String m_username; bool m_usernameHasBeenSet = false; Aws::String m_emailAddress; bool m_emailAddressHasBeenSet = false; Aws::String m_givenName; bool m_givenNameHasBeenSet = false; Aws::String m_surname; bool m_surnameHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; Aws::String m_timeZoneId; bool m_timeZoneIdHasBeenSet = false; StorageRuleType m_storageRule; bool m_storageRuleHasBeenSet = false; Aws::String m_authenticationToken; bool m_authenticationTokenHasBeenSet = false; }; } // namespace Model } // namespace WorkDocs } // namespace Aws