# 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 JoinedEditableDataRow(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 = {
        'unique_id_column_id': 'str',
        'values': 'list[object]',
        'columns': 'list[DataColumn]',
        'table_id': 'str',
        'table_name': 'str',
        'layer_join_column_id': 'str',
        'row_exists': 'bool'
    }

    attribute_map = {
        'unique_id_column_id': 'uniqueIdColumnId',
        'values': 'values',
        'columns': 'columns',
        'table_id': 'tableId',
        'table_name': 'tableName',
        'layer_join_column_id': 'layerJoinColumnId',
        'row_exists': 'rowExists'
    }

    def __init__(self, unique_id_column_id=None, values=None, columns=None, table_id=None, table_name=None, layer_join_column_id=None, row_exists=None):  # noqa: E501
        """JoinedEditableDataRow - a model defined in Swagger"""  # noqa: E501
        self._unique_id_column_id = None
        self._values = None
        self._columns = None
        self._table_id = None
        self._table_name = None
        self._layer_join_column_id = None
        self._row_exists = None
        self.discriminator = None
        if unique_id_column_id is not None:
            self.unique_id_column_id = unique_id_column_id
        if values is not None:
            self.values = values
        if columns is not None:
            self.columns = columns
        if table_id is not None:
            self.table_id = table_id
        if table_name is not None:
            self.table_name = table_name
        if layer_join_column_id is not None:
            self.layer_join_column_id = layer_join_column_id
        if row_exists is not None:
            self.row_exists = row_exists

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


        :return: The unique_id_column_id of this JoinedEditableDataRow.  # noqa: E501
        :rtype: str
        """
        return self._unique_id_column_id

    @unique_id_column_id.setter
    def unique_id_column_id(self, unique_id_column_id):
        """Sets the unique_id_column_id of this JoinedEditableDataRow.


        :param unique_id_column_id: The unique_id_column_id of this JoinedEditableDataRow.  # noqa: E501
        :type: str
        """

        self._unique_id_column_id = unique_id_column_id

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


        :return: The values of this JoinedEditableDataRow.  # noqa: E501
        :rtype: list[object]
        """
        return self._values

    @values.setter
    def values(self, values):
        """Sets the values of this JoinedEditableDataRow.


        :param values: The values of this JoinedEditableDataRow.  # noqa: E501
        :type: list[object]
        """

        self._values = values

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


        :return: The columns of this JoinedEditableDataRow.  # noqa: E501
        :rtype: list[DataColumn]
        """
        return self._columns

    @columns.setter
    def columns(self, columns):
        """Sets the columns of this JoinedEditableDataRow.


        :param columns: The columns of this JoinedEditableDataRow.  # noqa: E501
        :type: list[DataColumn]
        """

        self._columns = columns

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


        :return: The table_id of this JoinedEditableDataRow.  # noqa: E501
        :rtype: str
        """
        return self._table_id

    @table_id.setter
    def table_id(self, table_id):
        """Sets the table_id of this JoinedEditableDataRow.


        :param table_id: The table_id of this JoinedEditableDataRow.  # noqa: E501
        :type: str
        """

        self._table_id = table_id

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


        :return: The table_name of this JoinedEditableDataRow.  # noqa: E501
        :rtype: str
        """
        return self._table_name

    @table_name.setter
    def table_name(self, table_name):
        """Sets the table_name of this JoinedEditableDataRow.


        :param table_name: The table_name of this JoinedEditableDataRow.  # noqa: E501
        :type: str
        """

        self._table_name = table_name

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


        :return: The layer_join_column_id of this JoinedEditableDataRow.  # noqa: E501
        :rtype: str
        """
        return self._layer_join_column_id

    @layer_join_column_id.setter
    def layer_join_column_id(self, layer_join_column_id):
        """Sets the layer_join_column_id of this JoinedEditableDataRow.


        :param layer_join_column_id: The layer_join_column_id of this JoinedEditableDataRow.  # noqa: E501
        :type: str
        """

        self._layer_join_column_id = layer_join_column_id

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


        :return: The row_exists of this JoinedEditableDataRow.  # noqa: E501
        :rtype: bool
        """
        return self._row_exists

    @row_exists.setter
    def row_exists(self, row_exists):
        """Sets the row_exists of this JoinedEditableDataRow.


        :param row_exists: The row_exists of this JoinedEditableDataRow.  # noqa: E501
        :type: bool
        """

        self._row_exists = row_exists

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

        return self.__dict__ == other.__dict__

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