# 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 MapLibreConfiguration(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 = {
        'layer_order': 'list[OrderedLayer]',
        'layer_settings': 'dict(str, MapLibreLayerSettings)',
        'tile_providers': 'list[TileProvider]',
        'glyphs_base_url': 'str'
    }

    attribute_map = {
        'layer_order': 'layerOrder',
        'layer_settings': 'layerSettings',
        'tile_providers': 'tileProviders',
        'glyphs_base_url': 'glyphsBaseUrl'
    }

    def __init__(self, layer_order=None, layer_settings=None, tile_providers=None, glyphs_base_url=None):  # noqa: E501
        """MapLibreConfiguration - a model defined in Swagger"""  # noqa: E501
        self._layer_order = None
        self._layer_settings = None
        self._tile_providers = None
        self._glyphs_base_url = None
        self.discriminator = None
        if layer_order is not None:
            self.layer_order = layer_order
        if layer_settings is not None:
            self.layer_settings = layer_settings
        if tile_providers is not None:
            self.tile_providers = tile_providers
        if glyphs_base_url is not None:
            self.glyphs_base_url = glyphs_base_url

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


        :return: The layer_order of this MapLibreConfiguration.  # noqa: E501
        :rtype: list[OrderedLayer]
        """
        return self._layer_order

    @layer_order.setter
    def layer_order(self, layer_order):
        """Sets the layer_order of this MapLibreConfiguration.


        :param layer_order: The layer_order of this MapLibreConfiguration.  # noqa: E501
        :type: list[OrderedLayer]
        """

        self._layer_order = layer_order

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


        :return: The layer_settings of this MapLibreConfiguration.  # noqa: E501
        :rtype: dict(str, MapLibreLayerSettings)
        """
        return self._layer_settings

    @layer_settings.setter
    def layer_settings(self, layer_settings):
        """Sets the layer_settings of this MapLibreConfiguration.


        :param layer_settings: The layer_settings of this MapLibreConfiguration.  # noqa: E501
        :type: dict(str, MapLibreLayerSettings)
        """

        self._layer_settings = layer_settings

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


        :return: The tile_providers of this MapLibreConfiguration.  # noqa: E501
        :rtype: list[TileProvider]
        """
        return self._tile_providers

    @tile_providers.setter
    def tile_providers(self, tile_providers):
        """Sets the tile_providers of this MapLibreConfiguration.


        :param tile_providers: The tile_providers of this MapLibreConfiguration.  # noqa: E501
        :type: list[TileProvider]
        """

        self._tile_providers = tile_providers

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


        :return: The glyphs_base_url of this MapLibreConfiguration.  # noqa: E501
        :rtype: str
        """
        return self._glyphs_base_url

    @glyphs_base_url.setter
    def glyphs_base_url(self, glyphs_base_url):
        """Sets the glyphs_base_url of this MapLibreConfiguration.


        :param glyphs_base_url: The glyphs_base_url of this MapLibreConfiguration.  # noqa: E501
        :type: str
        """

        self._glyphs_base_url = glyphs_base_url

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

        return self.__dict__ == other.__dict__

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