# 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 MapPlugin(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 = {
        'identifier': 'str',
        'name': 'str',
        'icon_url': 'str',
        'script_url': 'str',
        'no_margins': 'bool',
        'visible': 'bool',
        'height': 'int',
        'width': 'int',
        'x': 'int',
        'y': 'int',
        'map_id': 'str'
    }

    attribute_map = {
        'identifier': 'identifier',
        'name': 'name',
        'icon_url': 'iconUrl',
        'script_url': 'scriptUrl',
        'no_margins': 'noMargins',
        'visible': 'visible',
        'height': 'height',
        'width': 'width',
        'x': 'x',
        'y': 'y',
        'map_id': 'mapId'
    }

    def __init__(self, identifier=None, name=None, icon_url=None, script_url=None, no_margins=None, visible=None, height=None, width=None, x=None, y=None, map_id=None):  # noqa: E501
        """MapPlugin - a model defined in Swagger"""  # noqa: E501
        self._identifier = None
        self._name = None
        self._icon_url = None
        self._script_url = None
        self._no_margins = None
        self._visible = None
        self._height = None
        self._width = None
        self._x = None
        self._y = None
        self._map_id = None
        self.discriminator = None
        if identifier is not None:
            self.identifier = identifier
        if name is not None:
            self.name = name
        if icon_url is not None:
            self.icon_url = icon_url
        if script_url is not None:
            self.script_url = script_url
        if no_margins is not None:
            self.no_margins = no_margins
        if visible is not None:
            self.visible = visible
        if height is not None:
            self.height = height
        if width is not None:
            self.width = width
        if x is not None:
            self.x = x
        if y is not None:
            self.y = y
        if map_id is not None:
            self.map_id = map_id

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


        :return: The identifier of this MapPlugin.  # noqa: E501
        :rtype: str
        """
        return self._identifier

    @identifier.setter
    def identifier(self, identifier):
        """Sets the identifier of this MapPlugin.


        :param identifier: The identifier of this MapPlugin.  # noqa: E501
        :type: str
        """

        self._identifier = identifier

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


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

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


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

        self._name = name

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


        :return: The icon_url of this MapPlugin.  # noqa: E501
        :rtype: str
        """
        return self._icon_url

    @icon_url.setter
    def icon_url(self, icon_url):
        """Sets the icon_url of this MapPlugin.


        :param icon_url: The icon_url of this MapPlugin.  # noqa: E501
        :type: str
        """

        self._icon_url = icon_url

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


        :return: The script_url of this MapPlugin.  # noqa: E501
        :rtype: str
        """
        return self._script_url

    @script_url.setter
    def script_url(self, script_url):
        """Sets the script_url of this MapPlugin.


        :param script_url: The script_url of this MapPlugin.  # noqa: E501
        :type: str
        """

        self._script_url = script_url

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


        :return: The no_margins of this MapPlugin.  # noqa: E501
        :rtype: bool
        """
        return self._no_margins

    @no_margins.setter
    def no_margins(self, no_margins):
        """Sets the no_margins of this MapPlugin.


        :param no_margins: The no_margins of this MapPlugin.  # noqa: E501
        :type: bool
        """

        self._no_margins = no_margins

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


        :return: The visible of this MapPlugin.  # noqa: E501
        :rtype: bool
        """
        return self._visible

    @visible.setter
    def visible(self, visible):
        """Sets the visible of this MapPlugin.


        :param visible: The visible of this MapPlugin.  # noqa: E501
        :type: bool
        """

        self._visible = visible

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


        :return: The height of this MapPlugin.  # noqa: E501
        :rtype: int
        """
        return self._height

    @height.setter
    def height(self, height):
        """Sets the height of this MapPlugin.


        :param height: The height of this MapPlugin.  # noqa: E501
        :type: int
        """

        self._height = height

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


        :return: The width of this MapPlugin.  # noqa: E501
        :rtype: int
        """
        return self._width

    @width.setter
    def width(self, width):
        """Sets the width of this MapPlugin.


        :param width: The width of this MapPlugin.  # noqa: E501
        :type: int
        """

        self._width = width

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


        :return: The x of this MapPlugin.  # noqa: E501
        :rtype: int
        """
        return self._x

    @x.setter
    def x(self, x):
        """Sets the x of this MapPlugin.


        :param x: The x of this MapPlugin.  # noqa: E501
        :type: int
        """

        self._x = x

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


        :return: The y of this MapPlugin.  # noqa: E501
        :rtype: int
        """
        return self._y

    @y.setter
    def y(self, y):
        """Sets the y of this MapPlugin.


        :param y: The y of this MapPlugin.  # noqa: E501
        :type: int
        """

        self._y = y

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


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

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


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

        self._map_id = map_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(MapPlugin, 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, MapPlugin):
            return False

        return self.__dict__ == other.__dict__

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