# 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 InstallAppRequest(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 = {
        'absolute_path': 'str',
        'app_id': 'str',
        'image_id': 'str',
        'install_type': 'int',
        'is_preinstall': 'bool',
        'pod_id_list': 'list[str]',
        'product_id': 'str',
        'tag_id_list': 'list[str]',
        'version_id': 'str'
    }

    attribute_map = {
        'absolute_path': 'AbsolutePath',
        'app_id': 'AppId',
        'image_id': 'ImageId',
        'install_type': 'InstallType',
        'is_preinstall': 'IsPreinstall',
        'pod_id_list': 'PodIdList',
        'product_id': 'ProductId',
        'tag_id_list': 'TagIdList',
        'version_id': 'VersionId'
    }

    def __init__(self, absolute_path=None, app_id=None, image_id=None, install_type=None, is_preinstall=None, pod_id_list=None, product_id=None, tag_id_list=None, version_id=None, _configuration=None):  # noqa: E501
        """InstallAppRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._absolute_path = None
        self._app_id = None
        self._image_id = None
        self._install_type = None
        self._is_preinstall = None
        self._pod_id_list = None
        self._product_id = None
        self._tag_id_list = None
        self._version_id = None
        self.discriminator = None

        if absolute_path is not None:
            self.absolute_path = absolute_path
        self.app_id = app_id
        if image_id is not None:
            self.image_id = image_id
        if install_type is not None:
            self.install_type = install_type
        if is_preinstall is not None:
            self.is_preinstall = is_preinstall
        if pod_id_list is not None:
            self.pod_id_list = pod_id_list
        self.product_id = product_id
        if tag_id_list is not None:
            self.tag_id_list = tag_id_list
        self.version_id = version_id

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


        :return: The absolute_path of this InstallAppRequest.  # noqa: E501
        :rtype: str
        """
        return self._absolute_path

    @absolute_path.setter
    def absolute_path(self, absolute_path):
        """Sets the absolute_path of this InstallAppRequest.


        :param absolute_path: The absolute_path of this InstallAppRequest.  # noqa: E501
        :type: str
        """

        self._absolute_path = absolute_path

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


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

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


        :param app_id: The app_id of this InstallAppRequest.  # 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 image_id(self):
        """Gets the image_id of this InstallAppRequest.  # noqa: E501


        :return: The image_id of this InstallAppRequest.  # noqa: E501
        :rtype: str
        """
        return self._image_id

    @image_id.setter
    def image_id(self, image_id):
        """Sets the image_id of this InstallAppRequest.


        :param image_id: The image_id of this InstallAppRequest.  # noqa: E501
        :type: str
        """

        self._image_id = image_id

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


        :return: The install_type of this InstallAppRequest.  # noqa: E501
        :rtype: int
        """
        return self._install_type

    @install_type.setter
    def install_type(self, install_type):
        """Sets the install_type of this InstallAppRequest.


        :param install_type: The install_type of this InstallAppRequest.  # noqa: E501
        :type: int
        """

        self._install_type = install_type

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


        :return: The is_preinstall of this InstallAppRequest.  # noqa: E501
        :rtype: bool
        """
        return self._is_preinstall

    @is_preinstall.setter
    def is_preinstall(self, is_preinstall):
        """Sets the is_preinstall of this InstallAppRequest.


        :param is_preinstall: The is_preinstall of this InstallAppRequest.  # noqa: E501
        :type: bool
        """

        self._is_preinstall = is_preinstall

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


        :return: The pod_id_list of this InstallAppRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._pod_id_list

    @pod_id_list.setter
    def pod_id_list(self, pod_id_list):
        """Sets the pod_id_list of this InstallAppRequest.


        :param pod_id_list: The pod_id_list of this InstallAppRequest.  # noqa: E501
        :type: list[str]
        """

        self._pod_id_list = pod_id_list

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


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

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


        :param product_id: The product_id of this InstallAppRequest.  # 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 tag_id_list(self):
        """Gets the tag_id_list of this InstallAppRequest.  # noqa: E501


        :return: The tag_id_list of this InstallAppRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._tag_id_list

    @tag_id_list.setter
    def tag_id_list(self, tag_id_list):
        """Sets the tag_id_list of this InstallAppRequest.


        :param tag_id_list: The tag_id_list of this InstallAppRequest.  # noqa: E501
        :type: list[str]
        """

        self._tag_id_list = tag_id_list

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


        :return: The version_id of this InstallAppRequest.  # noqa: E501
        :rtype: str
        """
        return self._version_id

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


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

        self._version_id = version_id

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

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