# coding: utf-8

"""
    convertapi

    Convert API lets you effortlessly convert file formats and types.  # noqa: E501

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


import pprint
import re  # noqa: F401

import six


class XlsxImage(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 = {
        'path': 'str',
        'image_data_embed_id': 'str',
        'image_data_content_type': 'str',
        'image_internal_file_name': 'str',
        'image_contents_url': 'str'
    }

    attribute_map = {
        'path': 'Path',
        'image_data_embed_id': 'ImageDataEmbedId',
        'image_data_content_type': 'ImageDataContentType',
        'image_internal_file_name': 'ImageInternalFileName',
        'image_contents_url': 'ImageContentsURL'
    }

    def __init__(self, path=None, image_data_embed_id=None, image_data_content_type=None, image_internal_file_name=None, image_contents_url=None):  # noqa: E501
        """XlsxImage - a model defined in Swagger"""  # noqa: E501

        self._path = None
        self._image_data_embed_id = None
        self._image_data_content_type = None
        self._image_internal_file_name = None
        self._image_contents_url = None
        self.discriminator = None

        if path is not None:
            self.path = path
        if image_data_embed_id is not None:
            self.image_data_embed_id = image_data_embed_id
        if image_data_content_type is not None:
            self.image_data_content_type = image_data_content_type
        if image_internal_file_name is not None:
            self.image_internal_file_name = image_internal_file_name
        if image_contents_url is not None:
            self.image_contents_url = image_contents_url

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

        The Path of the location of this object; leave blank for new rows  # noqa: E501

        :return: The path of this XlsxImage.  # noqa: E501
        :rtype: str
        """
        return self._path

    @path.setter
    def path(self, path):
        """Sets the path of this XlsxImage.

        The Path of the location of this object; leave blank for new rows  # noqa: E501

        :param path: The path of this XlsxImage.  # noqa: E501
        :type: str
        """

        self._path = path

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

        Read-only; internal ID for the image contents  # noqa: E501

        :return: The image_data_embed_id of this XlsxImage.  # noqa: E501
        :rtype: str
        """
        return self._image_data_embed_id

    @image_data_embed_id.setter
    def image_data_embed_id(self, image_data_embed_id):
        """Sets the image_data_embed_id of this XlsxImage.

        Read-only; internal ID for the image contents  # noqa: E501

        :param image_data_embed_id: The image_data_embed_id of this XlsxImage.  # noqa: E501
        :type: str
        """

        self._image_data_embed_id = image_data_embed_id

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

        Read-only; image data MIME content-type  # noqa: E501

        :return: The image_data_content_type of this XlsxImage.  # noqa: E501
        :rtype: str
        """
        return self._image_data_content_type

    @image_data_content_type.setter
    def image_data_content_type(self, image_data_content_type):
        """Sets the image_data_content_type of this XlsxImage.

        Read-only; image data MIME content-type  # noqa: E501

        :param image_data_content_type: The image_data_content_type of this XlsxImage.  # noqa: E501
        :type: str
        """

        self._image_data_content_type = image_data_content_type

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

        Read-only; internal file name/path for the image  # noqa: E501

        :return: The image_internal_file_name of this XlsxImage.  # noqa: E501
        :rtype: str
        """
        return self._image_internal_file_name

    @image_internal_file_name.setter
    def image_internal_file_name(self, image_internal_file_name):
        """Sets the image_internal_file_name of this XlsxImage.

        Read-only; internal file name/path for the image  # noqa: E501

        :param image_internal_file_name: The image_internal_file_name of this XlsxImage.  # noqa: E501
        :type: str
        """

        self._image_internal_file_name = image_internal_file_name

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

        URL to the image contents; file is stored in an in-memory cache and will be deleted.  Call Finish-Editing to get the contents.  # noqa: E501

        :return: The image_contents_url of this XlsxImage.  # noqa: E501
        :rtype: str
        """
        return self._image_contents_url

    @image_contents_url.setter
    def image_contents_url(self, image_contents_url):
        """Sets the image_contents_url of this XlsxImage.

        URL to the image contents; file is stored in an in-memory cache and will be deleted.  Call Finish-Editing to get the contents.  # noqa: E501

        :param image_contents_url: The image_contents_url of this XlsxImage.  # noqa: E501
        :type: str
        """

        self._image_contents_url = image_contents_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(XlsxImage, 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, XlsxImage):
            return False

        return self.__dict__ == other.__dict__

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