# 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 DataColumn(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 = {
        'system_identifier': 'str',
        'unique_identifier': 'str',
        'data_table_identifier': 'str',
        'carto_vista_data_type': 'CartoVistaPortalDataType',
        'name': 'str',
        'original_name': 'str',
        'description': 'str',
        'metadata': 'str',
        'units': 'str',
        'unit_placement': 'UnitPlacement',
        'aggregation_type': 'AggregationType',
        'mappable': 'bool',
        'precision': 'int',
        'round_to_precision': 'bool',
        'time_stamp': 'object',
        'time_stamp_accuracy': 'object',
        'not_available_values': 'bool',
        'value_to_convert': 'float',
        'only_has_unique_values': 'bool',
        'is_used_in_data_table_join': 'bool',
        'is_used_in_poi_analysis': 'bool',
        'is_used_in_cvs': 'bool',
        'internal_system_column': 'bool',
        'editor_settings': 'EditorSettings',
        'date_format': 'DateFormat',
        'separate_thousands': 'bool'
    }

    attribute_map = {
        'system_identifier': 'systemIdentifier',
        'unique_identifier': 'uniqueIdentifier',
        'data_table_identifier': 'dataTableIdentifier',
        'carto_vista_data_type': 'cartoVistaDataType',
        'name': 'name',
        'original_name': 'originalName',
        'description': 'description',
        'metadata': 'metadata',
        'units': 'units',
        'unit_placement': 'unitPlacement',
        'aggregation_type': 'aggregationType',
        'mappable': 'mappable',
        'precision': 'precision',
        'round_to_precision': 'roundToPrecision',
        'time_stamp': 'timeStamp',
        'time_stamp_accuracy': 'timeStampAccuracy',
        'not_available_values': 'notAvailableValues',
        'value_to_convert': 'valueToConvert',
        'only_has_unique_values': 'onlyHasUniqueValues',
        'is_used_in_data_table_join': 'isUsedInDataTableJoin',
        'is_used_in_poi_analysis': 'isUsedInPOIAnalysis',
        'is_used_in_cvs': 'isUsedInCVS',
        'internal_system_column': 'internalSystemColumn',
        'editor_settings': 'editorSettings',
        'date_format': 'dateFormat',
        'separate_thousands': 'separateThousands'
    }

    def __init__(self, system_identifier=None, unique_identifier=None, data_table_identifier=None, carto_vista_data_type=None, name=None, original_name=None, description=None, metadata=None, units=None, unit_placement=None, aggregation_type=None, mappable=None, precision=None, round_to_precision=None, time_stamp=None, time_stamp_accuracy=None, not_available_values=None, value_to_convert=None, only_has_unique_values=None, is_used_in_data_table_join=None, is_used_in_poi_analysis=None, is_used_in_cvs=None, internal_system_column=None, editor_settings=None, date_format=None, separate_thousands=None):  # noqa: E501
        """DataColumn - a model defined in Swagger"""  # noqa: E501
        self._system_identifier = None
        self._unique_identifier = None
        self._data_table_identifier = None
        self._carto_vista_data_type = None
        self._name = None
        self._original_name = None
        self._description = None
        self._metadata = None
        self._units = None
        self._unit_placement = None
        self._aggregation_type = None
        self._mappable = None
        self._precision = None
        self._round_to_precision = None
        self._time_stamp = None
        self._time_stamp_accuracy = None
        self._not_available_values = None
        self._value_to_convert = None
        self._only_has_unique_values = None
        self._is_used_in_data_table_join = None
        self._is_used_in_poi_analysis = None
        self._is_used_in_cvs = None
        self._internal_system_column = None
        self._editor_settings = None
        self._date_format = None
        self._separate_thousands = None
        self.discriminator = None
        if system_identifier is not None:
            self.system_identifier = system_identifier
        if unique_identifier is not None:
            self.unique_identifier = unique_identifier
        if data_table_identifier is not None:
            self.data_table_identifier = data_table_identifier
        if carto_vista_data_type is not None:
            self.carto_vista_data_type = carto_vista_data_type
        if name is not None:
            self.name = name
        if original_name is not None:
            self.original_name = original_name
        if description is not None:
            self.description = description
        if metadata is not None:
            self.metadata = metadata
        if units is not None:
            self.units = units
        if unit_placement is not None:
            self.unit_placement = unit_placement
        if aggregation_type is not None:
            self.aggregation_type = aggregation_type
        if mappable is not None:
            self.mappable = mappable
        if precision is not None:
            self.precision = precision
        if round_to_precision is not None:
            self.round_to_precision = round_to_precision
        if time_stamp is not None:
            self.time_stamp = time_stamp
        if time_stamp_accuracy is not None:
            self.time_stamp_accuracy = time_stamp_accuracy
        if not_available_values is not None:
            self.not_available_values = not_available_values
        if value_to_convert is not None:
            self.value_to_convert = value_to_convert
        if only_has_unique_values is not None:
            self.only_has_unique_values = only_has_unique_values
        if is_used_in_data_table_join is not None:
            self.is_used_in_data_table_join = is_used_in_data_table_join
        if is_used_in_poi_analysis is not None:
            self.is_used_in_poi_analysis = is_used_in_poi_analysis
        if is_used_in_cvs is not None:
            self.is_used_in_cvs = is_used_in_cvs
        if internal_system_column is not None:
            self.internal_system_column = internal_system_column
        if editor_settings is not None:
            self.editor_settings = editor_settings
        if date_format is not None:
            self.date_format = date_format
        if separate_thousands is not None:
            self.separate_thousands = separate_thousands

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


        :return: The system_identifier of this DataColumn.  # noqa: E501
        :rtype: str
        """
        return self._system_identifier

    @system_identifier.setter
    def system_identifier(self, system_identifier):
        """Sets the system_identifier of this DataColumn.


        :param system_identifier: The system_identifier of this DataColumn.  # noqa: E501
        :type: str
        """

        self._system_identifier = system_identifier

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


        :return: The unique_identifier of this DataColumn.  # noqa: E501
        :rtype: str
        """
        return self._unique_identifier

    @unique_identifier.setter
    def unique_identifier(self, unique_identifier):
        """Sets the unique_identifier of this DataColumn.


        :param unique_identifier: The unique_identifier of this DataColumn.  # noqa: E501
        :type: str
        """

        self._unique_identifier = unique_identifier

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


        :return: The data_table_identifier of this DataColumn.  # noqa: E501
        :rtype: str
        """
        return self._data_table_identifier

    @data_table_identifier.setter
    def data_table_identifier(self, data_table_identifier):
        """Sets the data_table_identifier of this DataColumn.


        :param data_table_identifier: The data_table_identifier of this DataColumn.  # noqa: E501
        :type: str
        """

        self._data_table_identifier = data_table_identifier

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


        :return: The carto_vista_data_type of this DataColumn.  # noqa: E501
        :rtype: CartoVistaPortalDataType
        """
        return self._carto_vista_data_type

    @carto_vista_data_type.setter
    def carto_vista_data_type(self, carto_vista_data_type):
        """Sets the carto_vista_data_type of this DataColumn.


        :param carto_vista_data_type: The carto_vista_data_type of this DataColumn.  # noqa: E501
        :type: CartoVistaPortalDataType
        """

        self._carto_vista_data_type = carto_vista_data_type

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


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

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


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

        self._name = name

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


        :return: The original_name of this DataColumn.  # noqa: E501
        :rtype: str
        """
        return self._original_name

    @original_name.setter
    def original_name(self, original_name):
        """Sets the original_name of this DataColumn.


        :param original_name: The original_name of this DataColumn.  # noqa: E501
        :type: str
        """

        self._original_name = original_name

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


        :return: The description of this DataColumn.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this DataColumn.


        :param description: The description of this DataColumn.  # noqa: E501
        :type: str
        """

        self._description = description

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


        :return: The metadata of this DataColumn.  # noqa: E501
        :rtype: str
        """
        return self._metadata

    @metadata.setter
    def metadata(self, metadata):
        """Sets the metadata of this DataColumn.


        :param metadata: The metadata of this DataColumn.  # noqa: E501
        :type: str
        """

        self._metadata = metadata

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


        :return: The units of this DataColumn.  # noqa: E501
        :rtype: str
        """
        return self._units

    @units.setter
    def units(self, units):
        """Sets the units of this DataColumn.


        :param units: The units of this DataColumn.  # noqa: E501
        :type: str
        """

        self._units = units

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


        :return: The unit_placement of this DataColumn.  # noqa: E501
        :rtype: UnitPlacement
        """
        return self._unit_placement

    @unit_placement.setter
    def unit_placement(self, unit_placement):
        """Sets the unit_placement of this DataColumn.


        :param unit_placement: The unit_placement of this DataColumn.  # noqa: E501
        :type: UnitPlacement
        """

        self._unit_placement = unit_placement

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


        :return: The aggregation_type of this DataColumn.  # noqa: E501
        :rtype: AggregationType
        """
        return self._aggregation_type

    @aggregation_type.setter
    def aggregation_type(self, aggregation_type):
        """Sets the aggregation_type of this DataColumn.


        :param aggregation_type: The aggregation_type of this DataColumn.  # noqa: E501
        :type: AggregationType
        """

        self._aggregation_type = aggregation_type

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


        :return: The mappable of this DataColumn.  # noqa: E501
        :rtype: bool
        """
        return self._mappable

    @mappable.setter
    def mappable(self, mappable):
        """Sets the mappable of this DataColumn.


        :param mappable: The mappable of this DataColumn.  # noqa: E501
        :type: bool
        """

        self._mappable = mappable

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


        :return: The precision of this DataColumn.  # noqa: E501
        :rtype: int
        """
        return self._precision

    @precision.setter
    def precision(self, precision):
        """Sets the precision of this DataColumn.


        :param precision: The precision of this DataColumn.  # noqa: E501
        :type: int
        """

        self._precision = precision

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


        :return: The round_to_precision of this DataColumn.  # noqa: E501
        :rtype: bool
        """
        return self._round_to_precision

    @round_to_precision.setter
    def round_to_precision(self, round_to_precision):
        """Sets the round_to_precision of this DataColumn.


        :param round_to_precision: The round_to_precision of this DataColumn.  # noqa: E501
        :type: bool
        """

        self._round_to_precision = round_to_precision

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


        :return: The time_stamp of this DataColumn.  # noqa: E501
        :rtype: object
        """
        return self._time_stamp

    @time_stamp.setter
    def time_stamp(self, time_stamp):
        """Sets the time_stamp of this DataColumn.


        :param time_stamp: The time_stamp of this DataColumn.  # noqa: E501
        :type: object
        """

        self._time_stamp = time_stamp

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


        :return: The time_stamp_accuracy of this DataColumn.  # noqa: E501
        :rtype: object
        """
        return self._time_stamp_accuracy

    @time_stamp_accuracy.setter
    def time_stamp_accuracy(self, time_stamp_accuracy):
        """Sets the time_stamp_accuracy of this DataColumn.


        :param time_stamp_accuracy: The time_stamp_accuracy of this DataColumn.  # noqa: E501
        :type: object
        """

        self._time_stamp_accuracy = time_stamp_accuracy

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


        :return: The not_available_values of this DataColumn.  # noqa: E501
        :rtype: bool
        """
        return self._not_available_values

    @not_available_values.setter
    def not_available_values(self, not_available_values):
        """Sets the not_available_values of this DataColumn.


        :param not_available_values: The not_available_values of this DataColumn.  # noqa: E501
        :type: bool
        """

        self._not_available_values = not_available_values

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


        :return: The value_to_convert of this DataColumn.  # noqa: E501
        :rtype: float
        """
        return self._value_to_convert

    @value_to_convert.setter
    def value_to_convert(self, value_to_convert):
        """Sets the value_to_convert of this DataColumn.


        :param value_to_convert: The value_to_convert of this DataColumn.  # noqa: E501
        :type: float
        """

        self._value_to_convert = value_to_convert

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


        :return: The only_has_unique_values of this DataColumn.  # noqa: E501
        :rtype: bool
        """
        return self._only_has_unique_values

    @only_has_unique_values.setter
    def only_has_unique_values(self, only_has_unique_values):
        """Sets the only_has_unique_values of this DataColumn.


        :param only_has_unique_values: The only_has_unique_values of this DataColumn.  # noqa: E501
        :type: bool
        """

        self._only_has_unique_values = only_has_unique_values

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


        :return: The is_used_in_data_table_join of this DataColumn.  # noqa: E501
        :rtype: bool
        """
        return self._is_used_in_data_table_join

    @is_used_in_data_table_join.setter
    def is_used_in_data_table_join(self, is_used_in_data_table_join):
        """Sets the is_used_in_data_table_join of this DataColumn.


        :param is_used_in_data_table_join: The is_used_in_data_table_join of this DataColumn.  # noqa: E501
        :type: bool
        """

        self._is_used_in_data_table_join = is_used_in_data_table_join

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


        :return: The is_used_in_poi_analysis of this DataColumn.  # noqa: E501
        :rtype: bool
        """
        return self._is_used_in_poi_analysis

    @is_used_in_poi_analysis.setter
    def is_used_in_poi_analysis(self, is_used_in_poi_analysis):
        """Sets the is_used_in_poi_analysis of this DataColumn.


        :param is_used_in_poi_analysis: The is_used_in_poi_analysis of this DataColumn.  # noqa: E501
        :type: bool
        """

        self._is_used_in_poi_analysis = is_used_in_poi_analysis

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


        :return: The is_used_in_cvs of this DataColumn.  # noqa: E501
        :rtype: bool
        """
        return self._is_used_in_cvs

    @is_used_in_cvs.setter
    def is_used_in_cvs(self, is_used_in_cvs):
        """Sets the is_used_in_cvs of this DataColumn.


        :param is_used_in_cvs: The is_used_in_cvs of this DataColumn.  # noqa: E501
        :type: bool
        """

        self._is_used_in_cvs = is_used_in_cvs

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


        :return: The internal_system_column of this DataColumn.  # noqa: E501
        :rtype: bool
        """
        return self._internal_system_column

    @internal_system_column.setter
    def internal_system_column(self, internal_system_column):
        """Sets the internal_system_column of this DataColumn.


        :param internal_system_column: The internal_system_column of this DataColumn.  # noqa: E501
        :type: bool
        """

        self._internal_system_column = internal_system_column

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


        :return: The editor_settings of this DataColumn.  # noqa: E501
        :rtype: EditorSettings
        """
        return self._editor_settings

    @editor_settings.setter
    def editor_settings(self, editor_settings):
        """Sets the editor_settings of this DataColumn.


        :param editor_settings: The editor_settings of this DataColumn.  # noqa: E501
        :type: EditorSettings
        """

        self._editor_settings = editor_settings

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


        :return: The date_format of this DataColumn.  # noqa: E501
        :rtype: DateFormat
        """
        return self._date_format

    @date_format.setter
    def date_format(self, date_format):
        """Sets the date_format of this DataColumn.


        :param date_format: The date_format of this DataColumn.  # noqa: E501
        :type: DateFormat
        """

        self._date_format = date_format

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


        :return: The separate_thousands of this DataColumn.  # noqa: E501
        :rtype: bool
        """
        return self._separate_thousands

    @separate_thousands.setter
    def separate_thousands(self, separate_thousands):
        """Sets the separate_thousands of this DataColumn.


        :param separate_thousands: The separate_thousands of this DataColumn.  # noqa: E501
        :type: bool
        """

        self._separate_thousands = separate_thousands

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

        return self.__dict__ == other.__dict__

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