# 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 ListMediapipeEventRequest(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': 'int',
        'end_time': 'int',
        'event_type': 'str',
        'instance_id': 'str',
        'instance_name': 'str',
        'node_id': 'str',
        'page_index': 'int',
        'page_size': 'int',
        'project_id': 'str',
        'source_id': 'str',
        'source_type': 'int',
        'start_time': 'int'
    }

    attribute_map = {
        'created_orderby': 'created_orderby',
        'end_time': 'end_time',
        'event_type': 'event_type',
        'instance_id': 'instance_id',
        'instance_name': 'instance_name',
        'node_id': 'node_id',
        'page_index': 'page_index',
        'page_size': 'page_size',
        'project_id': 'project_id',
        'source_id': 'source_id',
        'source_type': 'source_type',
        'start_time': 'start_time'
    }

    def __init__(self, created_orderby=None, end_time=None, event_type=None, instance_id=None, instance_name=None, node_id=None, page_index=None, page_size=None, project_id=None, source_id=None, source_type=None, start_time=None, _configuration=None):  # noqa: E501
        """ListMediapipeEventRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._created_orderby = None
        self._end_time = None
        self._event_type = None
        self._instance_id = None
        self._instance_name = None
        self._node_id = None
        self._page_index = None
        self._page_size = None
        self._project_id = None
        self._source_id = None
        self._source_type = None
        self._start_time = None
        self.discriminator = None

        if created_orderby is not None:
            self.created_orderby = created_orderby
        if end_time is not None:
            self.end_time = end_time
        if event_type is not None:
            self.event_type = event_type
        if instance_id is not None:
            self.instance_id = instance_id
        if instance_name is not None:
            self.instance_name = instance_name
        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 source_id is not None:
            self.source_id = source_id
        if source_type is not None:
            self.source_type = source_type
        if start_time is not None:
            self.start_time = start_time

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


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

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


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

        self._created_orderby = created_orderby

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


        :return: The end_time of this ListMediapipeEventRequest.  # noqa: E501
        :rtype: int
        """
        return self._end_time

    @end_time.setter
    def end_time(self, end_time):
        """Sets the end_time of this ListMediapipeEventRequest.


        :param end_time: The end_time of this ListMediapipeEventRequest.  # noqa: E501
        :type: int
        """

        self._end_time = end_time

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


        :return: The event_type of this ListMediapipeEventRequest.  # noqa: E501
        :rtype: str
        """
        return self._event_type

    @event_type.setter
    def event_type(self, event_type):
        """Sets the event_type of this ListMediapipeEventRequest.


        :param event_type: The event_type of this ListMediapipeEventRequest.  # noqa: E501
        :type: str
        """

        self._event_type = event_type

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


        :return: The instance_id of this ListMediapipeEventRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_id

    @instance_id.setter
    def instance_id(self, instance_id):
        """Sets the instance_id of this ListMediapipeEventRequest.


        :param instance_id: The instance_id of this ListMediapipeEventRequest.  # noqa: E501
        :type: str
        """

        self._instance_id = instance_id

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


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

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


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

        self._instance_name = instance_name

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


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

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


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

        self._node_id = node_id

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


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

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


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


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

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


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


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

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


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

        self._project_id = project_id

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


        :return: The source_id of this ListMediapipeEventRequest.  # noqa: E501
        :rtype: str
        """
        return self._source_id

    @source_id.setter
    def source_id(self, source_id):
        """Sets the source_id of this ListMediapipeEventRequest.


        :param source_id: The source_id of this ListMediapipeEventRequest.  # noqa: E501
        :type: str
        """

        self._source_id = source_id

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


        :return: The source_type of this ListMediapipeEventRequest.  # noqa: E501
        :rtype: int
        """
        return self._source_type

    @source_type.setter
    def source_type(self, source_type):
        """Sets the source_type of this ListMediapipeEventRequest.


        :param source_type: The source_type of this ListMediapipeEventRequest.  # noqa: E501
        :type: int
        """

        self._source_type = source_type

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


        :return: The start_time of this ListMediapipeEventRequest.  # noqa: E501
        :rtype: int
        """
        return self._start_time

    @start_time.setter
    def start_time(self, start_time):
        """Sets the start_time of this ListMediapipeEventRequest.


        :param start_time: The start_time of this ListMediapipeEventRequest.  # noqa: E501
        :type: int
        """

        self._start_time = start_time

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

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