# 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 TileProvider(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 = {
        'proj4str': 'str',
        'extent': 'ExtentDTO',
        'url': 'str',
        'name': 'str',
        'type': 'ProviderType',
        'terms_of_use_url': 'str',
        'key': 'str',
        'min_zoom': 'int',
        'max_zoom': 'int',
        'sub_domains': 'str',
        'copyright_notice': 'str',
        'grayscale': 'float',
        'points_of_interest_active': 'bool',
        'label_size': 'int'
    }

    attribute_map = {
        'proj4str': 'proj4str',
        'extent': 'extent',
        'url': 'url',
        'name': 'name',
        'type': 'type',
        'terms_of_use_url': 'termsOfUseURL',
        'key': 'key',
        'min_zoom': 'minZoom',
        'max_zoom': 'maxZoom',
        'sub_domains': 'subDomains',
        'copyright_notice': 'copyrightNotice',
        'grayscale': 'grayscale',
        'points_of_interest_active': 'pointsOfInterestActive',
        'label_size': 'labelSize'
    }

    def __init__(self, proj4str=None, extent=None, url=None, name=None, type=None, terms_of_use_url=None, key=None, min_zoom=None, max_zoom=None, sub_domains=None, copyright_notice=None, grayscale=None, points_of_interest_active=None, label_size=None):  # noqa: E501
        """TileProvider - a model defined in Swagger"""  # noqa: E501
        self._proj4str = None
        self._extent = None
        self._url = None
        self._name = None
        self._type = None
        self._terms_of_use_url = None
        self._key = None
        self._min_zoom = None
        self._max_zoom = None
        self._sub_domains = None
        self._copyright_notice = None
        self._grayscale = None
        self._points_of_interest_active = None
        self._label_size = None
        self.discriminator = None
        if proj4str is not None:
            self.proj4str = proj4str
        if extent is not None:
            self.extent = extent
        if url is not None:
            self.url = url
        if name is not None:
            self.name = name
        if type is not None:
            self.type = type
        if terms_of_use_url is not None:
            self.terms_of_use_url = terms_of_use_url
        if key is not None:
            self.key = key
        if min_zoom is not None:
            self.min_zoom = min_zoom
        if max_zoom is not None:
            self.max_zoom = max_zoom
        if sub_domains is not None:
            self.sub_domains = sub_domains
        if copyright_notice is not None:
            self.copyright_notice = copyright_notice
        if grayscale is not None:
            self.grayscale = grayscale
        if points_of_interest_active is not None:
            self.points_of_interest_active = points_of_interest_active
        if label_size is not None:
            self.label_size = label_size

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


        :return: The proj4str of this TileProvider.  # noqa: E501
        :rtype: str
        """
        return self._proj4str

    @proj4str.setter
    def proj4str(self, proj4str):
        """Sets the proj4str of this TileProvider.


        :param proj4str: The proj4str of this TileProvider.  # noqa: E501
        :type: str
        """

        self._proj4str = proj4str

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


        :return: The extent of this TileProvider.  # noqa: E501
        :rtype: ExtentDTO
        """
        return self._extent

    @extent.setter
    def extent(self, extent):
        """Sets the extent of this TileProvider.


        :param extent: The extent of this TileProvider.  # noqa: E501
        :type: ExtentDTO
        """

        self._extent = extent

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


        :return: The url of this TileProvider.  # noqa: E501
        :rtype: str
        """
        return self._url

    @url.setter
    def url(self, url):
        """Sets the url of this TileProvider.


        :param url: The url of this TileProvider.  # noqa: E501
        :type: str
        """

        self._url = url

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


        :return: The name of this TileProvider.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this TileProvider.


        :param name: The name of this TileProvider.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The type of this TileProvider.  # noqa: E501
        :rtype: ProviderType
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this TileProvider.


        :param type: The type of this TileProvider.  # noqa: E501
        :type: ProviderType
        """

        self._type = type

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


        :return: The terms_of_use_url of this TileProvider.  # noqa: E501
        :rtype: str
        """
        return self._terms_of_use_url

    @terms_of_use_url.setter
    def terms_of_use_url(self, terms_of_use_url):
        """Sets the terms_of_use_url of this TileProvider.


        :param terms_of_use_url: The terms_of_use_url of this TileProvider.  # noqa: E501
        :type: str
        """

        self._terms_of_use_url = terms_of_use_url

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


        :return: The key of this TileProvider.  # noqa: E501
        :rtype: str
        """
        return self._key

    @key.setter
    def key(self, key):
        """Sets the key of this TileProvider.


        :param key: The key of this TileProvider.  # noqa: E501
        :type: str
        """

        self._key = key

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


        :return: The min_zoom of this TileProvider.  # noqa: E501
        :rtype: int
        """
        return self._min_zoom

    @min_zoom.setter
    def min_zoom(self, min_zoom):
        """Sets the min_zoom of this TileProvider.


        :param min_zoom: The min_zoom of this TileProvider.  # noqa: E501
        :type: int
        """

        self._min_zoom = min_zoom

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


        :return: The max_zoom of this TileProvider.  # noqa: E501
        :rtype: int
        """
        return self._max_zoom

    @max_zoom.setter
    def max_zoom(self, max_zoom):
        """Sets the max_zoom of this TileProvider.


        :param max_zoom: The max_zoom of this TileProvider.  # noqa: E501
        :type: int
        """

        self._max_zoom = max_zoom

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


        :return: The sub_domains of this TileProvider.  # noqa: E501
        :rtype: str
        """
        return self._sub_domains

    @sub_domains.setter
    def sub_domains(self, sub_domains):
        """Sets the sub_domains of this TileProvider.


        :param sub_domains: The sub_domains of this TileProvider.  # noqa: E501
        :type: str
        """

        self._sub_domains = sub_domains

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


        :return: The copyright_notice of this TileProvider.  # noqa: E501
        :rtype: str
        """
        return self._copyright_notice

    @copyright_notice.setter
    def copyright_notice(self, copyright_notice):
        """Sets the copyright_notice of this TileProvider.


        :param copyright_notice: The copyright_notice of this TileProvider.  # noqa: E501
        :type: str
        """

        self._copyright_notice = copyright_notice

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


        :return: The grayscale of this TileProvider.  # noqa: E501
        :rtype: float
        """
        return self._grayscale

    @grayscale.setter
    def grayscale(self, grayscale):
        """Sets the grayscale of this TileProvider.


        :param grayscale: The grayscale of this TileProvider.  # noqa: E501
        :type: float
        """

        self._grayscale = grayscale

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


        :return: The points_of_interest_active of this TileProvider.  # noqa: E501
        :rtype: bool
        """
        return self._points_of_interest_active

    @points_of_interest_active.setter
    def points_of_interest_active(self, points_of_interest_active):
        """Sets the points_of_interest_active of this TileProvider.


        :param points_of_interest_active: The points_of_interest_active of this TileProvider.  # noqa: E501
        :type: bool
        """

        self._points_of_interest_active = points_of_interest_active

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


        :return: The label_size of this TileProvider.  # noqa: E501
        :rtype: int
        """
        return self._label_size

    @label_size.setter
    def label_size(self, label_size):
        """Sets the label_size of this TileProvider.


        :param label_size: The label_size of this TileProvider.  # noqa: E501
        :type: int
        """

        self._label_size = label_size

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

        return self.__dict__ == other.__dict__

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