# 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 UpdateAppRequest(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',
        'icon_url': 'str',
        'product_id': 'str',
        'rotation': 'int'
    }

    attribute_map = {
        'app_desc': 'AppDesc',
        'app_id': 'AppId',
        'app_mode': 'AppMode',
        'app_name': 'AppName',
        'icon_url': 'IconUrl',
        'product_id': 'ProductId',
        'rotation': 'Rotation'
    }

    def __init__(self, app_desc=None, app_id=None, app_mode=None, app_name=None, icon_url=None, product_id=None, rotation=None, _configuration=None):  # noqa: E501
        """UpdateAppRequest - 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._icon_url = None
        self._product_id = None
        self._rotation = None
        self.discriminator = None

        if app_desc is not None:
            self.app_desc = app_desc
        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
        if icon_url is not None:
            self.icon_url = icon_url
        self.product_id = product_id
        if rotation is not None:
            self.rotation = rotation

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


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

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


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

        self._app_desc = app_desc

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


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

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


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

        self._app_id = app_id

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


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

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


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

        self._app_mode = app_mode

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


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

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


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

        self._app_name = app_name

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


        :return: The icon_url of this UpdateAppRequest.  # noqa: E501
        :rtype: str
        """
        return self._icon_url

    @icon_url.setter
    def icon_url(self, icon_url):
        """Sets the icon_url of this UpdateAppRequest.


        :param icon_url: The icon_url of this UpdateAppRequest.  # noqa: E501
        :type: str
        """

        self._icon_url = icon_url

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


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

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


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

        self._product_id = product_id

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


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

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


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

        self._rotation = rotation

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

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