# coding: utf-8

"""
    Cloudera Manager API

    <h1>Cloudera Manager API v57</h1>       <p>Introduced in Cloudera Manager 7.13.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>  # noqa: E501

    OpenAPI spec version: 7.13.1
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class ApiHdfsUsageReportRow(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 = {
        '_date': 'str',
        'user': 'str',
        'size': 'int',
        'raw_size': 'int',
        'num_files': 'int'
    }

    attribute_map = {
        '_date': 'date',
        'user': 'user',
        'size': 'size',
        'raw_size': 'rawSize',
        'num_files': 'numFiles'
    }

    def __init__(self, _date=None, user=None, size=None, raw_size=None, num_files=None):  # noqa: E501
        """ApiHdfsUsageReportRow - a model defined in Swagger"""  # noqa: E501
        self.__date = None
        self._user = None
        self._size = None
        self._raw_size = None
        self._num_files = None
        self.discriminator = None
        if _date is not None:
            self._date = _date
        if user is not None:
            self.user = user
        if size is not None:
            self.size = size
        if raw_size is not None:
            self.raw_size = raw_size
        if num_files is not None:
            self.num_files = num_files

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

        The date of the report row data.  # noqa: E501

        :return: The _date of this ApiHdfsUsageReportRow.  # noqa: E501
        :rtype: str
        """
        return self.__date

    @_date.setter
    def _date(self, _date):
        """Sets the _date of this ApiHdfsUsageReportRow.

        The date of the report row data.  # noqa: E501

        :param _date: The _date of this ApiHdfsUsageReportRow.  # noqa: E501
        :type: str
        """

        self.__date = _date

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

        The user being reported.  # noqa: E501

        :return: The user of this ApiHdfsUsageReportRow.  # noqa: E501
        :rtype: str
        """
        return self._user

    @user.setter
    def user(self, user):
        """Sets the user of this ApiHdfsUsageReportRow.

        The user being reported.  # noqa: E501

        :param user: The user of this ApiHdfsUsageReportRow.  # noqa: E501
        :type: str
        """

        self._user = user

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

        Total size (in bytes) of the files owned by this user. This does not include replication in HDFS.  # noqa: E501

        :return: The size of this ApiHdfsUsageReportRow.  # noqa: E501
        :rtype: int
        """
        return self._size

    @size.setter
    def size(self, size):
        """Sets the size of this ApiHdfsUsageReportRow.

        Total size (in bytes) of the files owned by this user. This does not include replication in HDFS.  # noqa: E501

        :param size: The size of this ApiHdfsUsageReportRow.  # noqa: E501
        :type: int
        """

        self._size = size

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

        Total size (in bytes) of all the replicas of all the files owned by this user.  # noqa: E501

        :return: The raw_size of this ApiHdfsUsageReportRow.  # noqa: E501
        :rtype: int
        """
        return self._raw_size

    @raw_size.setter
    def raw_size(self, raw_size):
        """Sets the raw_size of this ApiHdfsUsageReportRow.

        Total size (in bytes) of all the replicas of all the files owned by this user.  # noqa: E501

        :param raw_size: The raw_size of this ApiHdfsUsageReportRow.  # noqa: E501
        :type: int
        """

        self._raw_size = raw_size

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

        Number of files owned by this user.  # noqa: E501

        :return: The num_files of this ApiHdfsUsageReportRow.  # noqa: E501
        :rtype: int
        """
        return self._num_files

    @num_files.setter
    def num_files(self, num_files):
        """Sets the num_files of this ApiHdfsUsageReportRow.

        Number of files owned by this user.  # noqa: E501

        :param num_files: The num_files of this ApiHdfsUsageReportRow.  # noqa: E501
        :type: int
        """

        self._num_files = num_files

    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(ApiHdfsUsageReportRow, 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, ApiHdfsUsageReportRow):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
