# 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 InstallAppsRequest(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_list': 'list[AppListForInstallAppsInput]',
        'install_type': 'int',
        'is_preinstall': 'bool',
        'pod_id': 'str',
        'product_id': 'str'
    }

    attribute_map = {
        'app_list': 'AppList',
        'install_type': 'InstallType',
        'is_preinstall': 'IsPreinstall',
        'pod_id': 'PodId',
        'product_id': 'ProductId'
    }

    def __init__(self, app_list=None, install_type=None, is_preinstall=None, pod_id=None, product_id=None, _configuration=None):  # noqa: E501
        """InstallAppsRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._app_list = None
        self._install_type = None
        self._is_preinstall = None
        self._pod_id = None
        self._product_id = None
        self.discriminator = None

        if app_list is not None:
            self.app_list = app_list
        if install_type is not None:
            self.install_type = install_type
        if is_preinstall is not None:
            self.is_preinstall = is_preinstall
        self.pod_id = pod_id
        self.product_id = product_id

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


        :return: The app_list of this InstallAppsRequest.  # noqa: E501
        :rtype: list[AppListForInstallAppsInput]
        """
        return self._app_list

    @app_list.setter
    def app_list(self, app_list):
        """Sets the app_list of this InstallAppsRequest.


        :param app_list: The app_list of this InstallAppsRequest.  # noqa: E501
        :type: list[AppListForInstallAppsInput]
        """

        self._app_list = app_list

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


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

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


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

        self._install_type = install_type

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


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

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


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

        self._is_preinstall = is_preinstall

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


        :return: The pod_id of this InstallAppsRequest.  # noqa: E501
        :rtype: str
        """
        return self._pod_id

    @pod_id.setter
    def pod_id(self, pod_id):
        """Sets the pod_id of this InstallAppsRequest.


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

        self._pod_id = pod_id

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


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

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


        :param product_id: The product_id of this InstallAppsRequest.  # 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

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

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