# 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 UploadAppRequest(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_desc': 'str',
        'app_id': 'str',
        'app_mode': 'str',
        'app_name': 'str',
        'app_type': 'int',
        'download_url': 'str',
        'extra_info': 'ExtraInfoForUploadAppInput',
        'parse_flag': 'int',
        'product_id': 'str',
        'rotation': 'int',
        'upload_type': 'int'
    }

    attribute_map = {
        'app_desc': 'AppDesc',
        'app_id': 'AppId',
        'app_mode': 'AppMode',
        'app_name': 'AppName',
        'app_type': 'AppType',
        'download_url': 'DownloadUrl',
        'extra_info': 'ExtraInfo',
        'parse_flag': 'ParseFlag',
        'product_id': 'ProductId',
        'rotation': 'Rotation',
        'upload_type': 'UploadType'
    }

    def __init__(self, app_desc=None, app_id=None, app_mode=None, app_name=None, app_type=None, download_url=None, extra_info=None, parse_flag=None, product_id=None, rotation=None, upload_type=None, _configuration=None):  # noqa: E501
        """UploadAppRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._app_desc = None
        self._app_id = None
        self._app_mode = None
        self._app_name = None
        self._app_type = None
        self._download_url = None
        self._extra_info = None
        self._parse_flag = None
        self._product_id = None
        self._rotation = None
        self._upload_type = None
        self.discriminator = None

        if app_desc is not None:
            self.app_desc = app_desc
        if app_id is not None:
            self.app_id = app_id
        if app_mode is not None:
            self.app_mode = app_mode
        if app_name is not None:
            self.app_name = app_name
        self.app_type = app_type
        self.download_url = download_url
        if extra_info is not None:
            self.extra_info = extra_info
        if parse_flag is not None:
            self.parse_flag = parse_flag
        if product_id is not None:
            self.product_id = product_id
        if rotation is not None:
            self.rotation = rotation
        if upload_type is not None:
            self.upload_type = upload_type

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


        :return: The app_desc of this UploadAppRequest.  # noqa: E501
        :rtype: str
        """
        return self._app_desc

    @app_desc.setter
    def app_desc(self, app_desc):
        """Sets the app_desc of this UploadAppRequest.


        :param app_desc: The app_desc of this UploadAppRequest.  # noqa: E501
        :type: str
        """

        self._app_desc = app_desc

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


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

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


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

        self._app_id = app_id

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


        :return: The app_mode of this UploadAppRequest.  # noqa: E501
        :rtype: str
        """
        return self._app_mode

    @app_mode.setter
    def app_mode(self, app_mode):
        """Sets the app_mode of this UploadAppRequest.


        :param app_mode: The app_mode of this UploadAppRequest.  # noqa: E501
        :type: str
        """

        self._app_mode = app_mode

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


        :return: The app_name of this UploadAppRequest.  # noqa: E501
        :rtype: str
        """
        return self._app_name

    @app_name.setter
    def app_name(self, app_name):
        """Sets the app_name of this UploadAppRequest.


        :param app_name: The app_name of this UploadAppRequest.  # noqa: E501
        :type: str
        """

        self._app_name = app_name

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


        :return: The app_type of this UploadAppRequest.  # noqa: E501
        :rtype: int
        """
        return self._app_type

    @app_type.setter
    def app_type(self, app_type):
        """Sets the app_type of this UploadAppRequest.


        :param app_type: The app_type of this UploadAppRequest.  # noqa: E501
        :type: int
        """
        if self._configuration.client_side_validation and app_type is None:
            raise ValueError("Invalid value for `app_type`, must not be `None`")  # noqa: E501

        self._app_type = app_type

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


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

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


        :param download_url: The download_url of this UploadAppRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and download_url is None:
            raise ValueError("Invalid value for `download_url`, must not be `None`")  # noqa: E501

        self._download_url = download_url

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


        :return: The extra_info of this UploadAppRequest.  # noqa: E501
        :rtype: ExtraInfoForUploadAppInput
        """
        return self._extra_info

    @extra_info.setter
    def extra_info(self, extra_info):
        """Sets the extra_info of this UploadAppRequest.


        :param extra_info: The extra_info of this UploadAppRequest.  # noqa: E501
        :type: ExtraInfoForUploadAppInput
        """

        self._extra_info = extra_info

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


        :return: The parse_flag of this UploadAppRequest.  # noqa: E501
        :rtype: int
        """
        return self._parse_flag

    @parse_flag.setter
    def parse_flag(self, parse_flag):
        """Sets the parse_flag of this UploadAppRequest.


        :param parse_flag: The parse_flag of this UploadAppRequest.  # noqa: E501
        :type: int
        """

        self._parse_flag = parse_flag

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


        :return: The product_id of this UploadAppRequest.  # noqa: E501
        :rtype: str
        """
        return self._product_id

    @product_id.setter
    def product_id(self, product_id):
        """Sets the product_id of this UploadAppRequest.


        :param product_id: The product_id of this UploadAppRequest.  # noqa: E501
        :type: str
        """

        self._product_id = product_id

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


        :return: The rotation of this UploadAppRequest.  # noqa: E501
        :rtype: int
        """
        return self._rotation

    @rotation.setter
    def rotation(self, rotation):
        """Sets the rotation of this UploadAppRequest.


        :param rotation: The rotation of this UploadAppRequest.  # noqa: E501
        :type: int
        """

        self._rotation = rotation

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


        :return: The upload_type of this UploadAppRequest.  # noqa: E501
        :rtype: int
        """
        return self._upload_type

    @upload_type.setter
    def upload_type(self, upload_type):
        """Sets the upload_type of this UploadAppRequest.


        :param upload_type: The upload_type of this UploadAppRequest.  # noqa: E501
        :type: int
        """

        self._upload_type = upload_type

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

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