# 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 ApiHBaseAddReplicationPeerInput(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 = {
        'peer_id': 'str',
        'cluster_key': 'str',
        'table_cfs': 'dict(str, list[str])',
        'endpoint_classname': 'str',
        'enabled': 'bool'
    }

    attribute_map = {
        'peer_id': 'peerId',
        'cluster_key': 'clusterKey',
        'table_cfs': 'tableCFs',
        'endpoint_classname': 'endpointClassname',
        'enabled': 'enabled'
    }

    def __init__(self, peer_id=None, cluster_key=None, table_cfs=None, endpoint_classname=None, enabled=None):  # noqa: E501
        """ApiHBaseAddReplicationPeerInput - a model defined in Swagger"""  # noqa: E501
        self._peer_id = None
        self._cluster_key = None
        self._table_cfs = None
        self._endpoint_classname = None
        self._enabled = None
        self.discriminator = None
        if peer_id is not None:
            self.peer_id = peer_id
        if cluster_key is not None:
            self.cluster_key = cluster_key
        if table_cfs is not None:
            self.table_cfs = table_cfs
        if endpoint_classname is not None:
            self.endpoint_classname = endpoint_classname
        self.enabled = enabled

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


        :return: The peer_id of this ApiHBaseAddReplicationPeerInput.  # noqa: E501
        :rtype: str
        """
        return self._peer_id

    @peer_id.setter
    def peer_id(self, peer_id):
        """Sets the peer_id of this ApiHBaseAddReplicationPeerInput.


        :param peer_id: The peer_id of this ApiHBaseAddReplicationPeerInput.  # noqa: E501
        :type: str
        """

        self._peer_id = peer_id

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


        :return: The cluster_key of this ApiHBaseAddReplicationPeerInput.  # noqa: E501
        :rtype: str
        """
        return self._cluster_key

    @cluster_key.setter
    def cluster_key(self, cluster_key):
        """Sets the cluster_key of this ApiHBaseAddReplicationPeerInput.


        :param cluster_key: The cluster_key of this ApiHBaseAddReplicationPeerInput.  # noqa: E501
        :type: str
        """

        self._cluster_key = cluster_key

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


        :return: The table_cfs of this ApiHBaseAddReplicationPeerInput.  # noqa: E501
        :rtype: dict(str, list[str])
        """
        return self._table_cfs

    @table_cfs.setter
    def table_cfs(self, table_cfs):
        """Sets the table_cfs of this ApiHBaseAddReplicationPeerInput.


        :param table_cfs: The table_cfs of this ApiHBaseAddReplicationPeerInput.  # noqa: E501
        :type: dict(str, list[str])
        """

        self._table_cfs = table_cfs

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


        :return: The endpoint_classname of this ApiHBaseAddReplicationPeerInput.  # noqa: E501
        :rtype: str
        """
        return self._endpoint_classname

    @endpoint_classname.setter
    def endpoint_classname(self, endpoint_classname):
        """Sets the endpoint_classname of this ApiHBaseAddReplicationPeerInput.


        :param endpoint_classname: The endpoint_classname of this ApiHBaseAddReplicationPeerInput.  # noqa: E501
        :type: str
        """

        self._endpoint_classname = endpoint_classname

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


        :return: The enabled of this ApiHBaseAddReplicationPeerInput.  # noqa: E501
        :rtype: bool
        """
        return self._enabled

    @enabled.setter
    def enabled(self, enabled):
        """Sets the enabled of this ApiHBaseAddReplicationPeerInput.


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

        self._enabled = enabled

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

        return self.__dict__ == other.__dict__

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