# 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 HeatmapSettingsDetails(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 = {
        'settings': 'OneOfHeatmapSettingsDetailsSettings',
        'default_settings': 'DefaultHeatmapSettings',
        'layer': 'Layer',
        'columns': 'list[DataColumn]'
    }

    attribute_map = {
        'settings': 'settings',
        'default_settings': 'defaultSettings',
        'layer': 'layer',
        'columns': 'columns'
    }

    def __init__(self, settings=None, default_settings=None, layer=None, columns=None):  # noqa: E501
        """HeatmapSettingsDetails - a model defined in Swagger"""  # noqa: E501
        self._settings = None
        self._default_settings = None
        self._layer = None
        self._columns = None
        self.discriminator = None
        if settings is not None:
            self.settings = settings
        if default_settings is not None:
            self.default_settings = default_settings
        if layer is not None:
            self.layer = layer
        if columns is not None:
            self.columns = columns

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


        :return: The settings of this HeatmapSettingsDetails.  # noqa: E501
        :rtype: OneOfHeatmapSettingsDetailsSettings
        """
        return self._settings

    @settings.setter
    def settings(self, settings):
        """Sets the settings of this HeatmapSettingsDetails.


        :param settings: The settings of this HeatmapSettingsDetails.  # noqa: E501
        :type: OneOfHeatmapSettingsDetailsSettings
        """

        self._settings = settings

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


        :return: The default_settings of this HeatmapSettingsDetails.  # noqa: E501
        :rtype: DefaultHeatmapSettings
        """
        return self._default_settings

    @default_settings.setter
    def default_settings(self, default_settings):
        """Sets the default_settings of this HeatmapSettingsDetails.


        :param default_settings: The default_settings of this HeatmapSettingsDetails.  # noqa: E501
        :type: DefaultHeatmapSettings
        """

        self._default_settings = default_settings

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


        :return: The layer of this HeatmapSettingsDetails.  # noqa: E501
        :rtype: Layer
        """
        return self._layer

    @layer.setter
    def layer(self, layer):
        """Sets the layer of this HeatmapSettingsDetails.


        :param layer: The layer of this HeatmapSettingsDetails.  # noqa: E501
        :type: Layer
        """

        self._layer = layer

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


        :return: The columns of this HeatmapSettingsDetails.  # noqa: E501
        :rtype: list[DataColumn]
        """
        return self._columns

    @columns.setter
    def columns(self, columns):
        """Sets the columns of this HeatmapSettingsDetails.


        :param columns: The columns of this HeatmapSettingsDetails.  # noqa: E501
        :type: list[DataColumn]
        """

        self._columns = columns

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

        return self.__dict__ == other.__dict__

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