# 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 MessageMedia(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 = {
        'media_name': 'str',
        'media_type': 'str',
        'media_url': 'str'
    }

    attribute_map = {
        'media_name': 'mediaName',
        'media_type': 'mediaType',
        'media_url': 'mediaUrl'
    }

    def __init__(self, media_name=None, media_type=None, media_url=None):  # noqa: E501
        """MessageMedia - a model defined in Swagger"""  # noqa: E501
        self._media_name = None
        self._media_type = None
        self._media_url = None
        self.discriminator = None
        if media_name is not None:
            self.media_name = media_name
        if media_type is not None:
            self.media_type = media_type
        if media_url is not None:
            self.media_url = media_url

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

        The name of the media attached to the message.  # noqa: E501

        :return: The media_name of this MessageMedia.  # noqa: E501
        :rtype: str
        """
        return self._media_name

    @media_name.setter
    def media_name(self, media_name):
        """Sets the media_name of this MessageMedia.

        The name of the media attached to the message.  # noqa: E501

        :param media_name: The media_name of this MessageMedia.  # noqa: E501
        :type: str
        """

        self._media_name = media_name

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

        The type of media attached to the message.<br><br><b>Valid values:</b><ul><li><code>IMAGE</code></li><li><code>PDF</code></li><li><code>DOC</code></li><li><code>TXT</code></li></ul>  # noqa: E501

        :return: The media_type of this MessageMedia.  # noqa: E501
        :rtype: str
        """
        return self._media_type

    @media_type.setter
    def media_type(self, media_type):
        """Sets the media_type of this MessageMedia.

        The type of media attached to the message.<br><br><b>Valid values:</b><ul><li><code>IMAGE</code></li><li><code>PDF</code></li><li><code>DOC</code></li><li><code>TXT</code></li></ul>  # noqa: E501

        :param media_type: The media_type of this MessageMedia.  # noqa: E501
        :type: str
        """

        self._media_type = media_type

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

        The URL of the self-hosted media attached to the message. URLs must use the \"HTTPS\" protocol.  # noqa: E501

        :return: The media_url of this MessageMedia.  # noqa: E501
        :rtype: str
        """
        return self._media_url

    @media_url.setter
    def media_url(self, media_url):
        """Sets the media_url of this MessageMedia.

        The URL of the self-hosted media attached to the message. URLs must use the \"HTTPS\" protocol.  # noqa: E501

        :param media_url: The media_url of this MessageMedia.  # noqa: E501
        :type: str
        """

        self._media_url = media_url

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

        return self.__dict__ == other.__dict__

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