# 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 ComponentLayout(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 = {
        'i': 'str',
        'x': 'int',
        'y': 'int',
        'w': 'int',
        'h': 'int',
        'static': 'bool'
    }

    attribute_map = {
        'i': 'i',
        'x': 'x',
        'y': 'y',
        'w': 'w',
        'h': 'h',
        'static': 'static'
    }

    def __init__(self, i=None, x=None, y=None, w=None, h=None, static=None):  # noqa: E501
        """ComponentLayout - a model defined in Swagger"""  # noqa: E501
        self._i = None
        self._x = None
        self._y = None
        self._w = None
        self._h = None
        self._static = None
        self.discriminator = None
        if i is not None:
            self.i = i
        if x is not None:
            self.x = x
        if y is not None:
            self.y = y
        if w is not None:
            self.w = w
        if h is not None:
            self.h = h
        if static is not None:
            self.static = static

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


        :return: The i of this ComponentLayout.  # noqa: E501
        :rtype: str
        """
        return self._i

    @i.setter
    def i(self, i):
        """Sets the i of this ComponentLayout.


        :param i: The i of this ComponentLayout.  # noqa: E501
        :type: str
        """

        self._i = i

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


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

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


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

        self._x = x

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


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

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


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

        self._y = y

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


        :return: The w of this ComponentLayout.  # noqa: E501
        :rtype: int
        """
        return self._w

    @w.setter
    def w(self, w):
        """Sets the w of this ComponentLayout.


        :param w: The w of this ComponentLayout.  # noqa: E501
        :type: int
        """

        self._w = w

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


        :return: The h of this ComponentLayout.  # noqa: E501
        :rtype: int
        """
        return self._h

    @h.setter
    def h(self, h):
        """Sets the h of this ComponentLayout.


        :param h: The h of this ComponentLayout.  # noqa: E501
        :type: int
        """

        self._h = h

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


        :return: The static of this ComponentLayout.  # noqa: E501
        :rtype: bool
        """
        return self._static

    @static.setter
    def static(self, static):
        """Sets the static of this ComponentLayout.


        :param static: The static of this ComponentLayout.  # noqa: E501
        :type: bool
        """

        self._static = static

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

        return self.__dict__ == other.__dict__

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