# 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 EditableDataRow(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]',
        'identifier': 'str',
        'join_columns_used': 'list[str]',
        'joined_data': 'list[JoinedEditableDataRow]'
    }

    attribute_map = {
        'unique_id_column_id': 'uniqueIdColumnId',
        'values': 'values',
        'columns': 'columns',
        'identifier': 'identifier',
        'join_columns_used': 'joinColumnsUsed',
        'joined_data': 'joinedData'
    }

    def __init__(self, unique_id_column_id=None, values=None, columns=None, identifier=None, join_columns_used=None, joined_data=None):  # noqa: E501
        """EditableDataRow - a model defined in Swagger"""  # noqa: E501
        self._unique_id_column_id = None
        self._values = None
        self._columns = None
        self._identifier = None
        self._join_columns_used = None
        self._joined_data = 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 identifier is not None:
            self.identifier = identifier
        if join_columns_used is not None:
            self.join_columns_used = join_columns_used
        if joined_data is not None:
            self.joined_data = joined_data

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


        :return: The unique_id_column_id of this EditableDataRow.  # 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 EditableDataRow.


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

        self._unique_id_column_id = unique_id_column_id

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


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

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


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

        self._values = values

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


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

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


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

        self._columns = columns

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


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

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


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

        self._identifier = identifier

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


        :return: The join_columns_used of this EditableDataRow.  # noqa: E501
        :rtype: list[str]
        """
        return self._join_columns_used

    @join_columns_used.setter
    def join_columns_used(self, join_columns_used):
        """Sets the join_columns_used of this EditableDataRow.


        :param join_columns_used: The join_columns_used of this EditableDataRow.  # noqa: E501
        :type: list[str]
        """

        self._join_columns_used = join_columns_used

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


        :return: The joined_data of this EditableDataRow.  # noqa: E501
        :rtype: list[JoinedEditableDataRow]
        """
        return self._joined_data

    @joined_data.setter
    def joined_data(self, joined_data):
        """Sets the joined_data of this EditableDataRow.


        :param joined_data: The joined_data of this EditableDataRow.  # noqa: E501
        :type: list[JoinedEditableDataRow]
        """

        self._joined_data = joined_data

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

        return self.__dict__ == other.__dict__

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