# 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 SummaryForGetTraceDetailOutput(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 = {
        'component_span_ids': 'ComponentSpanIdsForGetTraceDetailOutput',
        'error_span_ids': 'list[str]',
        'llm_component_span_ids': 'LLMComponentSpanIdsForGetTraceDetailOutput',
        'service_nums': 'int',
        'span_nums': 'int'
    }

    attribute_map = {
        'component_span_ids': 'ComponentSpanIds',
        'error_span_ids': 'ErrorSpanIds',
        'llm_component_span_ids': 'LLMComponentSpanIds',
        'service_nums': 'ServiceNums',
        'span_nums': 'SpanNums'
    }

    def __init__(self, component_span_ids=None, error_span_ids=None, llm_component_span_ids=None, service_nums=None, span_nums=None, _configuration=None):  # noqa: E501
        """SummaryForGetTraceDetailOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._component_span_ids = None
        self._error_span_ids = None
        self._llm_component_span_ids = None
        self._service_nums = None
        self._span_nums = None
        self.discriminator = None

        if component_span_ids is not None:
            self.component_span_ids = component_span_ids
        if error_span_ids is not None:
            self.error_span_ids = error_span_ids
        if llm_component_span_ids is not None:
            self.llm_component_span_ids = llm_component_span_ids
        if service_nums is not None:
            self.service_nums = service_nums
        if span_nums is not None:
            self.span_nums = span_nums

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


        :return: The component_span_ids of this SummaryForGetTraceDetailOutput.  # noqa: E501
        :rtype: ComponentSpanIdsForGetTraceDetailOutput
        """
        return self._component_span_ids

    @component_span_ids.setter
    def component_span_ids(self, component_span_ids):
        """Sets the component_span_ids of this SummaryForGetTraceDetailOutput.


        :param component_span_ids: The component_span_ids of this SummaryForGetTraceDetailOutput.  # noqa: E501
        :type: ComponentSpanIdsForGetTraceDetailOutput
        """

        self._component_span_ids = component_span_ids

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


        :return: The error_span_ids of this SummaryForGetTraceDetailOutput.  # noqa: E501
        :rtype: list[str]
        """
        return self._error_span_ids

    @error_span_ids.setter
    def error_span_ids(self, error_span_ids):
        """Sets the error_span_ids of this SummaryForGetTraceDetailOutput.


        :param error_span_ids: The error_span_ids of this SummaryForGetTraceDetailOutput.  # noqa: E501
        :type: list[str]
        """

        self._error_span_ids = error_span_ids

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


        :return: The llm_component_span_ids of this SummaryForGetTraceDetailOutput.  # noqa: E501
        :rtype: LLMComponentSpanIdsForGetTraceDetailOutput
        """
        return self._llm_component_span_ids

    @llm_component_span_ids.setter
    def llm_component_span_ids(self, llm_component_span_ids):
        """Sets the llm_component_span_ids of this SummaryForGetTraceDetailOutput.


        :param llm_component_span_ids: The llm_component_span_ids of this SummaryForGetTraceDetailOutput.  # noqa: E501
        :type: LLMComponentSpanIdsForGetTraceDetailOutput
        """

        self._llm_component_span_ids = llm_component_span_ids

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


        :return: The service_nums of this SummaryForGetTraceDetailOutput.  # noqa: E501
        :rtype: int
        """
        return self._service_nums

    @service_nums.setter
    def service_nums(self, service_nums):
        """Sets the service_nums of this SummaryForGetTraceDetailOutput.


        :param service_nums: The service_nums of this SummaryForGetTraceDetailOutput.  # noqa: E501
        :type: int
        """

        self._service_nums = service_nums

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


        :return: The span_nums of this SummaryForGetTraceDetailOutput.  # noqa: E501
        :rtype: int
        """
        return self._span_nums

    @span_nums.setter
    def span_nums(self, span_nums):
        """Sets the span_nums of this SummaryForGetTraceDetailOutput.


        :param span_nums: The span_nums of this SummaryForGetTraceDetailOutput.  # noqa: E501
        :type: int
        """

        self._span_nums = span_nums

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

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