# 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 ListDeploymentRequest(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_name': 'str',
        'biz_deployment': 'bool',
        'biz_line': 'list[int]',
        'created_orderby': 'int',
        'nodes': 'list[str]',
        'page_index': 'int',
        'page_size': 'int',
        'project_id': 'str',
        'template_ids': 'list[str]',
        'updated_orderby': 'int'
    }

    attribute_map = {
        'app_name': 'app_name',
        'biz_deployment': 'biz_deployment',
        'biz_line': 'biz_line',
        'created_orderby': 'created_orderby',
        'nodes': 'nodes',
        'page_index': 'page_index',
        'page_size': 'page_size',
        'project_id': 'project_id',
        'template_ids': 'template_ids',
        'updated_orderby': 'updated_orderby'
    }

    def __init__(self, app_name=None, biz_deployment=None, biz_line=None, created_orderby=None, nodes=None, page_index=None, page_size=None, project_id=None, template_ids=None, updated_orderby=None, _configuration=None):  # noqa: E501
        """ListDeploymentRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._app_name = None
        self._biz_deployment = None
        self._biz_line = None
        self._created_orderby = None
        self._nodes = None
        self._page_index = None
        self._page_size = None
        self._project_id = None
        self._template_ids = None
        self._updated_orderby = None
        self.discriminator = None

        if app_name is not None:
            self.app_name = app_name
        if biz_deployment is not None:
            self.biz_deployment = biz_deployment
        if biz_line is not None:
            self.biz_line = biz_line
        if created_orderby is not None:
            self.created_orderby = created_orderby
        if nodes is not None:
            self.nodes = nodes
        self.page_index = page_index
        self.page_size = page_size
        if project_id is not None:
            self.project_id = project_id
        if template_ids is not None:
            self.template_ids = template_ids
        if updated_orderby is not None:
            self.updated_orderby = updated_orderby

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


        :return: The app_name of this ListDeploymentRequest.  # noqa: E501
        :rtype: str
        """
        return self._app_name

    @app_name.setter
    def app_name(self, app_name):
        """Sets the app_name of this ListDeploymentRequest.


        :param app_name: The app_name of this ListDeploymentRequest.  # noqa: E501
        :type: str
        """

        self._app_name = app_name

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


        :return: The biz_deployment of this ListDeploymentRequest.  # noqa: E501
        :rtype: bool
        """
        return self._biz_deployment

    @biz_deployment.setter
    def biz_deployment(self, biz_deployment):
        """Sets the biz_deployment of this ListDeploymentRequest.


        :param biz_deployment: The biz_deployment of this ListDeploymentRequest.  # noqa: E501
        :type: bool
        """

        self._biz_deployment = biz_deployment

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


        :return: The biz_line of this ListDeploymentRequest.  # noqa: E501
        :rtype: list[int]
        """
        return self._biz_line

    @biz_line.setter
    def biz_line(self, biz_line):
        """Sets the biz_line of this ListDeploymentRequest.


        :param biz_line: The biz_line of this ListDeploymentRequest.  # noqa: E501
        :type: list[int]
        """

        self._biz_line = biz_line

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


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

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


        :param created_orderby: The created_orderby of this ListDeploymentRequest.  # noqa: E501
        :type: int
        """

        self._created_orderby = created_orderby

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


        :return: The nodes of this ListDeploymentRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._nodes

    @nodes.setter
    def nodes(self, nodes):
        """Sets the nodes of this ListDeploymentRequest.


        :param nodes: The nodes of this ListDeploymentRequest.  # noqa: E501
        :type: list[str]
        """

        self._nodes = nodes

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


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

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


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


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

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


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


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

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


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

        self._project_id = project_id

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


        :return: The template_ids of this ListDeploymentRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._template_ids

    @template_ids.setter
    def template_ids(self, template_ids):
        """Sets the template_ids of this ListDeploymentRequest.


        :param template_ids: The template_ids of this ListDeploymentRequest.  # noqa: E501
        :type: list[str]
        """

        self._template_ids = template_ids

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


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

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


        :param updated_orderby: The updated_orderby of this ListDeploymentRequest.  # 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(ListDeploymentRequest, 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, ListDeploymentRequest):
            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, ListDeploymentRequest):
            return True

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