# 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 ApiOzoneSnapshotInfo(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',
        'name': 'str',
        'creation_time': 'int',
        'snapshot_status': 'str',
        'snapshot_id': 'str',
        'snapshot_path': 'str',
        'checkpoint_dir': 'str'
    }

    attribute_map = {
        'volume_name': 'volumeName',
        'bucket_name': 'bucketName',
        'name': 'name',
        'creation_time': 'creationTime',
        'snapshot_status': 'snapshotStatus',
        'snapshot_id': 'snapshotId',
        'snapshot_path': 'snapshotPath',
        'checkpoint_dir': 'checkpointDir'
    }

    def __init__(self, volume_name=None, bucket_name=None, name=None, creation_time=None, snapshot_status=None, snapshot_id=None, snapshot_path=None, checkpoint_dir=None):  # noqa: E501
        """ApiOzoneSnapshotInfo - a model defined in Swagger"""  # noqa: E501
        self._volume_name = None
        self._bucket_name = None
        self._name = None
        self._creation_time = None
        self._snapshot_status = None
        self._snapshot_id = None
        self._snapshot_path = None
        self._checkpoint_dir = None
        self.discriminator = None
        if volume_name is not None:
            self.volume_name = volume_name
        if bucket_name is not None:
            self.bucket_name = bucket_name
        if name is not None:
            self.name = name
        self.creation_time = creation_time
        if snapshot_status is not None:
            self.snapshot_status = snapshot_status
        if snapshot_id is not None:
            self.snapshot_id = snapshot_id
        if snapshot_path is not None:
            self.snapshot_path = snapshot_path
        if checkpoint_dir is not None:
            self.checkpoint_dir = checkpoint_dir

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


        :return: The volume_name of this ApiOzoneSnapshotInfo.  # noqa: E501
        :rtype: str
        """
        return self._volume_name

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


        :param volume_name: The volume_name of this ApiOzoneSnapshotInfo.  # noqa: E501
        :type: str
        """

        self._volume_name = volume_name

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


        :return: The bucket_name of this ApiOzoneSnapshotInfo.  # noqa: E501
        :rtype: str
        """
        return self._bucket_name

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


        :param bucket_name: The bucket_name of this ApiOzoneSnapshotInfo.  # noqa: E501
        :type: str
        """

        self._bucket_name = bucket_name

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


        :return: The name of this ApiOzoneSnapshotInfo.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this ApiOzoneSnapshotInfo.


        :param name: The name of this ApiOzoneSnapshotInfo.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The creation_time of this ApiOzoneSnapshotInfo.  # noqa: E501
        :rtype: int
        """
        return self._creation_time

    @creation_time.setter
    def creation_time(self, creation_time):
        """Sets the creation_time of this ApiOzoneSnapshotInfo.


        :param creation_time: The creation_time of this ApiOzoneSnapshotInfo.  # noqa: E501
        :type: int
        """
        if creation_time is None:
            raise ValueError("Invalid value for `creation_time`, must not be `None`")  # noqa: E501

        self._creation_time = creation_time

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


        :return: The snapshot_status of this ApiOzoneSnapshotInfo.  # noqa: E501
        :rtype: str
        """
        return self._snapshot_status

    @snapshot_status.setter
    def snapshot_status(self, snapshot_status):
        """Sets the snapshot_status of this ApiOzoneSnapshotInfo.


        :param snapshot_status: The snapshot_status of this ApiOzoneSnapshotInfo.  # noqa: E501
        :type: str
        """

        self._snapshot_status = snapshot_status

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


        :return: The snapshot_id of this ApiOzoneSnapshotInfo.  # noqa: E501
        :rtype: str
        """
        return self._snapshot_id

    @snapshot_id.setter
    def snapshot_id(self, snapshot_id):
        """Sets the snapshot_id of this ApiOzoneSnapshotInfo.


        :param snapshot_id: The snapshot_id of this ApiOzoneSnapshotInfo.  # noqa: E501
        :type: str
        """

        self._snapshot_id = snapshot_id

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


        :return: The snapshot_path of this ApiOzoneSnapshotInfo.  # noqa: E501
        :rtype: str
        """
        return self._snapshot_path

    @snapshot_path.setter
    def snapshot_path(self, snapshot_path):
        """Sets the snapshot_path of this ApiOzoneSnapshotInfo.


        :param snapshot_path: The snapshot_path of this ApiOzoneSnapshotInfo.  # noqa: E501
        :type: str
        """

        self._snapshot_path = snapshot_path

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


        :return: The checkpoint_dir of this ApiOzoneSnapshotInfo.  # noqa: E501
        :rtype: str
        """
        return self._checkpoint_dir

    @checkpoint_dir.setter
    def checkpoint_dir(self, checkpoint_dir):
        """Sets the checkpoint_dir of this ApiOzoneSnapshotInfo.


        :param checkpoint_dir: The checkpoint_dir of this ApiOzoneSnapshotInfo.  # noqa: E501
        :type: str
        """

        self._checkpoint_dir = checkpoint_dir

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

        return self.__dict__ == other.__dict__

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