# coding: utf-8

"""
    Traveler API

    The API that provides access to Traveler data.  # noqa: E501

    The version of the OpenAPI document: APS-1.5.0
    Contact: djarosz@anl.gov
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from travelerApi.configuration import Configuration


class DiscrepancyLogAllOf(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 = {
        'reference_form': 'str',
        'records': 'list[DiscrepancyLogRecord]',
        'input_by': 'str',
        'input_on': 'datetime'
    }

    attribute_map = {
        'reference_form': 'referenceForm',
        'records': 'records',
        'input_by': 'inputBy',
        'input_on': 'inputOn'
    }

    def __init__(self, reference_form=None, records=None, input_by=None, input_on=None, local_vars_configuration=None):  # noqa: E501
        """DiscrepancyLogAllOf - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._reference_form = None
        self._records = None
        self._input_by = None
        self._input_on = None
        self.discriminator = None

        if reference_form is not None:
            self.reference_form = reference_form
        if records is not None:
            self.records = records
        if input_by is not None:
            self.input_by = input_by
        if input_on is not None:
            self.input_on = input_on

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


        :return: The reference_form of this DiscrepancyLogAllOf.  # noqa: E501
        :rtype: str
        """
        return self._reference_form

    @reference_form.setter
    def reference_form(self, reference_form):
        """Sets the reference_form of this DiscrepancyLogAllOf.


        :param reference_form: The reference_form of this DiscrepancyLogAllOf.  # noqa: E501
        :type: str
        """

        self._reference_form = reference_form

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


        :return: The records of this DiscrepancyLogAllOf.  # noqa: E501
        :rtype: list[DiscrepancyLogRecord]
        """
        return self._records

    @records.setter
    def records(self, records):
        """Sets the records of this DiscrepancyLogAllOf.


        :param records: The records of this DiscrepancyLogAllOf.  # noqa: E501
        :type: list[DiscrepancyLogRecord]
        """

        self._records = records

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


        :return: The input_by of this DiscrepancyLogAllOf.  # noqa: E501
        :rtype: str
        """
        return self._input_by

    @input_by.setter
    def input_by(self, input_by):
        """Sets the input_by of this DiscrepancyLogAllOf.


        :param input_by: The input_by of this DiscrepancyLogAllOf.  # noqa: E501
        :type: str
        """

        self._input_by = input_by

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


        :return: The input_on of this DiscrepancyLogAllOf.  # noqa: E501
        :rtype: datetime
        """
        return self._input_on

    @input_on.setter
    def input_on(self, input_on):
        """Sets the input_on of this DiscrepancyLogAllOf.


        :param input_on: The input_on of this DiscrepancyLogAllOf.  # noqa: E501
        :type: datetime
        """

        self._input_on = input_on

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

        for attr, _ in six.iteritems(self.openapi_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

        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, DiscrepancyLogAllOf):
            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, DiscrepancyLogAllOf):
            return True

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