# 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 UpdateTableFromFileParameter(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 = {
        'column_numbers_to_keep': 'list[int]',
        'upload_id': 'str',
        'sheet_name': 'str',
        'is_append': 'bool'
    }

    attribute_map = {
        'column_numbers_to_keep': 'columnNumbersToKeep',
        'upload_id': 'uploadId',
        'sheet_name': 'sheetName',
        'is_append': 'isAppend'
    }

    def __init__(self, column_numbers_to_keep=None, upload_id=None, sheet_name=None, is_append=None):  # noqa: E501
        """UpdateTableFromFileParameter - a model defined in Swagger"""  # noqa: E501
        self._column_numbers_to_keep = None
        self._upload_id = None
        self._sheet_name = None
        self._is_append = None
        self.discriminator = None
        if column_numbers_to_keep is not None:
            self.column_numbers_to_keep = column_numbers_to_keep
        if upload_id is not None:
            self.upload_id = upload_id
        if sheet_name is not None:
            self.sheet_name = sheet_name
        if is_append is not None:
            self.is_append = is_append

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


        :return: The column_numbers_to_keep of this UpdateTableFromFileParameter.  # noqa: E501
        :rtype: list[int]
        """
        return self._column_numbers_to_keep

    @column_numbers_to_keep.setter
    def column_numbers_to_keep(self, column_numbers_to_keep):
        """Sets the column_numbers_to_keep of this UpdateTableFromFileParameter.


        :param column_numbers_to_keep: The column_numbers_to_keep of this UpdateTableFromFileParameter.  # noqa: E501
        :type: list[int]
        """

        self._column_numbers_to_keep = column_numbers_to_keep

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


        :return: The upload_id of this UpdateTableFromFileParameter.  # noqa: E501
        :rtype: str
        """
        return self._upload_id

    @upload_id.setter
    def upload_id(self, upload_id):
        """Sets the upload_id of this UpdateTableFromFileParameter.


        :param upload_id: The upload_id of this UpdateTableFromFileParameter.  # noqa: E501
        :type: str
        """

        self._upload_id = upload_id

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


        :return: The sheet_name of this UpdateTableFromFileParameter.  # noqa: E501
        :rtype: str
        """
        return self._sheet_name

    @sheet_name.setter
    def sheet_name(self, sheet_name):
        """Sets the sheet_name of this UpdateTableFromFileParameter.


        :param sheet_name: The sheet_name of this UpdateTableFromFileParameter.  # noqa: E501
        :type: str
        """

        self._sheet_name = sheet_name

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


        :return: The is_append of this UpdateTableFromFileParameter.  # noqa: E501
        :rtype: bool
        """
        return self._is_append

    @is_append.setter
    def is_append(self, is_append):
        """Sets the is_append of this UpdateTableFromFileParameter.


        :param is_append: The is_append of this UpdateTableFromFileParameter.  # noqa: E501
        :type: bool
        """

        self._is_append = is_append

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

        return self.__dict__ == other.__dict__

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