# coding: utf-8

"""
    aidap

    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 WorkspaceUsageForDescribeWorkspaceDetailOutput(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 = {
        'branch_compute_time_seconds': 'int',
        'branch_created_num': 'int',
        'compute_time_seconds': 'int',
        'data_size_total_bytes': 'int',
        'data_size_used_bytes': 'int',
        'function_call_num': 'int',
        'service_time_seconds': 'int',
        'stat_time': 'str',
        'storage_size_used_bytes': 'int'
    }

    attribute_map = {
        'branch_compute_time_seconds': 'BranchComputeTimeSeconds',
        'branch_created_num': 'BranchCreatedNum',
        'compute_time_seconds': 'ComputeTimeSeconds',
        'data_size_total_bytes': 'DataSizeTotalBytes',
        'data_size_used_bytes': 'DataSizeUsedBytes',
        'function_call_num': 'FunctionCallNum',
        'service_time_seconds': 'ServiceTimeSeconds',
        'stat_time': 'StatTime',
        'storage_size_used_bytes': 'StorageSizeUsedBytes'
    }

    def __init__(self, branch_compute_time_seconds=None, branch_created_num=None, compute_time_seconds=None, data_size_total_bytes=None, data_size_used_bytes=None, function_call_num=None, service_time_seconds=None, stat_time=None, storage_size_used_bytes=None, _configuration=None):  # noqa: E501
        """WorkspaceUsageForDescribeWorkspaceDetailOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._branch_compute_time_seconds = None
        self._branch_created_num = None
        self._compute_time_seconds = None
        self._data_size_total_bytes = None
        self._data_size_used_bytes = None
        self._function_call_num = None
        self._service_time_seconds = None
        self._stat_time = None
        self._storage_size_used_bytes = None
        self.discriminator = None

        if branch_compute_time_seconds is not None:
            self.branch_compute_time_seconds = branch_compute_time_seconds
        if branch_created_num is not None:
            self.branch_created_num = branch_created_num
        if compute_time_seconds is not None:
            self.compute_time_seconds = compute_time_seconds
        if data_size_total_bytes is not None:
            self.data_size_total_bytes = data_size_total_bytes
        if data_size_used_bytes is not None:
            self.data_size_used_bytes = data_size_used_bytes
        if function_call_num is not None:
            self.function_call_num = function_call_num
        if service_time_seconds is not None:
            self.service_time_seconds = service_time_seconds
        if stat_time is not None:
            self.stat_time = stat_time
        if storage_size_used_bytes is not None:
            self.storage_size_used_bytes = storage_size_used_bytes

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


        :return: The branch_compute_time_seconds of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :rtype: int
        """
        return self._branch_compute_time_seconds

    @branch_compute_time_seconds.setter
    def branch_compute_time_seconds(self, branch_compute_time_seconds):
        """Sets the branch_compute_time_seconds of this WorkspaceUsageForDescribeWorkspaceDetailOutput.


        :param branch_compute_time_seconds: The branch_compute_time_seconds of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :type: int
        """

        self._branch_compute_time_seconds = branch_compute_time_seconds

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


        :return: The branch_created_num of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :rtype: int
        """
        return self._branch_created_num

    @branch_created_num.setter
    def branch_created_num(self, branch_created_num):
        """Sets the branch_created_num of this WorkspaceUsageForDescribeWorkspaceDetailOutput.


        :param branch_created_num: The branch_created_num of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :type: int
        """

        self._branch_created_num = branch_created_num

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


        :return: The compute_time_seconds of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :rtype: int
        """
        return self._compute_time_seconds

    @compute_time_seconds.setter
    def compute_time_seconds(self, compute_time_seconds):
        """Sets the compute_time_seconds of this WorkspaceUsageForDescribeWorkspaceDetailOutput.


        :param compute_time_seconds: The compute_time_seconds of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :type: int
        """

        self._compute_time_seconds = compute_time_seconds

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


        :return: The data_size_total_bytes of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :rtype: int
        """
        return self._data_size_total_bytes

    @data_size_total_bytes.setter
    def data_size_total_bytes(self, data_size_total_bytes):
        """Sets the data_size_total_bytes of this WorkspaceUsageForDescribeWorkspaceDetailOutput.


        :param data_size_total_bytes: The data_size_total_bytes of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :type: int
        """

        self._data_size_total_bytes = data_size_total_bytes

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


        :return: The data_size_used_bytes of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :rtype: int
        """
        return self._data_size_used_bytes

    @data_size_used_bytes.setter
    def data_size_used_bytes(self, data_size_used_bytes):
        """Sets the data_size_used_bytes of this WorkspaceUsageForDescribeWorkspaceDetailOutput.


        :param data_size_used_bytes: The data_size_used_bytes of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :type: int
        """

        self._data_size_used_bytes = data_size_used_bytes

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


        :return: The function_call_num of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :rtype: int
        """
        return self._function_call_num

    @function_call_num.setter
    def function_call_num(self, function_call_num):
        """Sets the function_call_num of this WorkspaceUsageForDescribeWorkspaceDetailOutput.


        :param function_call_num: The function_call_num of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :type: int
        """

        self._function_call_num = function_call_num

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


        :return: The service_time_seconds of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :rtype: int
        """
        return self._service_time_seconds

    @service_time_seconds.setter
    def service_time_seconds(self, service_time_seconds):
        """Sets the service_time_seconds of this WorkspaceUsageForDescribeWorkspaceDetailOutput.


        :param service_time_seconds: The service_time_seconds of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :type: int
        """

        self._service_time_seconds = service_time_seconds

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


        :return: The stat_time of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :rtype: str
        """
        return self._stat_time

    @stat_time.setter
    def stat_time(self, stat_time):
        """Sets the stat_time of this WorkspaceUsageForDescribeWorkspaceDetailOutput.


        :param stat_time: The stat_time of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :type: str
        """

        self._stat_time = stat_time

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


        :return: The storage_size_used_bytes of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :rtype: int
        """
        return self._storage_size_used_bytes

    @storage_size_used_bytes.setter
    def storage_size_used_bytes(self, storage_size_used_bytes):
        """Sets the storage_size_used_bytes of this WorkspaceUsageForDescribeWorkspaceDetailOutput.


        :param storage_size_used_bytes: The storage_size_used_bytes of this WorkspaceUsageForDescribeWorkspaceDetailOutput.  # noqa: E501
        :type: int
        """

        self._storage_size_used_bytes = storage_size_used_bytes

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

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