# coding: utf-8

"""
    Aron API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: 1.0.0
    Generated by: https://openapi-generator.tech
"""


try:
    from inspect import getfullargspec
except ImportError:
    from inspect import getargspec as getfullargspec
import pprint
import re  # noqa: F401
import six

from openapi_client.configuration import Configuration


class ResponseDatasetSummary(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'created_by_id': 'int',
        'created_dt': 'datetime',
        'dataset_id': 'int',
        'dataset_summary_created_by': 'int',
        'dataset_summary_dataset': 'int',
        'id': 'int',
        'immutable_slug': 'str',
        'summary': 'str',
        'updated_dt': 'datetime'
    }

    attribute_map = {
        'created_by_id': 'created_by_id',
        'created_dt': 'created_dt',
        'dataset_id': 'dataset_id',
        'dataset_summary_created_by': 'dataset_summary_created_by',
        'dataset_summary_dataset': 'dataset_summary_dataset',
        'id': 'id',
        'immutable_slug': 'immutable_slug',
        'summary': 'summary',
        'updated_dt': 'updated_dt'
    }

    def __init__(self, created_by_id=None, created_dt=None, dataset_id=None, dataset_summary_created_by=None, dataset_summary_dataset=None, id=None, immutable_slug=None, summary=None, updated_dt=None, local_vars_configuration=None):  # noqa: E501
        """ResponseDatasetSummary - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._created_by_id = None
        self._created_dt = None
        self._dataset_id = None
        self._dataset_summary_created_by = None
        self._dataset_summary_dataset = None
        self._id = None
        self._immutable_slug = None
        self._summary = None
        self._updated_dt = None
        self.discriminator = None

        self.created_by_id = created_by_id
        self.created_dt = created_dt
        self.dataset_id = dataset_id
        self.dataset_summary_created_by = dataset_summary_created_by
        self.dataset_summary_dataset = dataset_summary_dataset
        self.id = id
        self.immutable_slug = immutable_slug
        self.summary = summary
        self.updated_dt = updated_dt

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


        :return: The created_by_id of this ResponseDatasetSummary.  # noqa: E501
        :rtype: int
        """
        return self._created_by_id

    @created_by_id.setter
    def created_by_id(self, created_by_id):
        """Sets the created_by_id of this ResponseDatasetSummary.


        :param created_by_id: The created_by_id of this ResponseDatasetSummary.  # noqa: E501
        :type created_by_id: int
        """
        if self.local_vars_configuration.client_side_validation and created_by_id is None:  # noqa: E501
            raise ValueError("Invalid value for `created_by_id`, must not be `None`")  # noqa: E501

        self._created_by_id = created_by_id

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


        :return: The created_dt of this ResponseDatasetSummary.  # noqa: E501
        :rtype: datetime
        """
        return self._created_dt

    @created_dt.setter
    def created_dt(self, created_dt):
        """Sets the created_dt of this ResponseDatasetSummary.


        :param created_dt: The created_dt of this ResponseDatasetSummary.  # noqa: E501
        :type created_dt: datetime
        """
        if self.local_vars_configuration.client_side_validation and created_dt is None:  # noqa: E501
            raise ValueError("Invalid value for `created_dt`, must not be `None`")  # noqa: E501

        self._created_dt = created_dt

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


        :return: The dataset_id of this ResponseDatasetSummary.  # noqa: E501
        :rtype: int
        """
        return self._dataset_id

    @dataset_id.setter
    def dataset_id(self, dataset_id):
        """Sets the dataset_id of this ResponseDatasetSummary.


        :param dataset_id: The dataset_id of this ResponseDatasetSummary.  # noqa: E501
        :type dataset_id: int
        """
        if self.local_vars_configuration.client_side_validation and dataset_id is None:  # noqa: E501
            raise ValueError("Invalid value for `dataset_id`, must not be `None`")  # noqa: E501

        self._dataset_id = dataset_id

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


        :return: The dataset_summary_created_by of this ResponseDatasetSummary.  # noqa: E501
        :rtype: int
        """
        return self._dataset_summary_created_by

    @dataset_summary_created_by.setter
    def dataset_summary_created_by(self, dataset_summary_created_by):
        """Sets the dataset_summary_created_by of this ResponseDatasetSummary.


        :param dataset_summary_created_by: The dataset_summary_created_by of this ResponseDatasetSummary.  # noqa: E501
        :type dataset_summary_created_by: int
        """
        if self.local_vars_configuration.client_side_validation and dataset_summary_created_by is None:  # noqa: E501
            raise ValueError("Invalid value for `dataset_summary_created_by`, must not be `None`")  # noqa: E501

        self._dataset_summary_created_by = dataset_summary_created_by

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


        :return: The dataset_summary_dataset of this ResponseDatasetSummary.  # noqa: E501
        :rtype: int
        """
        return self._dataset_summary_dataset

    @dataset_summary_dataset.setter
    def dataset_summary_dataset(self, dataset_summary_dataset):
        """Sets the dataset_summary_dataset of this ResponseDatasetSummary.


        :param dataset_summary_dataset: The dataset_summary_dataset of this ResponseDatasetSummary.  # noqa: E501
        :type dataset_summary_dataset: int
        """
        if self.local_vars_configuration.client_side_validation and dataset_summary_dataset is None:  # noqa: E501
            raise ValueError("Invalid value for `dataset_summary_dataset`, must not be `None`")  # noqa: E501

        self._dataset_summary_dataset = dataset_summary_dataset

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


        :return: The id of this ResponseDatasetSummary.  # noqa: E501
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this ResponseDatasetSummary.


        :param id: The id of this ResponseDatasetSummary.  # noqa: E501
        :type id: int
        """
        if self.local_vars_configuration.client_side_validation and id is None:  # noqa: E501
            raise ValueError("Invalid value for `id`, must not be `None`")  # noqa: E501

        self._id = id

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


        :return: The immutable_slug of this ResponseDatasetSummary.  # noqa: E501
        :rtype: str
        """
        return self._immutable_slug

    @immutable_slug.setter
    def immutable_slug(self, immutable_slug):
        """Sets the immutable_slug of this ResponseDatasetSummary.


        :param immutable_slug: The immutable_slug of this ResponseDatasetSummary.  # noqa: E501
        :type immutable_slug: str
        """
        if self.local_vars_configuration.client_side_validation and immutable_slug is None:  # noqa: E501
            raise ValueError("Invalid value for `immutable_slug`, must not be `None`")  # noqa: E501

        self._immutable_slug = immutable_slug

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


        :return: The summary of this ResponseDatasetSummary.  # noqa: E501
        :rtype: str
        """
        return self._summary

    @summary.setter
    def summary(self, summary):
        """Sets the summary of this ResponseDatasetSummary.


        :param summary: The summary of this ResponseDatasetSummary.  # noqa: E501
        :type summary: str
        """
        if self.local_vars_configuration.client_side_validation and summary is None:  # noqa: E501
            raise ValueError("Invalid value for `summary`, must not be `None`")  # noqa: E501

        self._summary = summary

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


        :return: The updated_dt of this ResponseDatasetSummary.  # noqa: E501
        :rtype: datetime
        """
        return self._updated_dt

    @updated_dt.setter
    def updated_dt(self, updated_dt):
        """Sets the updated_dt of this ResponseDatasetSummary.


        :param updated_dt: The updated_dt of this ResponseDatasetSummary.  # noqa: E501
        :type updated_dt: datetime
        """
        if self.local_vars_configuration.client_side_validation and updated_dt is None:  # noqa: E501
            raise ValueError("Invalid value for `updated_dt`, must not be `None`")  # noqa: E501

        self._updated_dt = updated_dt

    def to_dict(self, serialize=False):
        """Returns the model properties as a dict"""
        result = {}

        def convert(x):
            if hasattr(x, "to_dict"):
                args = getfullargspec(x.to_dict).args
                if len(args) == 1:
                    return x.to_dict()
                else:
                    return x.to_dict(serialize)
            else:
                return x

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            attr = self.attribute_map.get(attr, attr) if serialize else attr
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: convert(x),
                    value
                ))
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], convert(item[1])),
                    value.items()
                ))
            else:
                result[attr] = convert(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, ResponseDatasetSummary):
            return False

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
