# coding: utf-8

"""
    DataDomain Rest API Documentation

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

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


import pprint
import re  # noqa: F401

import six

from dd_sdk_1_0.configuration import Configuration


class MtreeIntegratedUsage(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 = {
        'local_capacity_used_bytes': 'int',
        'replica_capacity_used_bytes': 'int',
        'mixed_capacity_used_bytes': 'int',
        'total_capacity_used_bytes': 'int'
    }

    attribute_map = {
        'local_capacity_used_bytes': 'local_capacity_used_bytes',
        'replica_capacity_used_bytes': 'replica_capacity_used_bytes',
        'mixed_capacity_used_bytes': 'mixed_capacity_used_bytes',
        'total_capacity_used_bytes': 'total_capacity_used_bytes'
    }

    def __init__(self, local_capacity_used_bytes=None, replica_capacity_used_bytes=None, mixed_capacity_used_bytes=None, total_capacity_used_bytes=None, _configuration=None):  # noqa: E501
        """MtreeIntegratedUsage - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._local_capacity_used_bytes = None
        self._replica_capacity_used_bytes = None
        self._mixed_capacity_used_bytes = None
        self._total_capacity_used_bytes = None
        self.discriminator = None

        if local_capacity_used_bytes is not None:
            self.local_capacity_used_bytes = local_capacity_used_bytes
        if replica_capacity_used_bytes is not None:
            self.replica_capacity_used_bytes = replica_capacity_used_bytes
        if mixed_capacity_used_bytes is not None:
            self.mixed_capacity_used_bytes = mixed_capacity_used_bytes
        if total_capacity_used_bytes is not None:
            self.total_capacity_used_bytes = total_capacity_used_bytes

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


        :return: The local_capacity_used_bytes of this MtreeIntegratedUsage.  # noqa: E501
        :rtype: int
        """
        return self._local_capacity_used_bytes

    @local_capacity_used_bytes.setter
    def local_capacity_used_bytes(self, local_capacity_used_bytes):
        """Sets the local_capacity_used_bytes of this MtreeIntegratedUsage.


        :param local_capacity_used_bytes: The local_capacity_used_bytes of this MtreeIntegratedUsage.  # noqa: E501
        :type: int
        """
        if (self._configuration.client_side_validation and
                local_capacity_used_bytes is not None and local_capacity_used_bytes < 0):  # noqa: E501
            raise ValueError("Invalid value for `local_capacity_used_bytes`, must be a value greater than or equal to `0`")  # noqa: E501

        self._local_capacity_used_bytes = local_capacity_used_bytes

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


        :return: The replica_capacity_used_bytes of this MtreeIntegratedUsage.  # noqa: E501
        :rtype: int
        """
        return self._replica_capacity_used_bytes

    @replica_capacity_used_bytes.setter
    def replica_capacity_used_bytes(self, replica_capacity_used_bytes):
        """Sets the replica_capacity_used_bytes of this MtreeIntegratedUsage.


        :param replica_capacity_used_bytes: The replica_capacity_used_bytes of this MtreeIntegratedUsage.  # noqa: E501
        :type: int
        """
        if (self._configuration.client_side_validation and
                replica_capacity_used_bytes is not None and replica_capacity_used_bytes < 0):  # noqa: E501
            raise ValueError("Invalid value for `replica_capacity_used_bytes`, must be a value greater than or equal to `0`")  # noqa: E501

        self._replica_capacity_used_bytes = replica_capacity_used_bytes

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


        :return: The mixed_capacity_used_bytes of this MtreeIntegratedUsage.  # noqa: E501
        :rtype: int
        """
        return self._mixed_capacity_used_bytes

    @mixed_capacity_used_bytes.setter
    def mixed_capacity_used_bytes(self, mixed_capacity_used_bytes):
        """Sets the mixed_capacity_used_bytes of this MtreeIntegratedUsage.


        :param mixed_capacity_used_bytes: The mixed_capacity_used_bytes of this MtreeIntegratedUsage.  # noqa: E501
        :type: int
        """
        if (self._configuration.client_side_validation and
                mixed_capacity_used_bytes is not None and mixed_capacity_used_bytes < 0):  # noqa: E501
            raise ValueError("Invalid value for `mixed_capacity_used_bytes`, must be a value greater than or equal to `0`")  # noqa: E501

        self._mixed_capacity_used_bytes = mixed_capacity_used_bytes

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


        :return: The total_capacity_used_bytes of this MtreeIntegratedUsage.  # noqa: E501
        :rtype: int
        """
        return self._total_capacity_used_bytes

    @total_capacity_used_bytes.setter
    def total_capacity_used_bytes(self, total_capacity_used_bytes):
        """Sets the total_capacity_used_bytes of this MtreeIntegratedUsage.


        :param total_capacity_used_bytes: The total_capacity_used_bytes of this MtreeIntegratedUsage.  # noqa: E501
        :type: int
        """
        if (self._configuration.client_side_validation and
                total_capacity_used_bytes is not None and total_capacity_used_bytes < 0):  # noqa: E501
            raise ValueError("Invalid value for `total_capacity_used_bytes`, must be a value greater than or equal to `0`")  # noqa: E501

        self._total_capacity_used_bytes = total_capacity_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(MtreeIntegratedUsage, 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, MtreeIntegratedUsage):
            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, MtreeIntegratedUsage):
            return True

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