# 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 GetTraceTrendRequest(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[FilterForGetTraceTrendInput]',
        'granularity': 'int',
        'granularity_unit': 'str',
        'max_call_cost_millisecond': 'int',
        'min_call_cost_millisecond': 'int',
        'project_name': 'str',
        'start_time': 'int',
        'tag_filters': 'list[TagFilterForGetTraceTrendInput]'
    }

    attribute_map = {
        'business_carrier': 'BusinessCarrier',
        'end_time': 'EndTime',
        'filters': 'Filters',
        'granularity': 'Granularity',
        'granularity_unit': 'GranularityUnit',
        'max_call_cost_millisecond': 'MaxCallCostMillisecond',
        'min_call_cost_millisecond': 'MinCallCostMillisecond',
        'project_name': 'ProjectName',
        'start_time': 'StartTime',
        'tag_filters': 'TagFilters'
    }

    def __init__(self, business_carrier=None, end_time=None, filters=None, granularity=None, granularity_unit=None, max_call_cost_millisecond=None, min_call_cost_millisecond=None, project_name=None, start_time=None, tag_filters=None, _configuration=None):  # noqa: E501
        """GetTraceTrendRequest - 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._granularity = None
        self._granularity_unit = None
        self._max_call_cost_millisecond = None
        self._min_call_cost_millisecond = 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.granularity = granularity
        self.granularity_unit = granularity_unit
        self.max_call_cost_millisecond = max_call_cost_millisecond
        self.min_call_cost_millisecond = min_call_cost_millisecond
        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 GetTraceTrendRequest.  # noqa: E501


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

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


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

        self._business_carrier = business_carrier

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


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

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


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


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

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


        :param filters: The filters of this GetTraceTrendRequest.  # noqa: E501
        :type: list[FilterForGetTraceTrendInput]
        """

        self._filters = filters

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


        :return: The granularity of this GetTraceTrendRequest.  # noqa: E501
        :rtype: int
        """
        return self._granularity

    @granularity.setter
    def granularity(self, granularity):
        """Sets the granularity of this GetTraceTrendRequest.


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

        self._granularity = granularity

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


        :return: The granularity_unit of this GetTraceTrendRequest.  # noqa: E501
        :rtype: str
        """
        return self._granularity_unit

    @granularity_unit.setter
    def granularity_unit(self, granularity_unit):
        """Sets the granularity_unit of this GetTraceTrendRequest.


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

        self._granularity_unit = granularity_unit

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


        :return: The max_call_cost_millisecond of this GetTraceTrendRequest.  # 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 GetTraceTrendRequest.


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


        :return: The min_call_cost_millisecond of this GetTraceTrendRequest.  # 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 GetTraceTrendRequest.


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


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

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


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

        self._project_name = project_name

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


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

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


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


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

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


        :param tag_filters: The tag_filters of this GetTraceTrendRequest.  # noqa: E501
        :type: list[TagFilterForGetTraceTrendInput]
        """

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

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