# 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 ListProjectRequest(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_from': 'int',
        'created_orderby': 'int',
        'created_to': 'str',
        'iam_project_name': 'str',
        'iam_projects': 'list[str]',
        'page_index': 'int',
        'page_size': 'int',
        'project_name': 'str',
        'tag_filters': 'list[TagFilterForListProjectInput]'
    }

    attribute_map = {
        'created_from': 'created_from',
        'created_orderby': 'created_orderby',
        'created_to': 'created_to',
        'iam_project_name': 'iam_project_name',
        'iam_projects': 'iam_projects',
        'page_index': 'page_index',
        'page_size': 'page_size',
        'project_name': 'project_name',
        'tag_filters': 'tag_filters'
    }

    def __init__(self, created_from=None, created_orderby=None, created_to=None, iam_project_name=None, iam_projects=None, page_index=None, page_size=None, project_name=None, tag_filters=None, _configuration=None):  # noqa: E501
        """ListProjectRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._created_from = None
        self._created_orderby = None
        self._created_to = None
        self._iam_project_name = None
        self._iam_projects = None
        self._page_index = None
        self._page_size = None
        self._project_name = None
        self._tag_filters = None
        self.discriminator = None

        if created_from is not None:
            self.created_from = created_from
        self.created_orderby = created_orderby
        if created_to is not None:
            self.created_to = created_to
        if iam_project_name is not None:
            self.iam_project_name = iam_project_name
        if iam_projects is not None:
            self.iam_projects = iam_projects
        self.page_index = page_index
        self.page_size = page_size
        if project_name is not None:
            self.project_name = project_name
        if tag_filters is not None:
            self.tag_filters = tag_filters

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


        :return: The created_from of this ListProjectRequest.  # noqa: E501
        :rtype: int
        """
        return self._created_from

    @created_from.setter
    def created_from(self, created_from):
        """Sets the created_from of this ListProjectRequest.


        :param created_from: The created_from of this ListProjectRequest.  # noqa: E501
        :type: int
        """

        self._created_from = created_from

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


        :return: The created_orderby of this ListProjectRequest.  # noqa: E501
        :rtype: int
        """
        return self._created_orderby

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


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

        self._created_orderby = created_orderby

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


        :return: The created_to of this ListProjectRequest.  # noqa: E501
        :rtype: str
        """
        return self._created_to

    @created_to.setter
    def created_to(self, created_to):
        """Sets the created_to of this ListProjectRequest.


        :param created_to: The created_to of this ListProjectRequest.  # noqa: E501
        :type: str
        """

        self._created_to = created_to

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


        :return: The iam_project_name of this ListProjectRequest.  # noqa: E501
        :rtype: str
        """
        return self._iam_project_name

    @iam_project_name.setter
    def iam_project_name(self, iam_project_name):
        """Sets the iam_project_name of this ListProjectRequest.


        :param iam_project_name: The iam_project_name of this ListProjectRequest.  # noqa: E501
        :type: str
        """

        self._iam_project_name = iam_project_name

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


        :return: The iam_projects of this ListProjectRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._iam_projects

    @iam_projects.setter
    def iam_projects(self, iam_projects):
        """Sets the iam_projects of this ListProjectRequest.


        :param iam_projects: The iam_projects of this ListProjectRequest.  # noqa: E501
        :type: list[str]
        """

        self._iam_projects = iam_projects

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


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

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


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


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

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


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


        :return: The project_name of this ListProjectRequest.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this ListProjectRequest.


        :param project_name: The project_name of this ListProjectRequest.  # noqa: E501
        :type: str
        """

        self._project_name = project_name

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


        :return: The tag_filters of this ListProjectRequest.  # noqa: E501
        :rtype: list[TagFilterForListProjectInput]
        """
        return self._tag_filters

    @tag_filters.setter
    def tag_filters(self, tag_filters):
        """Sets the tag_filters of this ListProjectRequest.


        :param tag_filters: The tag_filters of this ListProjectRequest.  # noqa: E501
        :type: list[TagFilterForListProjectInput]
        """

        self._tag_filters = tag_filters

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

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