# coding: utf-8

"""
    SevOne API Documentation

    Supported endpoints by the new RESTful API  # noqa: E501

    OpenAPI spec version: 2.1.18, Hash: db562e6
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from swagger_client.models.column_setting import ColumnSetting  # noqa: F401,E501
from swagger_client.models.data_presentation_setting import DataPresentationSetting  # noqa: F401,E501
from swagger_client.models.table_setting import TableSetting  # noqa: F401,E501


class VisualizationTableSetting(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': 'ColumnSetting',
        'data_presentation': 'DataPresentationSetting',
        'table': 'TableSetting'
    }

    attribute_map = {
        'column': 'column',
        'data_presentation': 'dataPresentation',
        'table': 'table'
    }

    def __init__(self, column=None, data_presentation=None, table=None):  # noqa: E501
        """VisualizationTableSetting - a model defined in Swagger"""  # noqa: E501

        self._column = None
        self._data_presentation = None
        self._table = None
        self.discriminator = None

        if column is not None:
            self.column = column
        if data_presentation is not None:
            self.data_presentation = data_presentation
        if table is not None:
            self.table = table

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


        :return: The column of this VisualizationTableSetting.  # noqa: E501
        :rtype: ColumnSetting
        """
        return self._column

    @column.setter
    def column(self, column):
        """Sets the column of this VisualizationTableSetting.


        :param column: The column of this VisualizationTableSetting.  # noqa: E501
        :type: ColumnSetting
        """

        self._column = column

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


        :return: The data_presentation of this VisualizationTableSetting.  # noqa: E501
        :rtype: DataPresentationSetting
        """
        return self._data_presentation

    @data_presentation.setter
    def data_presentation(self, data_presentation):
        """Sets the data_presentation of this VisualizationTableSetting.


        :param data_presentation: The data_presentation of this VisualizationTableSetting.  # noqa: E501
        :type: DataPresentationSetting
        """

        self._data_presentation = data_presentation

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


        :return: The table of this VisualizationTableSetting.  # noqa: E501
        :rtype: TableSetting
        """
        return self._table

    @table.setter
    def table(self, table):
        """Sets the table of this VisualizationTableSetting.


        :param table: The table of this VisualizationTableSetting.  # noqa: E501
        :type: TableSetting
        """

        self._table = table

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

        return self.__dict__ == other.__dict__

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