# coding: utf-8

"""
    Cloudera Manager API

    <h1>Cloudera Manager API v50</h1>       <p>Introduced in Cloudera Manager 7.8.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>

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


from pprint import pformat
from six import iteritems
import re


class ApiOzoneBucketInfo(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 = {
        'volume_name': 'str',
        'bucket_name': 'str',
        'bucket_type': 'str',
        'bucket_encrypted': 'bool',
        'bucket_in_s3_volume': 'bool',
        'bucket_linked': 'bool',
        'source_volume_name': 'str',
        'source_bucket_name': 'str'
    }

    attribute_map = {
        'volume_name': 'volumeName',
        'bucket_name': 'bucketName',
        'bucket_type': 'bucketType',
        'bucket_encrypted': 'bucketEncrypted',
        'bucket_in_s3_volume': 'bucketInS3Volume',
        'bucket_linked': 'bucketLinked',
        'source_volume_name': 'sourceVolumeName',
        'source_bucket_name': 'sourceBucketName'
    }

    def __init__(self, volume_name=None, bucket_name=None, bucket_type=None, bucket_encrypted=None, bucket_in_s3_volume=None, bucket_linked=None, source_volume_name=None, source_bucket_name=None):
        """
        ApiOzoneBucketInfo - a model defined in Swagger
        """

        self._volume_name = None
        self._bucket_name = None
        self._bucket_type = None
        self._bucket_encrypted = None
        self._bucket_in_s3_volume = None
        self._bucket_linked = None
        self._source_volume_name = None
        self._source_bucket_name = None

        if volume_name is not None:
          self.volume_name = volume_name
        if bucket_name is not None:
          self.bucket_name = bucket_name
        if bucket_type is not None:
          self.bucket_type = bucket_type
        self.bucket_encrypted = bucket_encrypted
        self.bucket_in_s3_volume = bucket_in_s3_volume
        self.bucket_linked = bucket_linked
        if source_volume_name is not None:
          self.source_volume_name = source_volume_name
        if source_bucket_name is not None:
          self.source_bucket_name = source_bucket_name

    @property
    def volume_name(self):
        """
        Gets the volume_name of this ApiOzoneBucketInfo.
        

        :return: The volume_name of this ApiOzoneBucketInfo.
        :rtype: str
        """
        return self._volume_name

    @volume_name.setter
    def volume_name(self, volume_name):
        """
        Sets the volume_name of this ApiOzoneBucketInfo.
        

        :param volume_name: The volume_name of this ApiOzoneBucketInfo.
        :type: str
        """

        self._volume_name = volume_name

    @property
    def bucket_name(self):
        """
        Gets the bucket_name of this ApiOzoneBucketInfo.
        

        :return: The bucket_name of this ApiOzoneBucketInfo.
        :rtype: str
        """
        return self._bucket_name

    @bucket_name.setter
    def bucket_name(self, bucket_name):
        """
        Sets the bucket_name of this ApiOzoneBucketInfo.
        

        :param bucket_name: The bucket_name of this ApiOzoneBucketInfo.
        :type: str
        """

        self._bucket_name = bucket_name

    @property
    def bucket_type(self):
        """
        Gets the bucket_type of this ApiOzoneBucketInfo.
        

        :return: The bucket_type of this ApiOzoneBucketInfo.
        :rtype: str
        """
        return self._bucket_type

    @bucket_type.setter
    def bucket_type(self, bucket_type):
        """
        Sets the bucket_type of this ApiOzoneBucketInfo.
        

        :param bucket_type: The bucket_type of this ApiOzoneBucketInfo.
        :type: str
        """

        self._bucket_type = bucket_type

    @property
    def bucket_encrypted(self):
        """
        Gets the bucket_encrypted of this ApiOzoneBucketInfo.
        

        :return: The bucket_encrypted of this ApiOzoneBucketInfo.
        :rtype: bool
        """
        return self._bucket_encrypted

    @bucket_encrypted.setter
    def bucket_encrypted(self, bucket_encrypted):
        """
        Sets the bucket_encrypted of this ApiOzoneBucketInfo.
        

        :param bucket_encrypted: The bucket_encrypted of this ApiOzoneBucketInfo.
        :type: bool
        """
        if bucket_encrypted is None:
            raise ValueError("Invalid value for `bucket_encrypted`, must not be `None`")

        self._bucket_encrypted = bucket_encrypted

    @property
    def bucket_in_s3_volume(self):
        """
        Gets the bucket_in_s3_volume of this ApiOzoneBucketInfo.
        

        :return: The bucket_in_s3_volume of this ApiOzoneBucketInfo.
        :rtype: bool
        """
        return self._bucket_in_s3_volume

    @bucket_in_s3_volume.setter
    def bucket_in_s3_volume(self, bucket_in_s3_volume):
        """
        Sets the bucket_in_s3_volume of this ApiOzoneBucketInfo.
        

        :param bucket_in_s3_volume: The bucket_in_s3_volume of this ApiOzoneBucketInfo.
        :type: bool
        """
        if bucket_in_s3_volume is None:
            raise ValueError("Invalid value for `bucket_in_s3_volume`, must not be `None`")

        self._bucket_in_s3_volume = bucket_in_s3_volume

    @property
    def bucket_linked(self):
        """
        Gets the bucket_linked of this ApiOzoneBucketInfo.
        

        :return: The bucket_linked of this ApiOzoneBucketInfo.
        :rtype: bool
        """
        return self._bucket_linked

    @bucket_linked.setter
    def bucket_linked(self, bucket_linked):
        """
        Sets the bucket_linked of this ApiOzoneBucketInfo.
        

        :param bucket_linked: The bucket_linked of this ApiOzoneBucketInfo.
        :type: bool
        """
        if bucket_linked is None:
            raise ValueError("Invalid value for `bucket_linked`, must not be `None`")

        self._bucket_linked = bucket_linked

    @property
    def source_volume_name(self):
        """
        Gets the source_volume_name of this ApiOzoneBucketInfo.
        

        :return: The source_volume_name of this ApiOzoneBucketInfo.
        :rtype: str
        """
        return self._source_volume_name

    @source_volume_name.setter
    def source_volume_name(self, source_volume_name):
        """
        Sets the source_volume_name of this ApiOzoneBucketInfo.
        

        :param source_volume_name: The source_volume_name of this ApiOzoneBucketInfo.
        :type: str
        """

        self._source_volume_name = source_volume_name

    @property
    def source_bucket_name(self):
        """
        Gets the source_bucket_name of this ApiOzoneBucketInfo.
        

        :return: The source_bucket_name of this ApiOzoneBucketInfo.
        :rtype: str
        """
        return self._source_bucket_name

    @source_bucket_name.setter
    def source_bucket_name(self, source_bucket_name):
        """
        Sets the source_bucket_name of this ApiOzoneBucketInfo.
        

        :param source_bucket_name: The source_bucket_name of this ApiOzoneBucketInfo.
        :type: str
        """

        self._source_bucket_name = source_bucket_name

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in 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

        return result

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return 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, ApiOzoneBucketInfo):
            return False

        return self.__dict__ == other.__dict__

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