# coding: utf-8

"""
    acep

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

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


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class LatestVersionForDetailAppOutput(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 = {
        'app_id': 'str',
        'app_version_desc': 'str',
        'download_url': 'str',
        'md5': 'str',
        'package_name': 'str',
        'version_code': 'int',
        'version_id': 'int',
        'version_name': 'str'
    }

    attribute_map = {
        'app_id': 'AppId',
        'app_version_desc': 'AppVersionDesc',
        'download_url': 'DownloadUrl',
        'md5': 'MD5',
        'package_name': 'PackageName',
        'version_code': 'VersionCode',
        'version_id': 'VersionId',
        'version_name': 'VersionName'
    }

    def __init__(self, app_id=None, app_version_desc=None, download_url=None, md5=None, package_name=None, version_code=None, version_id=None, version_name=None, _configuration=None):  # noqa: E501
        """LatestVersionForDetailAppOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._app_id = None
        self._app_version_desc = None
        self._download_url = None
        self._md5 = None
        self._package_name = None
        self._version_code = None
        self._version_id = None
        self._version_name = None
        self.discriminator = None

        if app_id is not None:
            self.app_id = app_id
        if app_version_desc is not None:
            self.app_version_desc = app_version_desc
        if download_url is not None:
            self.download_url = download_url
        if md5 is not None:
            self.md5 = md5
        if package_name is not None:
            self.package_name = package_name
        if version_code is not None:
            self.version_code = version_code
        if version_id is not None:
            self.version_id = version_id
        if version_name is not None:
            self.version_name = version_name

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


        :return: The app_id of this LatestVersionForDetailAppOutput.  # noqa: E501
        :rtype: str
        """
        return self._app_id

    @app_id.setter
    def app_id(self, app_id):
        """Sets the app_id of this LatestVersionForDetailAppOutput.


        :param app_id: The app_id of this LatestVersionForDetailAppOutput.  # noqa: E501
        :type: str
        """

        self._app_id = app_id

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


        :return: The app_version_desc of this LatestVersionForDetailAppOutput.  # noqa: E501
        :rtype: str
        """
        return self._app_version_desc

    @app_version_desc.setter
    def app_version_desc(self, app_version_desc):
        """Sets the app_version_desc of this LatestVersionForDetailAppOutput.


        :param app_version_desc: The app_version_desc of this LatestVersionForDetailAppOutput.  # noqa: E501
        :type: str
        """

        self._app_version_desc = app_version_desc

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


        :return: The download_url of this LatestVersionForDetailAppOutput.  # noqa: E501
        :rtype: str
        """
        return self._download_url

    @download_url.setter
    def download_url(self, download_url):
        """Sets the download_url of this LatestVersionForDetailAppOutput.


        :param download_url: The download_url of this LatestVersionForDetailAppOutput.  # noqa: E501
        :type: str
        """

        self._download_url = download_url

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


        :return: The md5 of this LatestVersionForDetailAppOutput.  # noqa: E501
        :rtype: str
        """
        return self._md5

    @md5.setter
    def md5(self, md5):
        """Sets the md5 of this LatestVersionForDetailAppOutput.


        :param md5: The md5 of this LatestVersionForDetailAppOutput.  # noqa: E501
        :type: str
        """

        self._md5 = md5

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


        :return: The package_name of this LatestVersionForDetailAppOutput.  # noqa: E501
        :rtype: str
        """
        return self._package_name

    @package_name.setter
    def package_name(self, package_name):
        """Sets the package_name of this LatestVersionForDetailAppOutput.


        :param package_name: The package_name of this LatestVersionForDetailAppOutput.  # noqa: E501
        :type: str
        """

        self._package_name = package_name

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


        :return: The version_code of this LatestVersionForDetailAppOutput.  # noqa: E501
        :rtype: int
        """
        return self._version_code

    @version_code.setter
    def version_code(self, version_code):
        """Sets the version_code of this LatestVersionForDetailAppOutput.


        :param version_code: The version_code of this LatestVersionForDetailAppOutput.  # noqa: E501
        :type: int
        """

        self._version_code = version_code

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


        :return: The version_id of this LatestVersionForDetailAppOutput.  # noqa: E501
        :rtype: int
        """
        return self._version_id

    @version_id.setter
    def version_id(self, version_id):
        """Sets the version_id of this LatestVersionForDetailAppOutput.


        :param version_id: The version_id of this LatestVersionForDetailAppOutput.  # noqa: E501
        :type: int
        """

        self._version_id = version_id

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


        :return: The version_name of this LatestVersionForDetailAppOutput.  # noqa: E501
        :rtype: str
        """
        return self._version_name

    @version_name.setter
    def version_name(self, version_name):
        """Sets the version_name of this LatestVersionForDetailAppOutput.


        :param version_name: The version_name of this LatestVersionForDetailAppOutput.  # noqa: E501
        :type: str
        """

        self._version_name = version_name

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

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