# 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 ListModelRequest(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 = {
        'created_orderby': 'str',
        'kind': 'int',
        'model_name': 'str',
        'page_index': 'int',
        'page_size': 'int',
        'project_id': 'str',
        'updated_orderby': 'int'
    }

    attribute_map = {
        'created_orderby': 'created_orderby',
        'kind': 'kind',
        'model_name': 'model_name',
        'page_index': 'page_index',
        'page_size': 'page_size',
        'project_id': 'project_id',
        'updated_orderby': 'updated_orderby'
    }

    def __init__(self, created_orderby=None, kind=None, model_name=None, page_index=None, page_size=None, project_id=None, updated_orderby=None, _configuration=None):  # noqa: E501
        """ListModelRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._created_orderby = None
        self._kind = None
        self._model_name = None
        self._page_index = None
        self._page_size = None
        self._project_id = None
        self._updated_orderby = None
        self.discriminator = None

        if created_orderby is not None:
            self.created_orderby = created_orderby
        if kind is not None:
            self.kind = kind
        if model_name is not None:
            self.model_name = model_name
        self.page_index = page_index
        self.page_size = page_size
        if project_id is not None:
            self.project_id = project_id
        if updated_orderby is not None:
            self.updated_orderby = updated_orderby

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


        :return: The created_orderby of this ListModelRequest.  # noqa: E501
        :rtype: str
        """
        return self._created_orderby

    @created_orderby.setter
    def created_orderby(self, created_orderby):
        """Sets the created_orderby of this ListModelRequest.


        :param created_orderby: The created_orderby of this ListModelRequest.  # noqa: E501
        :type: str
        """
        allowed_values = ["0", "1"]  # noqa: E501
        if (self._configuration.client_side_validation and
                created_orderby not in allowed_values):
            raise ValueError(
                "Invalid value for `created_orderby` ({0}), must be one of {1}"  # noqa: E501
                .format(created_orderby, allowed_values)
            )

        self._created_orderby = created_orderby

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


        :return: The kind of this ListModelRequest.  # noqa: E501
        :rtype: int
        """
        return self._kind

    @kind.setter
    def kind(self, kind):
        """Sets the kind of this ListModelRequest.


        :param kind: The kind of this ListModelRequest.  # noqa: E501
        :type: int
        """

        self._kind = kind

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


        :return: The model_name of this ListModelRequest.  # noqa: E501
        :rtype: str
        """
        return self._model_name

    @model_name.setter
    def model_name(self, model_name):
        """Sets the model_name of this ListModelRequest.


        :param model_name: The model_name of this ListModelRequest.  # noqa: E501
        :type: str
        """

        self._model_name = model_name

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


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

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


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

        self._page_index = page_index

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


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

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


        :param page_size: The page_size of this ListModelRequest.  # 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

        self._page_size = page_size

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


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

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


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

        self._project_id = project_id

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


        :return: The updated_orderby of this ListModelRequest.  # noqa: E501
        :rtype: int
        """
        return self._updated_orderby

    @updated_orderby.setter
    def updated_orderby(self, updated_orderby):
        """Sets the updated_orderby of this ListModelRequest.


        :param updated_orderby: The updated_orderby of this ListModelRequest.  # noqa: E501
        :type: int
        """

        self._updated_orderby = updated_orderby

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

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