# 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 MapSettings(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 = {
        'distance_unit': 'str',
        'area_unit': 'str',
        'zoom_on_map_load': 'bool',
        'lazy_loading': 'bool',
        'zoom_restrictions': 'ZoomRestrictionSettings',
        'scalebar_visible': 'bool'
    }

    attribute_map = {
        'distance_unit': 'distanceUnit',
        'area_unit': 'areaUnit',
        'zoom_on_map_load': 'zoomOnMapLoad',
        'lazy_loading': 'lazyLoading',
        'zoom_restrictions': 'zoomRestrictions',
        'scalebar_visible': 'scalebarVisible'
    }

    def __init__(self, distance_unit=None, area_unit=None, zoom_on_map_load=None, lazy_loading=None, zoom_restrictions=None, scalebar_visible=None):  # noqa: E501
        """MapSettings - a model defined in Swagger"""  # noqa: E501
        self._distance_unit = None
        self._area_unit = None
        self._zoom_on_map_load = None
        self._lazy_loading = None
        self._zoom_restrictions = None
        self._scalebar_visible = None
        self.discriminator = None
        if distance_unit is not None:
            self.distance_unit = distance_unit
        if area_unit is not None:
            self.area_unit = area_unit
        if zoom_on_map_load is not None:
            self.zoom_on_map_load = zoom_on_map_load
        if lazy_loading is not None:
            self.lazy_loading = lazy_loading
        if zoom_restrictions is not None:
            self.zoom_restrictions = zoom_restrictions
        if scalebar_visible is not None:
            self.scalebar_visible = scalebar_visible

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


        :return: The distance_unit of this MapSettings.  # noqa: E501
        :rtype: str
        """
        return self._distance_unit

    @distance_unit.setter
    def distance_unit(self, distance_unit):
        """Sets the distance_unit of this MapSettings.


        :param distance_unit: The distance_unit of this MapSettings.  # noqa: E501
        :type: str
        """

        self._distance_unit = distance_unit

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


        :return: The area_unit of this MapSettings.  # noqa: E501
        :rtype: str
        """
        return self._area_unit

    @area_unit.setter
    def area_unit(self, area_unit):
        """Sets the area_unit of this MapSettings.


        :param area_unit: The area_unit of this MapSettings.  # noqa: E501
        :type: str
        """

        self._area_unit = area_unit

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


        :return: The zoom_on_map_load of this MapSettings.  # noqa: E501
        :rtype: bool
        """
        return self._zoom_on_map_load

    @zoom_on_map_load.setter
    def zoom_on_map_load(self, zoom_on_map_load):
        """Sets the zoom_on_map_load of this MapSettings.


        :param zoom_on_map_load: The zoom_on_map_load of this MapSettings.  # noqa: E501
        :type: bool
        """

        self._zoom_on_map_load = zoom_on_map_load

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


        :return: The lazy_loading of this MapSettings.  # noqa: E501
        :rtype: bool
        """
        return self._lazy_loading

    @lazy_loading.setter
    def lazy_loading(self, lazy_loading):
        """Sets the lazy_loading of this MapSettings.


        :param lazy_loading: The lazy_loading of this MapSettings.  # noqa: E501
        :type: bool
        """

        self._lazy_loading = lazy_loading

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


        :return: The zoom_restrictions of this MapSettings.  # noqa: E501
        :rtype: ZoomRestrictionSettings
        """
        return self._zoom_restrictions

    @zoom_restrictions.setter
    def zoom_restrictions(self, zoom_restrictions):
        """Sets the zoom_restrictions of this MapSettings.


        :param zoom_restrictions: The zoom_restrictions of this MapSettings.  # noqa: E501
        :type: ZoomRestrictionSettings
        """

        self._zoom_restrictions = zoom_restrictions

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


        :return: The scalebar_visible of this MapSettings.  # noqa: E501
        :rtype: bool
        """
        return self._scalebar_visible

    @scalebar_visible.setter
    def scalebar_visible(self, scalebar_visible):
        """Sets the scalebar_visible of this MapSettings.


        :param scalebar_visible: The scalebar_visible of this MapSettings.  # noqa: E501
        :type: bool
        """

        self._scalebar_visible = scalebar_visible

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

        return self.__dict__ == other.__dict__

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