# 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 ListModelServiceRequest(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 = {
        'name': 'str',
        'node_group_ids': 'list[str]',
        'node_id': 'str',
        'page_index': 'int',
        'page_size': 'int',
        'project_id': 'str',
        'status': 'int'
    }

    attribute_map = {
        'name': 'name',
        'node_group_ids': 'node_group_ids',
        'node_id': 'node_id',
        'page_index': 'page_index',
        'page_size': 'page_size',
        'project_id': 'project_id',
        'status': 'status'
    }

    def __init__(self, name=None, node_group_ids=None, node_id=None, page_index=None, page_size=None, project_id=None, status=None, _configuration=None):  # noqa: E501
        """ListModelServiceRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._name = None
        self._node_group_ids = None
        self._node_id = None
        self._page_index = None
        self._page_size = None
        self._project_id = None
        self._status = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if node_group_ids is not None:
            self.node_group_ids = node_group_ids
        if node_id is not None:
            self.node_id = node_id
        self.page_index = page_index
        self.page_size = page_size
        if project_id is not None:
            self.project_id = project_id
        if status is not None:
            self.status = status

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


        :return: The name of this ListModelServiceRequest.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this ListModelServiceRequest.


        :param name: The name of this ListModelServiceRequest.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The node_group_ids of this ListModelServiceRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._node_group_ids

    @node_group_ids.setter
    def node_group_ids(self, node_group_ids):
        """Sets the node_group_ids of this ListModelServiceRequest.


        :param node_group_ids: The node_group_ids of this ListModelServiceRequest.  # noqa: E501
        :type: list[str]
        """

        self._node_group_ids = node_group_ids

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


        :return: The node_id of this ListModelServiceRequest.  # noqa: E501
        :rtype: str
        """
        return self._node_id

    @node_id.setter
    def node_id(self, node_id):
        """Sets the node_id of this ListModelServiceRequest.


        :param node_id: The node_id of this ListModelServiceRequest.  # noqa: E501
        :type: str
        """

        self._node_id = node_id

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


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

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


        :param page_index: The page_index of this ListModelServiceRequest.  # 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 ListModelServiceRequest.  # noqa: E501


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

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


        :param page_size: The page_size of this ListModelServiceRequest.  # 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_id(self):
        """Gets the project_id of this ListModelServiceRequest.  # noqa: E501


        :return: The project_id of this ListModelServiceRequest.  # noqa: E501
        :rtype: str
        """
        return self._project_id

    @project_id.setter
    def project_id(self, project_id):
        """Sets the project_id of this ListModelServiceRequest.


        :param project_id: The project_id of this ListModelServiceRequest.  # noqa: E501
        :type: str
        """

        self._project_id = project_id

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


        :return: The status of this ListModelServiceRequest.  # noqa: E501
        :rtype: int
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this ListModelServiceRequest.


        :param status: The status of this ListModelServiceRequest.  # noqa: E501
        :type: int
        """

        self._status = status

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

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