# coding: utf-8

"""
    CartoVista REST API

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

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

import pprint
import re  # noqa: F401

import six

class EditorSettings(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 = {
        'visible': 'bool',
        'mode': 'EditorMode',
        'calculated_values': 'OneOfEditorSettingsCalculatedValues',
        'domain_of_values': 'object'
    }

    attribute_map = {
        'visible': 'visible',
        'mode': 'mode',
        'calculated_values': 'calculatedValues',
        'domain_of_values': 'domainOfValues'
    }

    def __init__(self, visible=None, mode=None, calculated_values=None, domain_of_values=None):  # noqa: E501
        """EditorSettings - a model defined in Swagger"""  # noqa: E501
        self._visible = None
        self._mode = None
        self._calculated_values = None
        self._domain_of_values = None
        self.discriminator = None
        if visible is not None:
            self.visible = visible
        if mode is not None:
            self.mode = mode
        if calculated_values is not None:
            self.calculated_values = calculated_values
        if domain_of_values is not None:
            self.domain_of_values = domain_of_values

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


        :return: The visible of this EditorSettings.  # noqa: E501
        :rtype: bool
        """
        return self._visible

    @visible.setter
    def visible(self, visible):
        """Sets the visible of this EditorSettings.


        :param visible: The visible of this EditorSettings.  # noqa: E501
        :type: bool
        """

        self._visible = visible

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


        :return: The mode of this EditorSettings.  # noqa: E501
        :rtype: EditorMode
        """
        return self._mode

    @mode.setter
    def mode(self, mode):
        """Sets the mode of this EditorSettings.


        :param mode: The mode of this EditorSettings.  # noqa: E501
        :type: EditorMode
        """

        self._mode = mode

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


        :return: The calculated_values of this EditorSettings.  # noqa: E501
        :rtype: OneOfEditorSettingsCalculatedValues
        """
        return self._calculated_values

    @calculated_values.setter
    def calculated_values(self, calculated_values):
        """Sets the calculated_values of this EditorSettings.


        :param calculated_values: The calculated_values of this EditorSettings.  # noqa: E501
        :type: OneOfEditorSettingsCalculatedValues
        """

        self._calculated_values = calculated_values

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


        :return: The domain_of_values of this EditorSettings.  # noqa: E501
        :rtype: object
        """
        return self._domain_of_values

    @domain_of_values.setter
    def domain_of_values(self, domain_of_values):
        """Sets the domain_of_values of this EditorSettings.


        :param domain_of_values: The domain_of_values of this EditorSettings.  # noqa: E501
        :type: object
        """

        self._domain_of_values = domain_of_values

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

        return self.__dict__ == other.__dict__

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