# 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 UsageForUpdateChannelInput(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 = {
        'cached_completion_usage': 'int',
        'cached_prompt_usage': 'int',
        'cached_total_usage': 'int',
        'character': 'int',
        'completion_usage': 'int',
        'duration': 'float',
        'prompt_usage': 'int',
        'request': 'int',
        'total_usage': 'int'
    }

    attribute_map = {
        'cached_completion_usage': 'cached_completion_usage',
        'cached_prompt_usage': 'cached_prompt_usage',
        'cached_total_usage': 'cached_total_usage',
        'character': 'character',
        'completion_usage': 'completion_usage',
        'duration': 'duration',
        'prompt_usage': 'prompt_usage',
        'request': 'request',
        'total_usage': 'total_usage'
    }

    def __init__(self, cached_completion_usage=None, cached_prompt_usage=None, cached_total_usage=None, character=None, completion_usage=None, duration=None, prompt_usage=None, request=None, total_usage=None, _configuration=None):  # noqa: E501
        """UsageForUpdateChannelInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._cached_completion_usage = None
        self._cached_prompt_usage = None
        self._cached_total_usage = None
        self._character = None
        self._completion_usage = None
        self._duration = None
        self._prompt_usage = None
        self._request = None
        self._total_usage = None
        self.discriminator = None

        if cached_completion_usage is not None:
            self.cached_completion_usage = cached_completion_usage
        if cached_prompt_usage is not None:
            self.cached_prompt_usage = cached_prompt_usage
        if cached_total_usage is not None:
            self.cached_total_usage = cached_total_usage
        if character is not None:
            self.character = character
        if completion_usage is not None:
            self.completion_usage = completion_usage
        if duration is not None:
            self.duration = duration
        if prompt_usage is not None:
            self.prompt_usage = prompt_usage
        if request is not None:
            self.request = request
        if total_usage is not None:
            self.total_usage = total_usage

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


        :return: The cached_completion_usage of this UsageForUpdateChannelInput.  # noqa: E501
        :rtype: int
        """
        return self._cached_completion_usage

    @cached_completion_usage.setter
    def cached_completion_usage(self, cached_completion_usage):
        """Sets the cached_completion_usage of this UsageForUpdateChannelInput.


        :param cached_completion_usage: The cached_completion_usage of this UsageForUpdateChannelInput.  # noqa: E501
        :type: int
        """

        self._cached_completion_usage = cached_completion_usage

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


        :return: The cached_prompt_usage of this UsageForUpdateChannelInput.  # noqa: E501
        :rtype: int
        """
        return self._cached_prompt_usage

    @cached_prompt_usage.setter
    def cached_prompt_usage(self, cached_prompt_usage):
        """Sets the cached_prompt_usage of this UsageForUpdateChannelInput.


        :param cached_prompt_usage: The cached_prompt_usage of this UsageForUpdateChannelInput.  # noqa: E501
        :type: int
        """

        self._cached_prompt_usage = cached_prompt_usage

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


        :return: The cached_total_usage of this UsageForUpdateChannelInput.  # noqa: E501
        :rtype: int
        """
        return self._cached_total_usage

    @cached_total_usage.setter
    def cached_total_usage(self, cached_total_usage):
        """Sets the cached_total_usage of this UsageForUpdateChannelInput.


        :param cached_total_usage: The cached_total_usage of this UsageForUpdateChannelInput.  # noqa: E501
        :type: int
        """

        self._cached_total_usage = cached_total_usage

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


        :return: The character of this UsageForUpdateChannelInput.  # noqa: E501
        :rtype: int
        """
        return self._character

    @character.setter
    def character(self, character):
        """Sets the character of this UsageForUpdateChannelInput.


        :param character: The character of this UsageForUpdateChannelInput.  # noqa: E501
        :type: int
        """

        self._character = character

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


        :return: The completion_usage of this UsageForUpdateChannelInput.  # noqa: E501
        :rtype: int
        """
        return self._completion_usage

    @completion_usage.setter
    def completion_usage(self, completion_usage):
        """Sets the completion_usage of this UsageForUpdateChannelInput.


        :param completion_usage: The completion_usage of this UsageForUpdateChannelInput.  # noqa: E501
        :type: int
        """

        self._completion_usage = completion_usage

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


        :return: The duration of this UsageForUpdateChannelInput.  # noqa: E501
        :rtype: float
        """
        return self._duration

    @duration.setter
    def duration(self, duration):
        """Sets the duration of this UsageForUpdateChannelInput.


        :param duration: The duration of this UsageForUpdateChannelInput.  # noqa: E501
        :type: float
        """

        self._duration = duration

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


        :return: The prompt_usage of this UsageForUpdateChannelInput.  # noqa: E501
        :rtype: int
        """
        return self._prompt_usage

    @prompt_usage.setter
    def prompt_usage(self, prompt_usage):
        """Sets the prompt_usage of this UsageForUpdateChannelInput.


        :param prompt_usage: The prompt_usage of this UsageForUpdateChannelInput.  # noqa: E501
        :type: int
        """

        self._prompt_usage = prompt_usage

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


        :return: The request of this UsageForUpdateChannelInput.  # noqa: E501
        :rtype: int
        """
        return self._request

    @request.setter
    def request(self, request):
        """Sets the request of this UsageForUpdateChannelInput.


        :param request: The request of this UsageForUpdateChannelInput.  # noqa: E501
        :type: int
        """

        self._request = request

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


        :return: The total_usage of this UsageForUpdateChannelInput.  # noqa: E501
        :rtype: int
        """
        return self._total_usage

    @total_usage.setter
    def total_usage(self, total_usage):
        """Sets the total_usage of this UsageForUpdateChannelInput.


        :param total_usage: The total_usage of this UsageForUpdateChannelInput.  # noqa: E501
        :type: int
        """

        self._total_usage = total_usage

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

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