# coding: utf-8

"""
    Thornode API

    Thornode REST API.  # noqa: E501

    OpenAPI spec version: 3.14.1
    Contact: devs@thorchain.org
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class ReferenceMemoResponse(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 = {
        'asset': 'str',
        'memo': 'str',
        'reference': 'str',
        'height': 'str',
        'registration_hash': 'str',
        'registered_by': 'str'
    }

    attribute_map = {
        'asset': 'asset',
        'memo': 'memo',
        'reference': 'reference',
        'height': 'height',
        'registration_hash': 'registration_hash',
        'registered_by': 'registered_by'
    }

    def __init__(self, asset=None, memo=None, reference=None, height=None, registration_hash=None, registered_by=None):  # noqa: E501
        """ReferenceMemoResponse - a model defined in Swagger"""  # noqa: E501
        self._asset = None
        self._memo = None
        self._reference = None
        self._height = None
        self._registration_hash = None
        self._registered_by = None
        self.discriminator = None
        self.asset = asset
        self.memo = memo
        self.reference = reference
        self.height = height
        self.registration_hash = registration_hash
        self.registered_by = registered_by

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

        the asset for which this reference memo is valid  # noqa: E501

        :return: The asset of this ReferenceMemoResponse.  # noqa: E501
        :rtype: str
        """
        return self._asset

    @asset.setter
    def asset(self, asset):
        """Sets the asset of this ReferenceMemoResponse.

        the asset for which this reference memo is valid  # noqa: E501

        :param asset: The asset of this ReferenceMemoResponse.  # noqa: E501
        :type: str
        """
        if asset is None:
            raise ValueError("Invalid value for `asset`, must not be `None`")  # noqa: E501

        self._asset = asset

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

        the original memo that was registered for memoless transactions  # noqa: E501

        :return: The memo of this ReferenceMemoResponse.  # noqa: E501
        :rtype: str
        """
        return self._memo

    @memo.setter
    def memo(self, memo):
        """Sets the memo of this ReferenceMemoResponse.

        the original memo that was registered for memoless transactions  # noqa: E501

        :param memo: The memo of this ReferenceMemoResponse.  # noqa: E501
        :type: str
        """
        if memo is None:
            raise ValueError("Invalid value for `memo`, must not be `None`")  # noqa: E501

        self._memo = memo

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

        the reference number used to identify this memo  # noqa: E501

        :return: The reference of this ReferenceMemoResponse.  # noqa: E501
        :rtype: str
        """
        return self._reference

    @reference.setter
    def reference(self, reference):
        """Sets the reference of this ReferenceMemoResponse.

        the reference number used to identify this memo  # noqa: E501

        :param reference: The reference of this ReferenceMemoResponse.  # noqa: E501
        :type: str
        """
        if reference is None:
            raise ValueError("Invalid value for `reference`, must not be `None`")  # noqa: E501

        self._reference = reference

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

        the block height when this reference memo was registered  # noqa: E501

        :return: The height of this ReferenceMemoResponse.  # noqa: E501
        :rtype: str
        """
        return self._height

    @height.setter
    def height(self, height):
        """Sets the height of this ReferenceMemoResponse.

        the block height when this reference memo was registered  # noqa: E501

        :param height: The height of this ReferenceMemoResponse.  # noqa: E501
        :type: str
        """
        if height is None:
            raise ValueError("Invalid value for `height`, must not be `None`")  # noqa: E501

        self._height = height

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

        the transaction hash where this reference memo was registered  # noqa: E501

        :return: The registration_hash of this ReferenceMemoResponse.  # noqa: E501
        :rtype: str
        """
        return self._registration_hash

    @registration_hash.setter
    def registration_hash(self, registration_hash):
        """Sets the registration_hash of this ReferenceMemoResponse.

        the transaction hash where this reference memo was registered  # noqa: E501

        :param registration_hash: The registration_hash of this ReferenceMemoResponse.  # noqa: E501
        :type: str
        """
        if registration_hash is None:
            raise ValueError("Invalid value for `registration_hash`, must not be `None`")  # noqa: E501

        self._registration_hash = registration_hash

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

        the address that registered this reference memo  # noqa: E501

        :return: The registered_by of this ReferenceMemoResponse.  # noqa: E501
        :rtype: str
        """
        return self._registered_by

    @registered_by.setter
    def registered_by(self, registered_by):
        """Sets the registered_by of this ReferenceMemoResponse.

        the address that registered this reference memo  # noqa: E501

        :param registered_by: The registered_by of this ReferenceMemoResponse.  # noqa: E501
        :type: str
        """
        if registered_by is None:
            raise ValueError("Invalid value for `registered_by`, must not be `None`")  # noqa: E501

        self._registered_by = registered_by

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

        return self.__dict__ == other.__dict__

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