# 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 CreateUserPoolClientRequest(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 = {
        'allowed_callback_urls': 'list[str]',
        'client_type': 'str',
        'description': 'str',
        'development_mode_enabled': 'bool',
        'logo_uri': 'str',
        'name': 'str',
        'user_pool_uid': 'str'
    }

    attribute_map = {
        'allowed_callback_urls': 'AllowedCallbackUrls',
        'client_type': 'ClientType',
        'description': 'Description',
        'development_mode_enabled': 'DevelopmentModeEnabled',
        'logo_uri': 'LogoUri',
        'name': 'Name',
        'user_pool_uid': 'UserPoolUid'
    }

    def __init__(self, allowed_callback_urls=None, client_type=None, description=None, development_mode_enabled=None, logo_uri=None, name=None, user_pool_uid=None, _configuration=None):  # noqa: E501
        """CreateUserPoolClientRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._allowed_callback_urls = None
        self._client_type = None
        self._description = None
        self._development_mode_enabled = None
        self._logo_uri = None
        self._name = None
        self._user_pool_uid = None
        self.discriminator = None

        if allowed_callback_urls is not None:
            self.allowed_callback_urls = allowed_callback_urls
        self.client_type = client_type
        if description is not None:
            self.description = description
        if development_mode_enabled is not None:
            self.development_mode_enabled = development_mode_enabled
        if logo_uri is not None:
            self.logo_uri = logo_uri
        self.name = name
        self.user_pool_uid = user_pool_uid

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


        :return: The allowed_callback_urls of this CreateUserPoolClientRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._allowed_callback_urls

    @allowed_callback_urls.setter
    def allowed_callback_urls(self, allowed_callback_urls):
        """Sets the allowed_callback_urls of this CreateUserPoolClientRequest.


        :param allowed_callback_urls: The allowed_callback_urls of this CreateUserPoolClientRequest.  # noqa: E501
        :type: list[str]
        """

        self._allowed_callback_urls = allowed_callback_urls

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


        :return: The client_type of this CreateUserPoolClientRequest.  # noqa: E501
        :rtype: str
        """
        return self._client_type

    @client_type.setter
    def client_type(self, client_type):
        """Sets the client_type of this CreateUserPoolClientRequest.


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

        self._client_type = client_type

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


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

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


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

        self._description = description

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


        :return: The development_mode_enabled of this CreateUserPoolClientRequest.  # noqa: E501
        :rtype: bool
        """
        return self._development_mode_enabled

    @development_mode_enabled.setter
    def development_mode_enabled(self, development_mode_enabled):
        """Sets the development_mode_enabled of this CreateUserPoolClientRequest.


        :param development_mode_enabled: The development_mode_enabled of this CreateUserPoolClientRequest.  # noqa: E501
        :type: bool
        """

        self._development_mode_enabled = development_mode_enabled

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


        :return: The logo_uri of this CreateUserPoolClientRequest.  # noqa: E501
        :rtype: str
        """
        return self._logo_uri

    @logo_uri.setter
    def logo_uri(self, logo_uri):
        """Sets the logo_uri of this CreateUserPoolClientRequest.


        :param logo_uri: The logo_uri of this CreateUserPoolClientRequest.  # noqa: E501
        :type: str
        """

        self._logo_uri = logo_uri

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


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

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


        :param name: The name of this CreateUserPoolClientRequest.  # 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 user_pool_uid(self):
        """Gets the user_pool_uid of this CreateUserPoolClientRequest.  # noqa: E501


        :return: The user_pool_uid of this CreateUserPoolClientRequest.  # 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 CreateUserPoolClientRequest.


        :param user_pool_uid: The user_pool_uid of this CreateUserPoolClientRequest.  # 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(CreateUserPoolClientRequest, 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, CreateUserPoolClientRequest):
            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, CreateUserPoolClientRequest):
            return True

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