# coding: utf-8

"""
    M2M Public API Service

    This API allows eBay sellers to send, retrieve, and manage messages.  # noqa: E501

    OpenAPI spec version: 1.0.0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class UpdateConversationRequest(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 = {
        'conversation_id': 'str',
        'conversation_status': 'str',
        'conversation_type': 'str',
        'read': 'bool'
    }

    attribute_map = {
        'conversation_id': 'conversationId',
        'conversation_status': 'conversationStatus',
        'conversation_type': 'conversationType',
        'read': 'read'
    }

    def __init__(self, conversation_id=None, conversation_status=None, conversation_type=None, read=None):  # noqa: E501
        """UpdateConversationRequest - a model defined in Swagger"""  # noqa: E501
        self._conversation_id = None
        self._conversation_status = None
        self._conversation_type = None
        self._read = None
        self.discriminator = None
        if conversation_id is not None:
            self.conversation_id = conversation_id
        if conversation_status is not None:
            self.conversation_status = conversation_status
        if conversation_type is not None:
            self.conversation_type = conversation_type
        if read is not None:
            self.read = read

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

        This field specifies the unique identifier of the conversation that is to be updated.<br><br>Use the <a href=\"/api-docs/commerce/message/resources/conversation/methods/getConversations\" target=\"_blank\">getConversations</a> method to retrieve conversation ID values  # noqa: E501

        :return: The conversation_id of this UpdateConversationRequest.  # noqa: E501
        :rtype: str
        """
        return self._conversation_id

    @conversation_id.setter
    def conversation_id(self, conversation_id):
        """Sets the conversation_id of this UpdateConversationRequest.

        This field specifies the unique identifier of the conversation that is to be updated.<br><br>Use the <a href=\"/api-docs/commerce/message/resources/conversation/methods/getConversations\" target=\"_blank\">getConversations</a> method to retrieve conversation ID values  # noqa: E501

        :param conversation_id: The conversation_id of this UpdateConversationRequest.  # noqa: E501
        :type: str
        """

        self._conversation_id = conversation_id

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

        This field specifies the status for which to update the specified conversation.<br><br><b>Valid values:</b><ul><li><code>ACTIVE</code></li><li><code>ARCHIVE</code></li><li><code>DELETE</code></li></ul><span class=\"tablenote\"><b>Note:</b> This field should not be used in conjunction with the <b>read</b> field. If both fields are input in the request, only the <b>read</b> status will be updated for the specified conversation and the <b>conversationStatus</b> field will be ignored.</span>  # noqa: E501

        :return: The conversation_status of this UpdateConversationRequest.  # noqa: E501
        :rtype: str
        """
        return self._conversation_status

    @conversation_status.setter
    def conversation_status(self, conversation_status):
        """Sets the conversation_status of this UpdateConversationRequest.

        This field specifies the status for which to update the specified conversation.<br><br><b>Valid values:</b><ul><li><code>ACTIVE</code></li><li><code>ARCHIVE</code></li><li><code>DELETE</code></li></ul><span class=\"tablenote\"><b>Note:</b> This field should not be used in conjunction with the <b>read</b> field. If both fields are input in the request, only the <b>read</b> status will be updated for the specified conversation and the <b>conversationStatus</b> field will be ignored.</span>  # noqa: E501

        :param conversation_status: The conversation_status of this UpdateConversationRequest.  # noqa: E501
        :type: str
        """

        self._conversation_status = conversation_status

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

        This field specifies the existing type of the conversation being updated.<br><br><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><b><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></b></span></span> This value <b>cannot</b> be updated using this method, but is required as part of the request payload.</p></div><br><b>Valid values:</b><ul><li><code>FROM_MEMBERS</code></li><li><code>FROM_EBAY</code></li></ul>  # noqa: E501

        :return: The conversation_type of this UpdateConversationRequest.  # noqa: E501
        :rtype: str
        """
        return self._conversation_type

    @conversation_type.setter
    def conversation_type(self, conversation_type):
        """Sets the conversation_type of this UpdateConversationRequest.

        This field specifies the existing type of the conversation being updated.<br><br><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><b><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></b></span></span> This value <b>cannot</b> be updated using this method, but is required as part of the request payload.</p></div><br><b>Valid values:</b><ul><li><code>FROM_MEMBERS</code></li><li><code>FROM_EBAY</code></li></ul>  # noqa: E501

        :param conversation_type: The conversation_type of this UpdateConversationRequest.  # noqa: E501
        :type: str
        """

        self._conversation_type = conversation_type

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

        This boolean specifies the read status for which to update the conversation.<br><br>If set to <code>true</code>, the conversation will update to 'read', and if set to <code>false</code>, the conversation will update to 'unread'.<br><br><span class=\"tablenote\"><b>Note:</b> This field should not be used in conjunction with the <b>conversationStatus</b> field. If both fields are input in the request, only the <b>read</b> status will be updated for the specified conversation and the <b>conversationStatus</b> field will be ignored.</span>  # noqa: E501

        :return: The read of this UpdateConversationRequest.  # noqa: E501
        :rtype: bool
        """
        return self._read

    @read.setter
    def read(self, read):
        """Sets the read of this UpdateConversationRequest.

        This boolean specifies the read status for which to update the conversation.<br><br>If set to <code>true</code>, the conversation will update to 'read', and if set to <code>false</code>, the conversation will update to 'unread'.<br><br><span class=\"tablenote\"><b>Note:</b> This field should not be used in conjunction with the <b>conversationStatus</b> field. If both fields are input in the request, only the <b>read</b> status will be updated for the specified conversation and the <b>conversationStatus</b> field will be ignored.</span>  # noqa: E501

        :param read: The read of this UpdateConversationRequest.  # noqa: E501
        :type: bool
        """

        self._read = read

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

        return self.__dict__ == other.__dict__

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