# coding: utf-8

"""
    Cudo Compute service

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

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


import pprint
import re  # noqa: F401

import six

from cudo_compute.configuration import Configuration


class ObjectStorageBucket(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 = {
        'billable_bytes': 'str',
        'data_center_id': 'str',
        'endpoint': 'str',
        'id': 'str',
        'object_count': 'str',
        'project_id': 'str',
        'size_bytes': 'str'
    }

    attribute_map = {
        'billable_bytes': 'billableBytes',
        'data_center_id': 'dataCenterId',
        'endpoint': 'endpoint',
        'id': 'id',
        'object_count': 'objectCount',
        'project_id': 'projectId',
        'size_bytes': 'sizeBytes'
    }

    def __init__(self, billable_bytes=None, data_center_id=None, endpoint=None, id=None, object_count=None, project_id=None, size_bytes=None, _configuration=None):  # noqa: E501
        """ObjectStorageBucket - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._billable_bytes = None
        self._data_center_id = None
        self._endpoint = None
        self._id = None
        self._object_count = None
        self._project_id = None
        self._size_bytes = None
        self.discriminator = None

        if billable_bytes is not None:
            self.billable_bytes = billable_bytes
        if data_center_id is not None:
            self.data_center_id = data_center_id
        if endpoint is not None:
            self.endpoint = endpoint
        if id is not None:
            self.id = id
        if object_count is not None:
            self.object_count = object_count
        if project_id is not None:
            self.project_id = project_id
        if size_bytes is not None:
            self.size_bytes = size_bytes

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


        :return: The billable_bytes of this ObjectStorageBucket.  # noqa: E501
        :rtype: str
        """
        return self._billable_bytes

    @billable_bytes.setter
    def billable_bytes(self, billable_bytes):
        """Sets the billable_bytes of this ObjectStorageBucket.


        :param billable_bytes: The billable_bytes of this ObjectStorageBucket.  # noqa: E501
        :type: str
        """

        self._billable_bytes = billable_bytes

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


        :return: The data_center_id of this ObjectStorageBucket.  # noqa: E501
        :rtype: str
        """
        return self._data_center_id

    @data_center_id.setter
    def data_center_id(self, data_center_id):
        """Sets the data_center_id of this ObjectStorageBucket.


        :param data_center_id: The data_center_id of this ObjectStorageBucket.  # noqa: E501
        :type: str
        """

        self._data_center_id = data_center_id

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


        :return: The endpoint of this ObjectStorageBucket.  # noqa: E501
        :rtype: str
        """
        return self._endpoint

    @endpoint.setter
    def endpoint(self, endpoint):
        """Sets the endpoint of this ObjectStorageBucket.


        :param endpoint: The endpoint of this ObjectStorageBucket.  # noqa: E501
        :type: str
        """

        self._endpoint = endpoint

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


        :return: The id of this ObjectStorageBucket.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this ObjectStorageBucket.


        :param id: The id of this ObjectStorageBucket.  # noqa: E501
        :type: str
        """

        self._id = id

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


        :return: The object_count of this ObjectStorageBucket.  # noqa: E501
        :rtype: str
        """
        return self._object_count

    @object_count.setter
    def object_count(self, object_count):
        """Sets the object_count of this ObjectStorageBucket.


        :param object_count: The object_count of this ObjectStorageBucket.  # noqa: E501
        :type: str
        """

        self._object_count = object_count

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


        :return: The project_id of this ObjectStorageBucket.  # noqa: E501
        :rtype: str
        """
        return self._project_id

    @project_id.setter
    def project_id(self, project_id):
        """Sets the project_id of this ObjectStorageBucket.


        :param project_id: The project_id of this ObjectStorageBucket.  # noqa: E501
        :type: str
        """

        self._project_id = project_id

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


        :return: The size_bytes of this ObjectStorageBucket.  # noqa: E501
        :rtype: str
        """
        return self._size_bytes

    @size_bytes.setter
    def size_bytes(self, size_bytes):
        """Sets the size_bytes of this ObjectStorageBucket.


        :param size_bytes: The size_bytes of this ObjectStorageBucket.  # noqa: E501
        :type: str
        """

        self._size_bytes = size_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(ObjectStorageBucket, 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, ObjectStorageBucket):
            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, ObjectStorageBucket):
            return True

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