# coding: utf-8

"""
    vei_api

    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 ListMediapipeInstanceRequest(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 = {
        'engine_types': 'list[int]',
        'hci_alias': 'list[str]',
        'hci_names': 'list[str]',
        'instance_name': 'str',
        'page_index': 'int',
        'page_size': 'int',
        'project_ids': 'list[str]',
        'statuses': 'list[int]'
    }

    attribute_map = {
        'engine_types': 'engine_types',
        'hci_alias': 'hci_alias',
        'hci_names': 'hci_names',
        'instance_name': 'instance_name',
        'page_index': 'page_index',
        'page_size': 'page_size',
        'project_ids': 'project_ids',
        'statuses': 'statuses'
    }

    def __init__(self, engine_types=None, hci_alias=None, hci_names=None, instance_name=None, page_index=None, page_size=None, project_ids=None, statuses=None, _configuration=None):  # noqa: E501
        """ListMediapipeInstanceRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._engine_types = None
        self._hci_alias = None
        self._hci_names = None
        self._instance_name = None
        self._page_index = None
        self._page_size = None
        self._project_ids = None
        self._statuses = None
        self.discriminator = None

        if engine_types is not None:
            self.engine_types = engine_types
        if hci_alias is not None:
            self.hci_alias = hci_alias
        if hci_names is not None:
            self.hci_names = hci_names
        if instance_name is not None:
            self.instance_name = instance_name
        self.page_index = page_index
        self.page_size = page_size
        if project_ids is not None:
            self.project_ids = project_ids
        if statuses is not None:
            self.statuses = statuses

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


        :return: The engine_types of this ListMediapipeInstanceRequest.  # noqa: E501
        :rtype: list[int]
        """
        return self._engine_types

    @engine_types.setter
    def engine_types(self, engine_types):
        """Sets the engine_types of this ListMediapipeInstanceRequest.


        :param engine_types: The engine_types of this ListMediapipeInstanceRequest.  # noqa: E501
        :type: list[int]
        """

        self._engine_types = engine_types

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


        :return: The hci_alias of this ListMediapipeInstanceRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._hci_alias

    @hci_alias.setter
    def hci_alias(self, hci_alias):
        """Sets the hci_alias of this ListMediapipeInstanceRequest.


        :param hci_alias: The hci_alias of this ListMediapipeInstanceRequest.  # noqa: E501
        :type: list[str]
        """

        self._hci_alias = hci_alias

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


        :return: The hci_names of this ListMediapipeInstanceRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._hci_names

    @hci_names.setter
    def hci_names(self, hci_names):
        """Sets the hci_names of this ListMediapipeInstanceRequest.


        :param hci_names: The hci_names of this ListMediapipeInstanceRequest.  # noqa: E501
        :type: list[str]
        """

        self._hci_names = hci_names

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


        :return: The instance_name of this ListMediapipeInstanceRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_name

    @instance_name.setter
    def instance_name(self, instance_name):
        """Sets the instance_name of this ListMediapipeInstanceRequest.


        :param instance_name: The instance_name of this ListMediapipeInstanceRequest.  # noqa: E501
        :type: str
        """

        self._instance_name = instance_name

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


        :return: The page_index of this ListMediapipeInstanceRequest.  # noqa: E501
        :rtype: int
        """
        return self._page_index

    @page_index.setter
    def page_index(self, page_index):
        """Sets the page_index of this ListMediapipeInstanceRequest.


        :param page_index: The page_index of this ListMediapipeInstanceRequest.  # noqa: E501
        :type: int
        """
        if self._configuration.client_side_validation and page_index is None:
            raise ValueError("Invalid value for `page_index`, must not be `None`")  # noqa: E501
        if (self._configuration.client_side_validation and
                page_index is not None and page_index < 1):  # noqa: E501
            raise ValueError("Invalid value for `page_index`, must be a value greater than or equal to `1`")  # noqa: E501

        self._page_index = page_index

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


        :return: The page_size of this ListMediapipeInstanceRequest.  # noqa: E501
        :rtype: int
        """
        return self._page_size

    @page_size.setter
    def page_size(self, page_size):
        """Sets the page_size of this ListMediapipeInstanceRequest.


        :param page_size: The page_size of this ListMediapipeInstanceRequest.  # noqa: E501
        :type: int
        """
        if self._configuration.client_side_validation and page_size is None:
            raise ValueError("Invalid value for `page_size`, must not be `None`")  # noqa: E501
        if (self._configuration.client_side_validation and
                page_size is not None and page_size < 1):  # noqa: E501
            raise ValueError("Invalid value for `page_size`, must be a value greater than or equal to `1`")  # noqa: E501

        self._page_size = page_size

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


        :return: The project_ids of this ListMediapipeInstanceRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._project_ids

    @project_ids.setter
    def project_ids(self, project_ids):
        """Sets the project_ids of this ListMediapipeInstanceRequest.


        :param project_ids: The project_ids of this ListMediapipeInstanceRequest.  # noqa: E501
        :type: list[str]
        """

        self._project_ids = project_ids

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


        :return: The statuses of this ListMediapipeInstanceRequest.  # noqa: E501
        :rtype: list[int]
        """
        return self._statuses

    @statuses.setter
    def statuses(self, statuses):
        """Sets the statuses of this ListMediapipeInstanceRequest.


        :param statuses: The statuses of this ListMediapipeInstanceRequest.  # noqa: E501
        :type: list[int]
        """

        self._statuses = statuses

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

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