# 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 MapElements(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 = {
        'maps': 'list[Map]',
        'folders': 'list[Folder]',
        'path_folders': 'list[Folder]',
        'folder_id': 'str'
    }

    attribute_map = {
        'maps': 'maps',
        'folders': 'folders',
        'path_folders': 'pathFolders',
        'folder_id': 'folderId'
    }

    def __init__(self, maps=None, folders=None, path_folders=None, folder_id=None):  # noqa: E501
        """MapElements - a model defined in Swagger"""  # noqa: E501
        self._maps = None
        self._folders = None
        self._path_folders = None
        self._folder_id = None
        self.discriminator = None
        if maps is not None:
            self.maps = maps
        if folders is not None:
            self.folders = folders
        if path_folders is not None:
            self.path_folders = path_folders
        if folder_id is not None:
            self.folder_id = folder_id

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


        :return: The maps of this MapElements.  # noqa: E501
        :rtype: list[Map]
        """
        return self._maps

    @maps.setter
    def maps(self, maps):
        """Sets the maps of this MapElements.


        :param maps: The maps of this MapElements.  # noqa: E501
        :type: list[Map]
        """

        self._maps = maps

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


        :return: The folders of this MapElements.  # noqa: E501
        :rtype: list[Folder]
        """
        return self._folders

    @folders.setter
    def folders(self, folders):
        """Sets the folders of this MapElements.


        :param folders: The folders of this MapElements.  # noqa: E501
        :type: list[Folder]
        """

        self._folders = folders

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


        :return: The path_folders of this MapElements.  # noqa: E501
        :rtype: list[Folder]
        """
        return self._path_folders

    @path_folders.setter
    def path_folders(self, path_folders):
        """Sets the path_folders of this MapElements.


        :param path_folders: The path_folders of this MapElements.  # noqa: E501
        :type: list[Folder]
        """

        self._path_folders = path_folders

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


        :return: The folder_id of this MapElements.  # noqa: E501
        :rtype: str
        """
        return self._folder_id

    @folder_id.setter
    def folder_id(self, folder_id):
        """Sets the folder_id of this MapElements.


        :param folder_id: The folder_id of this MapElements.  # noqa: E501
        :type: str
        """

        self._folder_id = folder_id

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

        return self.__dict__ == other.__dict__

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