# 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 ApiHBaseReplicationSetupCommandArgs(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 = {
        'keystore_password': 'str',
        'replication_user': 'str',
        'source_ref': 'ApiServiceRef',
        'cm_peer_name_on_remote': 'str',
        'source_restart_type': 'RestartType',
        'target_restart_type': 'RestartType'
    }

    attribute_map = {
        'keystore_password': 'keystorePassword',
        'replication_user': 'replicationUser',
        'source_ref': 'sourceRef',
        'cm_peer_name_on_remote': 'cmPeerNameOnRemote',
        'source_restart_type': 'sourceRestartType',
        'target_restart_type': 'targetRestartType'
    }

    def __init__(self, keystore_password=None, replication_user=None, source_ref=None, cm_peer_name_on_remote=None, source_restart_type=None, target_restart_type=None):  # noqa: E501
        """ApiHBaseReplicationSetupCommandArgs - a model defined in Swagger"""  # noqa: E501
        self._keystore_password = None
        self._replication_user = None
        self._source_ref = None
        self._cm_peer_name_on_remote = None
        self._source_restart_type = None
        self._target_restart_type = None
        self.discriminator = None
        if keystore_password is not None:
            self.keystore_password = keystore_password
        if replication_user is not None:
            self.replication_user = replication_user
        if source_ref is not None:
            self.source_ref = source_ref
        if cm_peer_name_on_remote is not None:
            self.cm_peer_name_on_remote = cm_peer_name_on_remote
        if source_restart_type is not None:
            self.source_restart_type = source_restart_type
        if target_restart_type is not None:
            self.target_restart_type = target_restart_type

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


        :return: The keystore_password of this ApiHBaseReplicationSetupCommandArgs.  # noqa: E501
        :rtype: str
        """
        return self._keystore_password

    @keystore_password.setter
    def keystore_password(self, keystore_password):
        """Sets the keystore_password of this ApiHBaseReplicationSetupCommandArgs.


        :param keystore_password: The keystore_password of this ApiHBaseReplicationSetupCommandArgs.  # noqa: E501
        :type: str
        """

        self._keystore_password = keystore_password

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


        :return: The replication_user of this ApiHBaseReplicationSetupCommandArgs.  # noqa: E501
        :rtype: str
        """
        return self._replication_user

    @replication_user.setter
    def replication_user(self, replication_user):
        """Sets the replication_user of this ApiHBaseReplicationSetupCommandArgs.


        :param replication_user: The replication_user of this ApiHBaseReplicationSetupCommandArgs.  # noqa: E501
        :type: str
        """

        self._replication_user = replication_user

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


        :return: The source_ref of this ApiHBaseReplicationSetupCommandArgs.  # noqa: E501
        :rtype: ApiServiceRef
        """
        return self._source_ref

    @source_ref.setter
    def source_ref(self, source_ref):
        """Sets the source_ref of this ApiHBaseReplicationSetupCommandArgs.


        :param source_ref: The source_ref of this ApiHBaseReplicationSetupCommandArgs.  # noqa: E501
        :type: ApiServiceRef
        """

        self._source_ref = source_ref

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

        The peer name of the local CM in the given sourceRef CM  # noqa: E501

        :return: The cm_peer_name_on_remote of this ApiHBaseReplicationSetupCommandArgs.  # noqa: E501
        :rtype: str
        """
        return self._cm_peer_name_on_remote

    @cm_peer_name_on_remote.setter
    def cm_peer_name_on_remote(self, cm_peer_name_on_remote):
        """Sets the cm_peer_name_on_remote of this ApiHBaseReplicationSetupCommandArgs.

        The peer name of the local CM in the given sourceRef CM  # noqa: E501

        :param cm_peer_name_on_remote: The cm_peer_name_on_remote of this ApiHBaseReplicationSetupCommandArgs.  # noqa: E501
        :type: str
        """

        self._cm_peer_name_on_remote = cm_peer_name_on_remote

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


        :return: The source_restart_type of this ApiHBaseReplicationSetupCommandArgs.  # noqa: E501
        :rtype: RestartType
        """
        return self._source_restart_type

    @source_restart_type.setter
    def source_restart_type(self, source_restart_type):
        """Sets the source_restart_type of this ApiHBaseReplicationSetupCommandArgs.


        :param source_restart_type: The source_restart_type of this ApiHBaseReplicationSetupCommandArgs.  # noqa: E501
        :type: RestartType
        """

        self._source_restart_type = source_restart_type

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


        :return: The target_restart_type of this ApiHBaseReplicationSetupCommandArgs.  # noqa: E501
        :rtype: RestartType
        """
        return self._target_restart_type

    @target_restart_type.setter
    def target_restart_type(self, target_restart_type):
        """Sets the target_restart_type of this ApiHBaseReplicationSetupCommandArgs.


        :param target_restart_type: The target_restart_type of this ApiHBaseReplicationSetupCommandArgs.  # noqa: E501
        :type: RestartType
        """

        self._target_restart_type = target_restart_type

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

        return self.__dict__ == other.__dict__

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