# 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 ApiHBaseSnapshotError(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 = {
        'table_name': 'str',
        'snapshot_name': 'str',
        'storage': 'Storage',
        'storage_location': 'str',
        'error': 'str'
    }

    attribute_map = {
        'table_name': 'tableName',
        'snapshot_name': 'snapshotName',
        'storage': 'storage',
        'storage_location': 'storageLocation',
        'error': 'error'
    }

    def __init__(self, table_name=None, snapshot_name=None, storage=None, storage_location=None, error=None):  # noqa: E501
        """ApiHBaseSnapshotError - a model defined in Swagger"""  # noqa: E501
        self._table_name = None
        self._snapshot_name = None
        self._storage = None
        self._storage_location = None
        self._error = None
        self.discriminator = None
        if table_name is not None:
            self.table_name = table_name
        if snapshot_name is not None:
            self.snapshot_name = snapshot_name
        if storage is not None:
            self.storage = storage
        if storage_location is not None:
            self.storage_location = storage_location
        if error is not None:
            self.error = error

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

        Name of the table.  # noqa: E501

        :return: The table_name of this ApiHBaseSnapshotError.  # noqa: E501
        :rtype: str
        """
        return self._table_name

    @table_name.setter
    def table_name(self, table_name):
        """Sets the table_name of this ApiHBaseSnapshotError.

        Name of the table.  # noqa: E501

        :param table_name: The table_name of this ApiHBaseSnapshotError.  # noqa: E501
        :type: str
        """

        self._table_name = table_name

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

        Name of the snapshot.  # noqa: E501

        :return: The snapshot_name of this ApiHBaseSnapshotError.  # noqa: E501
        :rtype: str
        """
        return self._snapshot_name

    @snapshot_name.setter
    def snapshot_name(self, snapshot_name):
        """Sets the snapshot_name of this ApiHBaseSnapshotError.

        Name of the snapshot.  # noqa: E501

        :param snapshot_name: The snapshot_name of this ApiHBaseSnapshotError.  # noqa: E501
        :type: str
        """

        self._snapshot_name = snapshot_name

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


        :return: The storage of this ApiHBaseSnapshotError.  # noqa: E501
        :rtype: Storage
        """
        return self._storage

    @storage.setter
    def storage(self, storage):
        """Sets the storage of this ApiHBaseSnapshotError.


        :param storage: The storage of this ApiHBaseSnapshotError.  # noqa: E501
        :type: Storage
        """

        self._storage = storage

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

        The remote location where a snapshot is stored. /*  Optional - location comes from HBase service config if this is not defined  # noqa: E501

        :return: The storage_location of this ApiHBaseSnapshotError.  # noqa: E501
        :rtype: str
        """
        return self._storage_location

    @storage_location.setter
    def storage_location(self, storage_location):
        """Sets the storage_location of this ApiHBaseSnapshotError.

        The remote location where a snapshot is stored. /*  Optional - location comes from HBase service config if this is not defined  # noqa: E501

        :param storage_location: The storage_location of this ApiHBaseSnapshotError.  # noqa: E501
        :type: str
        """

        self._storage_location = storage_location

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

        Description of the error.  # noqa: E501

        :return: The error of this ApiHBaseSnapshotError.  # noqa: E501
        :rtype: str
        """
        return self._error

    @error.setter
    def error(self, error):
        """Sets the error of this ApiHBaseSnapshotError.

        Description of the error.  # noqa: E501

        :param error: The error of this ApiHBaseSnapshotError.  # noqa: E501
        :type: str
        """

        self._error = error

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

        return self.__dict__ == other.__dict__

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