# coding: utf-8

"""
    apmplus_server

    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 ListSpanRequest(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 = {
        'business_carrier': 'str',
        'end_time': 'int',
        'filters': 'list[FilterForListSpanInput]',
        'limit': 'int',
        'max_call_cost_millisecond': 'int',
        'min_call_cost_millisecond': 'int',
        'offset': 'int',
        'order': 'str',
        'order_by': 'str',
        'project_name': 'str',
        'start_time': 'int',
        'tag_filters': 'list[TagFilterForListSpanInput]'
    }

    attribute_map = {
        'business_carrier': 'BusinessCarrier',
        'end_time': 'EndTime',
        'filters': 'Filters',
        'limit': 'Limit',
        'max_call_cost_millisecond': 'MaxCallCostMillisecond',
        'min_call_cost_millisecond': 'MinCallCostMillisecond',
        'offset': 'Offset',
        'order': 'Order',
        'order_by': 'OrderBy',
        'project_name': 'ProjectName',
        'start_time': 'StartTime',
        'tag_filters': 'TagFilters'
    }

    def __init__(self, business_carrier=None, end_time=None, filters=None, limit=None, max_call_cost_millisecond=None, min_call_cost_millisecond=None, offset=None, order=None, order_by=None, project_name=None, start_time=None, tag_filters=None, _configuration=None):  # noqa: E501
        """ListSpanRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._business_carrier = None
        self._end_time = None
        self._filters = None
        self._limit = None
        self._max_call_cost_millisecond = None
        self._min_call_cost_millisecond = None
        self._offset = None
        self._order = None
        self._order_by = None
        self._project_name = None
        self._start_time = None
        self._tag_filters = None
        self.discriminator = None

        if business_carrier is not None:
            self.business_carrier = business_carrier
        self.end_time = end_time
        if filters is not None:
            self.filters = filters
        self.limit = limit
        self.max_call_cost_millisecond = max_call_cost_millisecond
        self.min_call_cost_millisecond = min_call_cost_millisecond
        self.offset = offset
        self.order = order
        self.order_by = order_by
        if project_name is not None:
            self.project_name = project_name
        self.start_time = start_time
        if tag_filters is not None:
            self.tag_filters = tag_filters

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


        :return: The business_carrier of this ListSpanRequest.  # noqa: E501
        :rtype: str
        """
        return self._business_carrier

    @business_carrier.setter
    def business_carrier(self, business_carrier):
        """Sets the business_carrier of this ListSpanRequest.


        :param business_carrier: The business_carrier of this ListSpanRequest.  # noqa: E501
        :type: str
        """

        self._business_carrier = business_carrier

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


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

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


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

        self._end_time = end_time

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


        :return: The filters of this ListSpanRequest.  # noqa: E501
        :rtype: list[FilterForListSpanInput]
        """
        return self._filters

    @filters.setter
    def filters(self, filters):
        """Sets the filters of this ListSpanRequest.


        :param filters: The filters of this ListSpanRequest.  # noqa: E501
        :type: list[FilterForListSpanInput]
        """

        self._filters = filters

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


        :return: The limit of this ListSpanRequest.  # noqa: E501
        :rtype: int
        """
        return self._limit

    @limit.setter
    def limit(self, limit):
        """Sets the limit of this ListSpanRequest.


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

        self._limit = limit

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


        :return: The max_call_cost_millisecond of this ListSpanRequest.  # noqa: E501
        :rtype: int
        """
        return self._max_call_cost_millisecond

    @max_call_cost_millisecond.setter
    def max_call_cost_millisecond(self, max_call_cost_millisecond):
        """Sets the max_call_cost_millisecond of this ListSpanRequest.


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

        self._max_call_cost_millisecond = max_call_cost_millisecond

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


        :return: The min_call_cost_millisecond of this ListSpanRequest.  # noqa: E501
        :rtype: int
        """
        return self._min_call_cost_millisecond

    @min_call_cost_millisecond.setter
    def min_call_cost_millisecond(self, min_call_cost_millisecond):
        """Sets the min_call_cost_millisecond of this ListSpanRequest.


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

        self._min_call_cost_millisecond = min_call_cost_millisecond

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


        :return: The offset of this ListSpanRequest.  # noqa: E501
        :rtype: int
        """
        return self._offset

    @offset.setter
    def offset(self, offset):
        """Sets the offset of this ListSpanRequest.


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

        self._offset = offset

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


        :return: The order of this ListSpanRequest.  # noqa: E501
        :rtype: str
        """
        return self._order

    @order.setter
    def order(self, order):
        """Sets the order of this ListSpanRequest.


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

        self._order = order

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


        :return: The order_by of this ListSpanRequest.  # noqa: E501
        :rtype: str
        """
        return self._order_by

    @order_by.setter
    def order_by(self, order_by):
        """Sets the order_by of this ListSpanRequest.


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

        self._order_by = order_by

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


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

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


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

        self._project_name = project_name

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


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

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


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

        self._start_time = start_time

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


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

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


        :param tag_filters: The tag_filters of this ListSpanRequest.  # noqa: E501
        :type: list[TagFilterForListSpanInput]
        """

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

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