# coding: utf-8

"""
    id

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class CreateUserPoolRequest(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'brand': 'BrandForCreateUserPoolInput',
        'description': 'str',
        'email_passwordless_sign_in_enabled': 'bool',
        'name': 'str',
        'password_sign_in_enabled': 'bool',
        'project_name': 'str',
        'required_sign_up_attributes': 'list[str]',
        'self_account_recovery_enabled': 'bool',
        'self_sign_up_enabled': 'bool',
        'sign_in_attributes': 'list[str]',
        'sign_up_auto_verification_enabled': 'bool',
        'sms_anonymous_sign_up_enabled': 'str',
        'sms_passwordless_sign_in_enabled': 'bool',
        'tags': 'list[TagForCreateUserPoolInput]',
        'unconfirmed_user_sign_in_enabled': 'bool'
    }

    attribute_map = {
        'brand': 'Brand',
        'description': 'Description',
        'email_passwordless_sign_in_enabled': 'EmailPasswordlessSignInEnabled',
        'name': 'Name',
        'password_sign_in_enabled': 'PasswordSignInEnabled',
        'project_name': 'ProjectName',
        'required_sign_up_attributes': 'RequiredSignUpAttributes',
        'self_account_recovery_enabled': 'SelfAccountRecoveryEnabled',
        'self_sign_up_enabled': 'SelfSignUpEnabled',
        'sign_in_attributes': 'SignInAttributes',
        'sign_up_auto_verification_enabled': 'SignUpAutoVerificationEnabled',
        'sms_anonymous_sign_up_enabled': 'SmsAnonymousSignUpEnabled',
        'sms_passwordless_sign_in_enabled': 'SmsPasswordlessSignInEnabled',
        'tags': 'Tags',
        'unconfirmed_user_sign_in_enabled': 'UnconfirmedUserSignInEnabled'
    }

    def __init__(self, brand=None, description=None, email_passwordless_sign_in_enabled=None, name=None, password_sign_in_enabled=None, project_name=None, required_sign_up_attributes=None, self_account_recovery_enabled=None, self_sign_up_enabled=None, sign_in_attributes=None, sign_up_auto_verification_enabled=None, sms_anonymous_sign_up_enabled=None, sms_passwordless_sign_in_enabled=None, tags=None, unconfirmed_user_sign_in_enabled=None, _configuration=None):  # noqa: E501
        """CreateUserPoolRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._brand = None
        self._description = None
        self._email_passwordless_sign_in_enabled = None
        self._name = None
        self._password_sign_in_enabled = None
        self._project_name = None
        self._required_sign_up_attributes = None
        self._self_account_recovery_enabled = None
        self._self_sign_up_enabled = None
        self._sign_in_attributes = None
        self._sign_up_auto_verification_enabled = None
        self._sms_anonymous_sign_up_enabled = None
        self._sms_passwordless_sign_in_enabled = None
        self._tags = None
        self._unconfirmed_user_sign_in_enabled = None
        self.discriminator = None

        if brand is not None:
            self.brand = brand
        if description is not None:
            self.description = description
        if email_passwordless_sign_in_enabled is not None:
            self.email_passwordless_sign_in_enabled = email_passwordless_sign_in_enabled
        self.name = name
        if password_sign_in_enabled is not None:
            self.password_sign_in_enabled = password_sign_in_enabled
        if project_name is not None:
            self.project_name = project_name
        if required_sign_up_attributes is not None:
            self.required_sign_up_attributes = required_sign_up_attributes
        if self_account_recovery_enabled is not None:
            self.self_account_recovery_enabled = self_account_recovery_enabled
        if self_sign_up_enabled is not None:
            self.self_sign_up_enabled = self_sign_up_enabled
        if sign_in_attributes is not None:
            self.sign_in_attributes = sign_in_attributes
        if sign_up_auto_verification_enabled is not None:
            self.sign_up_auto_verification_enabled = sign_up_auto_verification_enabled
        if sms_anonymous_sign_up_enabled is not None:
            self.sms_anonymous_sign_up_enabled = sms_anonymous_sign_up_enabled
        if sms_passwordless_sign_in_enabled is not None:
            self.sms_passwordless_sign_in_enabled = sms_passwordless_sign_in_enabled
        if tags is not None:
            self.tags = tags
        if unconfirmed_user_sign_in_enabled is not None:
            self.unconfirmed_user_sign_in_enabled = unconfirmed_user_sign_in_enabled

    @property
    def brand(self):
        """Gets the brand of this CreateUserPoolRequest.  # noqa: E501


        :return: The brand of this CreateUserPoolRequest.  # noqa: E501
        :rtype: BrandForCreateUserPoolInput
        """
        return self._brand

    @brand.setter
    def brand(self, brand):
        """Sets the brand of this CreateUserPoolRequest.


        :param brand: The brand of this CreateUserPoolRequest.  # noqa: E501
        :type: BrandForCreateUserPoolInput
        """

        self._brand = brand

    @property
    def description(self):
        """Gets the description of this CreateUserPoolRequest.  # noqa: E501


        :return: The description of this CreateUserPoolRequest.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this CreateUserPoolRequest.


        :param description: The description of this CreateUserPoolRequest.  # noqa: E501
        :type: str
        """

        self._description = description

    @property
    def email_passwordless_sign_in_enabled(self):
        """Gets the email_passwordless_sign_in_enabled of this CreateUserPoolRequest.  # noqa: E501


        :return: The email_passwordless_sign_in_enabled of this CreateUserPoolRequest.  # noqa: E501
        :rtype: bool
        """
        return self._email_passwordless_sign_in_enabled

    @email_passwordless_sign_in_enabled.setter
    def email_passwordless_sign_in_enabled(self, email_passwordless_sign_in_enabled):
        """Sets the email_passwordless_sign_in_enabled of this CreateUserPoolRequest.


        :param email_passwordless_sign_in_enabled: The email_passwordless_sign_in_enabled of this CreateUserPoolRequest.  # noqa: E501
        :type: bool
        """

        self._email_passwordless_sign_in_enabled = email_passwordless_sign_in_enabled

    @property
    def name(self):
        """Gets the name of this CreateUserPoolRequest.  # noqa: E501


        :return: The name of this CreateUserPoolRequest.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this CreateUserPoolRequest.


        :param name: The name of this CreateUserPoolRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and name is None:
            raise ValueError("Invalid value for `name`, must not be `None`")  # noqa: E501

        self._name = name

    @property
    def password_sign_in_enabled(self):
        """Gets the password_sign_in_enabled of this CreateUserPoolRequest.  # noqa: E501


        :return: The password_sign_in_enabled of this CreateUserPoolRequest.  # noqa: E501
        :rtype: bool
        """
        return self._password_sign_in_enabled

    @password_sign_in_enabled.setter
    def password_sign_in_enabled(self, password_sign_in_enabled):
        """Sets the password_sign_in_enabled of this CreateUserPoolRequest.


        :param password_sign_in_enabled: The password_sign_in_enabled of this CreateUserPoolRequest.  # noqa: E501
        :type: bool
        """

        self._password_sign_in_enabled = password_sign_in_enabled

    @property
    def project_name(self):
        """Gets the project_name of this CreateUserPoolRequest.  # noqa: E501


        :return: The project_name of this CreateUserPoolRequest.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this CreateUserPoolRequest.


        :param project_name: The project_name of this CreateUserPoolRequest.  # noqa: E501
        :type: str
        """
        if (self._configuration.client_side_validation and
                project_name is not None and len(project_name) > 255):
            raise ValueError("Invalid value for `project_name`, length must be less than or equal to `255`")  # noqa: E501

        self._project_name = project_name

    @property
    def required_sign_up_attributes(self):
        """Gets the required_sign_up_attributes of this CreateUserPoolRequest.  # noqa: E501


        :return: The required_sign_up_attributes of this CreateUserPoolRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._required_sign_up_attributes

    @required_sign_up_attributes.setter
    def required_sign_up_attributes(self, required_sign_up_attributes):
        """Sets the required_sign_up_attributes of this CreateUserPoolRequest.


        :param required_sign_up_attributes: The required_sign_up_attributes of this CreateUserPoolRequest.  # noqa: E501
        :type: list[str]
        """

        self._required_sign_up_attributes = required_sign_up_attributes

    @property
    def self_account_recovery_enabled(self):
        """Gets the self_account_recovery_enabled of this CreateUserPoolRequest.  # noqa: E501


        :return: The self_account_recovery_enabled of this CreateUserPoolRequest.  # noqa: E501
        :rtype: bool
        """
        return self._self_account_recovery_enabled

    @self_account_recovery_enabled.setter
    def self_account_recovery_enabled(self, self_account_recovery_enabled):
        """Sets the self_account_recovery_enabled of this CreateUserPoolRequest.


        :param self_account_recovery_enabled: The self_account_recovery_enabled of this CreateUserPoolRequest.  # noqa: E501
        :type: bool
        """

        self._self_account_recovery_enabled = self_account_recovery_enabled

    @property
    def self_sign_up_enabled(self):
        """Gets the self_sign_up_enabled of this CreateUserPoolRequest.  # noqa: E501


        :return: The self_sign_up_enabled of this CreateUserPoolRequest.  # noqa: E501
        :rtype: bool
        """
        return self._self_sign_up_enabled

    @self_sign_up_enabled.setter
    def self_sign_up_enabled(self, self_sign_up_enabled):
        """Sets the self_sign_up_enabled of this CreateUserPoolRequest.


        :param self_sign_up_enabled: The self_sign_up_enabled of this CreateUserPoolRequest.  # noqa: E501
        :type: bool
        """

        self._self_sign_up_enabled = self_sign_up_enabled

    @property
    def sign_in_attributes(self):
        """Gets the sign_in_attributes of this CreateUserPoolRequest.  # noqa: E501


        :return: The sign_in_attributes of this CreateUserPoolRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._sign_in_attributes

    @sign_in_attributes.setter
    def sign_in_attributes(self, sign_in_attributes):
        """Sets the sign_in_attributes of this CreateUserPoolRequest.


        :param sign_in_attributes: The sign_in_attributes of this CreateUserPoolRequest.  # noqa: E501
        :type: list[str]
        """

        self._sign_in_attributes = sign_in_attributes

    @property
    def sign_up_auto_verification_enabled(self):
        """Gets the sign_up_auto_verification_enabled of this CreateUserPoolRequest.  # noqa: E501


        :return: The sign_up_auto_verification_enabled of this CreateUserPoolRequest.  # noqa: E501
        :rtype: bool
        """
        return self._sign_up_auto_verification_enabled

    @sign_up_auto_verification_enabled.setter
    def sign_up_auto_verification_enabled(self, sign_up_auto_verification_enabled):
        """Sets the sign_up_auto_verification_enabled of this CreateUserPoolRequest.


        :param sign_up_auto_verification_enabled: The sign_up_auto_verification_enabled of this CreateUserPoolRequest.  # noqa: E501
        :type: bool
        """

        self._sign_up_auto_verification_enabled = sign_up_auto_verification_enabled

    @property
    def sms_anonymous_sign_up_enabled(self):
        """Gets the sms_anonymous_sign_up_enabled of this CreateUserPoolRequest.  # noqa: E501


        :return: The sms_anonymous_sign_up_enabled of this CreateUserPoolRequest.  # noqa: E501
        :rtype: str
        """
        return self._sms_anonymous_sign_up_enabled

    @sms_anonymous_sign_up_enabled.setter
    def sms_anonymous_sign_up_enabled(self, sms_anonymous_sign_up_enabled):
        """Sets the sms_anonymous_sign_up_enabled of this CreateUserPoolRequest.


        :param sms_anonymous_sign_up_enabled: The sms_anonymous_sign_up_enabled of this CreateUserPoolRequest.  # noqa: E501
        :type: str
        """

        self._sms_anonymous_sign_up_enabled = sms_anonymous_sign_up_enabled

    @property
    def sms_passwordless_sign_in_enabled(self):
        """Gets the sms_passwordless_sign_in_enabled of this CreateUserPoolRequest.  # noqa: E501


        :return: The sms_passwordless_sign_in_enabled of this CreateUserPoolRequest.  # noqa: E501
        :rtype: bool
        """
        return self._sms_passwordless_sign_in_enabled

    @sms_passwordless_sign_in_enabled.setter
    def sms_passwordless_sign_in_enabled(self, sms_passwordless_sign_in_enabled):
        """Sets the sms_passwordless_sign_in_enabled of this CreateUserPoolRequest.


        :param sms_passwordless_sign_in_enabled: The sms_passwordless_sign_in_enabled of this CreateUserPoolRequest.  # noqa: E501
        :type: bool
        """

        self._sms_passwordless_sign_in_enabled = sms_passwordless_sign_in_enabled

    @property
    def tags(self):
        """Gets the tags of this CreateUserPoolRequest.  # noqa: E501


        :return: The tags of this CreateUserPoolRequest.  # noqa: E501
        :rtype: list[TagForCreateUserPoolInput]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this CreateUserPoolRequest.


        :param tags: The tags of this CreateUserPoolRequest.  # noqa: E501
        :type: list[TagForCreateUserPoolInput]
        """

        self._tags = tags

    @property
    def unconfirmed_user_sign_in_enabled(self):
        """Gets the unconfirmed_user_sign_in_enabled of this CreateUserPoolRequest.  # noqa: E501


        :return: The unconfirmed_user_sign_in_enabled of this CreateUserPoolRequest.  # noqa: E501
        :rtype: bool
        """
        return self._unconfirmed_user_sign_in_enabled

    @unconfirmed_user_sign_in_enabled.setter
    def unconfirmed_user_sign_in_enabled(self, unconfirmed_user_sign_in_enabled):
        """Sets the unconfirmed_user_sign_in_enabled of this CreateUserPoolRequest.


        :param unconfirmed_user_sign_in_enabled: The unconfirmed_user_sign_in_enabled of this CreateUserPoolRequest.  # noqa: E501
        :type: bool
        """

        self._unconfirmed_user_sign_in_enabled = unconfirmed_user_sign_in_enabled

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(CreateUserPoolRequest, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, CreateUserPoolRequest):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, CreateUserPoolRequest):
            return True

        return self.to_dict() != other.to_dict()
