# coding: utf-8
#      Copyright 2020. ThingsBoard
#  #
#      Licensed under the Apache License, Version 2.0 (the "License");
#      you may not use this file except in compliance with the License.
#      You may obtain a copy of the License at
#  #
#          http://www.apache.org/licenses/LICENSE-2.0
#  #
#      Unless required by applicable law or agreed to in writing, software
#      distributed under the License is distributed on an "AS IS" BASIS,
#      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#      See the License for the specific language governing permissions and
#      limitations under the License.
#

import pprint
import re  # noqa: F401

import six


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

    """
    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 = {
        'admin_settings_id': 'str',
        'captcha_secret_key': 'str',
        'captcha_site_key': 'str',
        'default_dashboard_fullscreen': 'bool',
        'default_dashboard_id': 'str',
        'domain_name': 'str',
        'notification_email': 'str',
        'permissions': 'list[GroupPermission]',
        'privacy_policy': 'str',
        'sign_up_text_message': 'str'
    }

    attribute_map = {
        'admin_settings_id': 'adminSettingsId',
        'captcha_secret_key': 'captchaSecretKey',
        'captcha_site_key': 'captchaSiteKey',
        'default_dashboard_fullscreen': 'defaultDashboardFullscreen',
        'default_dashboard_id': 'defaultDashboardId',
        'domain_name': 'domainName',
        'notification_email': 'notificationEmail',
        'permissions': 'permissions',
        'privacy_policy': 'privacyPolicy',
        'sign_up_text_message': 'signUpTextMessage'
    }

    def __init__(self, admin_settings_id=None, captcha_secret_key=None, captcha_site_key=None, default_dashboard_fullscreen=None, default_dashboard_id=None, domain_name=None, notification_email=None, permissions=None, privacy_policy=None, sign_up_text_message=None):  # noqa: E501
        """SelfRegistrationParams - a model defined in Swagger"""  # noqa: E501

        self._admin_settings_id = None
        self._captcha_secret_key = None
        self._captcha_site_key = None
        self._default_dashboard_fullscreen = None
        self._default_dashboard_id = None
        self._domain_name = None
        self._notification_email = None
        self._permissions = None
        self._privacy_policy = None
        self._sign_up_text_message = None
        self.discriminator = None

        if admin_settings_id is not None:
            self.admin_settings_id = admin_settings_id
        if captcha_secret_key is not None:
            self.captcha_secret_key = captcha_secret_key
        if captcha_site_key is not None:
            self.captcha_site_key = captcha_site_key
        if default_dashboard_fullscreen is not None:
            self.default_dashboard_fullscreen = default_dashboard_fullscreen
        if default_dashboard_id is not None:
            self.default_dashboard_id = default_dashboard_id
        if domain_name is not None:
            self.domain_name = domain_name
        if notification_email is not None:
            self.notification_email = notification_email
        if permissions is not None:
            self.permissions = permissions
        if privacy_policy is not None:
            self.privacy_policy = privacy_policy
        if sign_up_text_message is not None:
            self.sign_up_text_message = sign_up_text_message

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


        :return: The admin_settings_id of this SelfRegistrationParams.  # noqa: E501
        :rtype: str
        """
        return self._admin_settings_id

    @admin_settings_id.setter
    def admin_settings_id(self, admin_settings_id):
        """Sets the admin_settings_id of this SelfRegistrationParams.


        :param admin_settings_id: The admin_settings_id of this SelfRegistrationParams.  # noqa: E501
        :type: str
        """

        self._admin_settings_id = admin_settings_id

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


        :return: The captcha_secret_key of this SelfRegistrationParams.  # noqa: E501
        :rtype: str
        """
        return self._captcha_secret_key

    @captcha_secret_key.setter
    def captcha_secret_key(self, captcha_secret_key):
        """Sets the captcha_secret_key of this SelfRegistrationParams.


        :param captcha_secret_key: The captcha_secret_key of this SelfRegistrationParams.  # noqa: E501
        :type: str
        """

        self._captcha_secret_key = captcha_secret_key

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


        :return: The captcha_site_key of this SelfRegistrationParams.  # noqa: E501
        :rtype: str
        """
        return self._captcha_site_key

    @captcha_site_key.setter
    def captcha_site_key(self, captcha_site_key):
        """Sets the captcha_site_key of this SelfRegistrationParams.


        :param captcha_site_key: The captcha_site_key of this SelfRegistrationParams.  # noqa: E501
        :type: str
        """

        self._captcha_site_key = captcha_site_key

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


        :return: The default_dashboard_fullscreen of this SelfRegistrationParams.  # noqa: E501
        :rtype: bool
        """
        return self._default_dashboard_fullscreen

    @default_dashboard_fullscreen.setter
    def default_dashboard_fullscreen(self, default_dashboard_fullscreen):
        """Sets the default_dashboard_fullscreen of this SelfRegistrationParams.


        :param default_dashboard_fullscreen: The default_dashboard_fullscreen of this SelfRegistrationParams.  # noqa: E501
        :type: bool
        """

        self._default_dashboard_fullscreen = default_dashboard_fullscreen

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


        :return: The default_dashboard_id of this SelfRegistrationParams.  # noqa: E501
        :rtype: str
        """
        return self._default_dashboard_id

    @default_dashboard_id.setter
    def default_dashboard_id(self, default_dashboard_id):
        """Sets the default_dashboard_id of this SelfRegistrationParams.


        :param default_dashboard_id: The default_dashboard_id of this SelfRegistrationParams.  # noqa: E501
        :type: str
        """

        self._default_dashboard_id = default_dashboard_id

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


        :return: The domain_name of this SelfRegistrationParams.  # noqa: E501
        :rtype: str
        """
        return self._domain_name

    @domain_name.setter
    def domain_name(self, domain_name):
        """Sets the domain_name of this SelfRegistrationParams.


        :param domain_name: The domain_name of this SelfRegistrationParams.  # noqa: E501
        :type: str
        """

        self._domain_name = domain_name

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


        :return: The notification_email of this SelfRegistrationParams.  # noqa: E501
        :rtype: str
        """
        return self._notification_email

    @notification_email.setter
    def notification_email(self, notification_email):
        """Sets the notification_email of this SelfRegistrationParams.


        :param notification_email: The notification_email of this SelfRegistrationParams.  # noqa: E501
        :type: str
        """

        self._notification_email = notification_email

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


        :return: The permissions of this SelfRegistrationParams.  # noqa: E501
        :rtype: list[GroupPermission]
        """
        return self._permissions

    @permissions.setter
    def permissions(self, permissions):
        """Sets the permissions of this SelfRegistrationParams.


        :param permissions: The permissions of this SelfRegistrationParams.  # noqa: E501
        :type: list[GroupPermission]
        """

        self._permissions = permissions

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


        :return: The privacy_policy of this SelfRegistrationParams.  # noqa: E501
        :rtype: str
        """
        return self._privacy_policy

    @privacy_policy.setter
    def privacy_policy(self, privacy_policy):
        """Sets the privacy_policy of this SelfRegistrationParams.


        :param privacy_policy: The privacy_policy of this SelfRegistrationParams.  # noqa: E501
        :type: str
        """

        self._privacy_policy = privacy_policy

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


        :return: The sign_up_text_message of this SelfRegistrationParams.  # noqa: E501
        :rtype: str
        """
        return self._sign_up_text_message

    @sign_up_text_message.setter
    def sign_up_text_message(self, sign_up_text_message):
        """Sets the sign_up_text_message of this SelfRegistrationParams.


        :param sign_up_text_message: The sign_up_text_message of this SelfRegistrationParams.  # noqa: E501
        :type: str
        """

        self._sign_up_text_message = sign_up_text_message

    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(SelfRegistrationParams, 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, SelfRegistrationParams):
            return False

        return self.__dict__ == other.__dict__

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