# 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 UpdateUserPoolRequest(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': 'BrandForUpdateUserPoolInput',
        'description': 'str',
        'email_passwordless_sign_in_enabled': 'bool',
        'name': 'str',
        'password_sign_in_enabled': 'bool',
        'self_account_recovery_enabled': 'bool',
        'self_sign_up_enabled': 'bool',
        'sign_up_auto_verification_enabled': 'bool',
        'sms_anonymous_sign_up_enabled': 'str',
        'sms_passwordless_sign_in_enabled': 'bool',
        'unconfirmed_user_sign_in_enabled': 'bool',
        'user_pool_uid': 'str'
    }

    attribute_map = {
        'brand': 'Brand',
        'description': 'Description',
        'email_passwordless_sign_in_enabled': 'EmailPasswordlessSignInEnabled',
        'name': 'Name',
        'password_sign_in_enabled': 'PasswordSignInEnabled',
        'self_account_recovery_enabled': 'SelfAccountRecoveryEnabled',
        'self_sign_up_enabled': 'SelfSignUpEnabled',
        'sign_up_auto_verification_enabled': 'SignUpAutoVerificationEnabled',
        'sms_anonymous_sign_up_enabled': 'SmsAnonymousSignUpEnabled',
        'sms_passwordless_sign_in_enabled': 'SmsPasswordlessSignInEnabled',
        'unconfirmed_user_sign_in_enabled': 'UnconfirmedUserSignInEnabled',
        'user_pool_uid': 'UserPoolUid'
    }

    def __init__(self, brand=None, description=None, email_passwordless_sign_in_enabled=None, name=None, password_sign_in_enabled=None, self_account_recovery_enabled=None, self_sign_up_enabled=None, sign_up_auto_verification_enabled=None, sms_anonymous_sign_up_enabled=None, sms_passwordless_sign_in_enabled=None, unconfirmed_user_sign_in_enabled=None, user_pool_uid=None, _configuration=None):  # noqa: E501
        """UpdateUserPoolRequest - 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._self_account_recovery_enabled = None
        self._self_sign_up_enabled = None
        self._sign_up_auto_verification_enabled = None
        self._sms_anonymous_sign_up_enabled = None
        self._sms_passwordless_sign_in_enabled = None
        self._unconfirmed_user_sign_in_enabled = None
        self._user_pool_uid = 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
        if name is not None:
            self.name = name
        if password_sign_in_enabled is not None:
            self.password_sign_in_enabled = password_sign_in_enabled
        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_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 unconfirmed_user_sign_in_enabled is not None:
            self.unconfirmed_user_sign_in_enabled = unconfirmed_user_sign_in_enabled
        self.user_pool_uid = user_pool_uid

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


        :return: The brand of this UpdateUserPoolRequest.  # noqa: E501
        :rtype: BrandForUpdateUserPoolInput
        """
        return self._brand

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


        :param brand: The brand of this UpdateUserPoolRequest.  # noqa: E501
        :type: BrandForUpdateUserPoolInput
        """

        self._brand = brand

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


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

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


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

        self._description = description

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


        :return: The email_passwordless_sign_in_enabled of this UpdateUserPoolRequest.  # 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 UpdateUserPoolRequest.


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

        self._email_passwordless_sign_in_enabled = email_passwordless_sign_in_enabled

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


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

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


        :param name: The name of this UpdateUserPoolRequest.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The password_sign_in_enabled of this UpdateUserPoolRequest.  # 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 UpdateUserPoolRequest.


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

        self._password_sign_in_enabled = password_sign_in_enabled

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


        :return: The self_account_recovery_enabled of this UpdateUserPoolRequest.  # 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 UpdateUserPoolRequest.


        :param self_account_recovery_enabled: The self_account_recovery_enabled of this UpdateUserPoolRequest.  # 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 UpdateUserPoolRequest.  # noqa: E501


        :return: The self_sign_up_enabled of this UpdateUserPoolRequest.  # 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 UpdateUserPoolRequest.


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

        self._self_sign_up_enabled = self_sign_up_enabled

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


        :return: The sign_up_auto_verification_enabled of this UpdateUserPoolRequest.  # 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 UpdateUserPoolRequest.


        :param sign_up_auto_verification_enabled: The sign_up_auto_verification_enabled of this UpdateUserPoolRequest.  # 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 UpdateUserPoolRequest.  # noqa: E501


        :return: The sms_anonymous_sign_up_enabled of this UpdateUserPoolRequest.  # 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 UpdateUserPoolRequest.


        :param sms_anonymous_sign_up_enabled: The sms_anonymous_sign_up_enabled of this UpdateUserPoolRequest.  # 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 UpdateUserPoolRequest.  # noqa: E501


        :return: The sms_passwordless_sign_in_enabled of this UpdateUserPoolRequest.  # 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 UpdateUserPoolRequest.


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

        self._sms_passwordless_sign_in_enabled = sms_passwordless_sign_in_enabled

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


        :return: The unconfirmed_user_sign_in_enabled of this UpdateUserPoolRequest.  # 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 UpdateUserPoolRequest.


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

        self._unconfirmed_user_sign_in_enabled = unconfirmed_user_sign_in_enabled

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


        :return: The user_pool_uid of this UpdateUserPoolRequest.  # noqa: E501
        :rtype: str
        """
        return self._user_pool_uid

    @user_pool_uid.setter
    def user_pool_uid(self, user_pool_uid):
        """Sets the user_pool_uid of this UpdateUserPoolRequest.


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

        self._user_pool_uid = user_pool_uid

    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(UpdateUserPoolRequest, 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, UpdateUserPoolRequest):
            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, UpdateUserPoolRequest):
            return True

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