# 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 HeatmapSettings(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 = {
        'id': 'str',
        'layer_id': 'str',
        'layer_name': 'str',
        'grid_layer_id': 'str',
        'columns': 'list[HeatmapColumn]',
        'power': 'float',
        'smoothing': 'float',
        'radius': 'float',
        'pixel_size': 'int',
        'is_generating': 'bool'
    }

    attribute_map = {
        'id': 'id',
        'layer_id': 'layerId',
        'layer_name': 'layerName',
        'grid_layer_id': 'gridLayerId',
        'columns': 'columns',
        'power': 'power',
        'smoothing': 'smoothing',
        'radius': 'radius',
        'pixel_size': 'pixelSize',
        'is_generating': 'isGenerating'
    }

    def __init__(self, id=None, layer_id=None, layer_name=None, grid_layer_id=None, columns=None, power=None, smoothing=None, radius=None, pixel_size=None, is_generating=None):  # noqa: E501
        """HeatmapSettings - a model defined in Swagger"""  # noqa: E501
        self._id = None
        self._layer_id = None
        self._layer_name = None
        self._grid_layer_id = None
        self._columns = None
        self._power = None
        self._smoothing = None
        self._radius = None
        self._pixel_size = None
        self._is_generating = None
        self.discriminator = None
        if id is not None:
            self.id = id
        if layer_id is not None:
            self.layer_id = layer_id
        if layer_name is not None:
            self.layer_name = layer_name
        if grid_layer_id is not None:
            self.grid_layer_id = grid_layer_id
        if columns is not None:
            self.columns = columns
        if power is not None:
            self.power = power
        if smoothing is not None:
            self.smoothing = smoothing
        if radius is not None:
            self.radius = radius
        if pixel_size is not None:
            self.pixel_size = pixel_size
        if is_generating is not None:
            self.is_generating = is_generating

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


        :return: The id of this HeatmapSettings.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this HeatmapSettings.


        :param id: The id of this HeatmapSettings.  # noqa: E501
        :type: str
        """

        self._id = id

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


        :return: The layer_id of this HeatmapSettings.  # noqa: E501
        :rtype: str
        """
        return self._layer_id

    @layer_id.setter
    def layer_id(self, layer_id):
        """Sets the layer_id of this HeatmapSettings.


        :param layer_id: The layer_id of this HeatmapSettings.  # noqa: E501
        :type: str
        """

        self._layer_id = layer_id

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


        :return: The layer_name of this HeatmapSettings.  # noqa: E501
        :rtype: str
        """
        return self._layer_name

    @layer_name.setter
    def layer_name(self, layer_name):
        """Sets the layer_name of this HeatmapSettings.


        :param layer_name: The layer_name of this HeatmapSettings.  # noqa: E501
        :type: str
        """

        self._layer_name = layer_name

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


        :return: The grid_layer_id of this HeatmapSettings.  # noqa: E501
        :rtype: str
        """
        return self._grid_layer_id

    @grid_layer_id.setter
    def grid_layer_id(self, grid_layer_id):
        """Sets the grid_layer_id of this HeatmapSettings.


        :param grid_layer_id: The grid_layer_id of this HeatmapSettings.  # noqa: E501
        :type: str
        """

        self._grid_layer_id = grid_layer_id

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


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

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


        :param columns: The columns of this HeatmapSettings.  # noqa: E501
        :type: list[HeatmapColumn]
        """

        self._columns = columns

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


        :return: The power of this HeatmapSettings.  # noqa: E501
        :rtype: float
        """
        return self._power

    @power.setter
    def power(self, power):
        """Sets the power of this HeatmapSettings.


        :param power: The power of this HeatmapSettings.  # noqa: E501
        :type: float
        """

        self._power = power

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


        :return: The smoothing of this HeatmapSettings.  # noqa: E501
        :rtype: float
        """
        return self._smoothing

    @smoothing.setter
    def smoothing(self, smoothing):
        """Sets the smoothing of this HeatmapSettings.


        :param smoothing: The smoothing of this HeatmapSettings.  # noqa: E501
        :type: float
        """

        self._smoothing = smoothing

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


        :return: The radius of this HeatmapSettings.  # noqa: E501
        :rtype: float
        """
        return self._radius

    @radius.setter
    def radius(self, radius):
        """Sets the radius of this HeatmapSettings.


        :param radius: The radius of this HeatmapSettings.  # noqa: E501
        :type: float
        """

        self._radius = radius

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


        :return: The pixel_size of this HeatmapSettings.  # noqa: E501
        :rtype: int
        """
        return self._pixel_size

    @pixel_size.setter
    def pixel_size(self, pixel_size):
        """Sets the pixel_size of this HeatmapSettings.


        :param pixel_size: The pixel_size of this HeatmapSettings.  # noqa: E501
        :type: int
        """

        self._pixel_size = pixel_size

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


        :return: The is_generating of this HeatmapSettings.  # noqa: E501
        :rtype: bool
        """
        return self._is_generating

    @is_generating.setter
    def is_generating(self, is_generating):
        """Sets the is_generating of this HeatmapSettings.


        :param is_generating: The is_generating of this HeatmapSettings.  # noqa: E501
        :type: bool
        """

        self._is_generating = is_generating

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

        return self.__dict__ == other.__dict__

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