# 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 HBaseDatabaseArgs(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 = {
        'failed_snapshot_tables': 'list[str]',
        'initial_snapshot': 'bool',
        'replication_strategy': 'HBaseWholeDbReplicationStrategy'
    }

    attribute_map = {
        'failed_snapshot_tables': 'failedSnapshotTables',
        'initial_snapshot': 'initialSnapshot',
        'replication_strategy': 'replicationStrategy'
    }

    def __init__(self, failed_snapshot_tables=None, initial_snapshot=None, replication_strategy=None):  # noqa: E501
        """HBaseDatabaseArgs - a model defined in Swagger"""  # noqa: E501
        self._failed_snapshot_tables = None
        self._initial_snapshot = None
        self._replication_strategy = None
        self.discriminator = None
        if failed_snapshot_tables is not None:
            self.failed_snapshot_tables = failed_snapshot_tables
        self.initial_snapshot = initial_snapshot
        if replication_strategy is not None:
            self.replication_strategy = replication_strategy

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


        :return: The failed_snapshot_tables of this HBaseDatabaseArgs.  # noqa: E501
        :rtype: list[str]
        """
        return self._failed_snapshot_tables

    @failed_snapshot_tables.setter
    def failed_snapshot_tables(self, failed_snapshot_tables):
        """Sets the failed_snapshot_tables of this HBaseDatabaseArgs.


        :param failed_snapshot_tables: The failed_snapshot_tables of this HBaseDatabaseArgs.  # noqa: E501
        :type: list[str]
        """

        self._failed_snapshot_tables = failed_snapshot_tables

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


        :return: The initial_snapshot of this HBaseDatabaseArgs.  # noqa: E501
        :rtype: bool
        """
        return self._initial_snapshot

    @initial_snapshot.setter
    def initial_snapshot(self, initial_snapshot):
        """Sets the initial_snapshot of this HBaseDatabaseArgs.


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

        self._initial_snapshot = initial_snapshot

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


        :return: The replication_strategy of this HBaseDatabaseArgs.  # noqa: E501
        :rtype: HBaseWholeDbReplicationStrategy
        """
        return self._replication_strategy

    @replication_strategy.setter
    def replication_strategy(self, replication_strategy):
        """Sets the replication_strategy of this HBaseDatabaseArgs.


        :param replication_strategy: The replication_strategy of this HBaseDatabaseArgs.  # noqa: E501
        :type: HBaseWholeDbReplicationStrategy
        """

        self._replication_strategy = replication_strategy

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

        return self.__dict__ == other.__dict__

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