# 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 MapLayersResponse(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 = {
        'map_id': 'str',
        'can_add_layers': 'bool',
        'layers': 'list[Layer]',
        'wmts_layers': 'list[WmtsLayer]',
        'grid_layers': 'list[GridLayer]',
        'wms_layers': 'list[WmsLayer]'
    }

    attribute_map = {
        'map_id': 'mapId',
        'can_add_layers': 'canAddLayers',
        'layers': 'layers',
        'wmts_layers': 'wmtsLayers',
        'grid_layers': 'gridLayers',
        'wms_layers': 'wmsLayers'
    }

    def __init__(self, map_id=None, can_add_layers=None, layers=None, wmts_layers=None, grid_layers=None, wms_layers=None):  # noqa: E501
        """MapLayersResponse - a model defined in Swagger"""  # noqa: E501
        self._map_id = None
        self._can_add_layers = None
        self._layers = None
        self._wmts_layers = None
        self._grid_layers = None
        self._wms_layers = None
        self.discriminator = None
        if map_id is not None:
            self.map_id = map_id
        if can_add_layers is not None:
            self.can_add_layers = can_add_layers
        if layers is not None:
            self.layers = layers
        if wmts_layers is not None:
            self.wmts_layers = wmts_layers
        if grid_layers is not None:
            self.grid_layers = grid_layers
        if wms_layers is not None:
            self.wms_layers = wms_layers

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


        :return: The map_id of this MapLayersResponse.  # noqa: E501
        :rtype: str
        """
        return self._map_id

    @map_id.setter
    def map_id(self, map_id):
        """Sets the map_id of this MapLayersResponse.


        :param map_id: The map_id of this MapLayersResponse.  # noqa: E501
        :type: str
        """

        self._map_id = map_id

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


        :return: The can_add_layers of this MapLayersResponse.  # noqa: E501
        :rtype: bool
        """
        return self._can_add_layers

    @can_add_layers.setter
    def can_add_layers(self, can_add_layers):
        """Sets the can_add_layers of this MapLayersResponse.


        :param can_add_layers: The can_add_layers of this MapLayersResponse.  # noqa: E501
        :type: bool
        """

        self._can_add_layers = can_add_layers

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


        :return: The layers of this MapLayersResponse.  # noqa: E501
        :rtype: list[Layer]
        """
        return self._layers

    @layers.setter
    def layers(self, layers):
        """Sets the layers of this MapLayersResponse.


        :param layers: The layers of this MapLayersResponse.  # noqa: E501
        :type: list[Layer]
        """

        self._layers = layers

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


        :return: The wmts_layers of this MapLayersResponse.  # noqa: E501
        :rtype: list[WmtsLayer]
        """
        return self._wmts_layers

    @wmts_layers.setter
    def wmts_layers(self, wmts_layers):
        """Sets the wmts_layers of this MapLayersResponse.


        :param wmts_layers: The wmts_layers of this MapLayersResponse.  # noqa: E501
        :type: list[WmtsLayer]
        """

        self._wmts_layers = wmts_layers

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


        :return: The grid_layers of this MapLayersResponse.  # noqa: E501
        :rtype: list[GridLayer]
        """
        return self._grid_layers

    @grid_layers.setter
    def grid_layers(self, grid_layers):
        """Sets the grid_layers of this MapLayersResponse.


        :param grid_layers: The grid_layers of this MapLayersResponse.  # noqa: E501
        :type: list[GridLayer]
        """

        self._grid_layers = grid_layers

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


        :return: The wms_layers of this MapLayersResponse.  # noqa: E501
        :rtype: list[WmsLayer]
        """
        return self._wms_layers

    @wms_layers.setter
    def wms_layers(self, wms_layers):
        """Sets the wms_layers of this MapLayersResponse.


        :param wms_layers: The wms_layers of this MapLayersResponse.  # noqa: E501
        :type: list[WmsLayer]
        """

        self._wms_layers = wms_layers

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

        return self.__dict__ == other.__dict__

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