# coding: utf-8

"""
    Cloudera Manager API

    <h1>Cloudera Manager API v50</h1>       <p>Introduced in Cloudera Manager 7.8.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>

    OpenAPI spec version: 7.8.1
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from pprint import pformat
from six import iteritems
import re


class ApiHBaseReplicationSetupCleanAndResetArgs(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 = {
        'source_ref': 'ApiServiceRef',
        'cm_peer_name_on_remote': 'str',
        'source_restart_type': 'RestartType',
        'target_restart_type': 'RestartType'
    }

    attribute_map = {
        'source_ref': 'sourceRef',
        'cm_peer_name_on_remote': 'cmPeerNameOnRemote',
        'source_restart_type': 'sourceRestartType',
        'target_restart_type': 'targetRestartType'
    }

    def __init__(self, source_ref=None, cm_peer_name_on_remote=None, source_restart_type=None, target_restart_type=None):
        """
        ApiHBaseReplicationSetupCleanAndResetArgs - a model defined in Swagger
        """

        self._source_ref = None
        self._cm_peer_name_on_remote = None
        self._source_restart_type = None
        self._target_restart_type = None

        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 source_ref(self):
        """
        Gets the source_ref of this ApiHBaseReplicationSetupCleanAndResetArgs.
        

        :return: The source_ref of this ApiHBaseReplicationSetupCleanAndResetArgs.
        :rtype: ApiServiceRef
        """
        return self._source_ref

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

        :param source_ref: The source_ref of this ApiHBaseReplicationSetupCleanAndResetArgs.
        :type: ApiServiceRef
        """

        self._source_ref = source_ref

    @property
    def cm_peer_name_on_remote(self):
        """
        Gets the cm_peer_name_on_remote of this ApiHBaseReplicationSetupCleanAndResetArgs.
        

        :return: The cm_peer_name_on_remote of this ApiHBaseReplicationSetupCleanAndResetArgs.
        :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 ApiHBaseReplicationSetupCleanAndResetArgs.
        

        :param cm_peer_name_on_remote: The cm_peer_name_on_remote of this ApiHBaseReplicationSetupCleanAndResetArgs.
        :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 ApiHBaseReplicationSetupCleanAndResetArgs.
        

        :return: The source_restart_type of this ApiHBaseReplicationSetupCleanAndResetArgs.
        :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 ApiHBaseReplicationSetupCleanAndResetArgs.
        

        :param source_restart_type: The source_restart_type of this ApiHBaseReplicationSetupCleanAndResetArgs.
        :type: RestartType
        """

        self._source_restart_type = source_restart_type

    @property
    def target_restart_type(self):
        """
        Gets the target_restart_type of this ApiHBaseReplicationSetupCleanAndResetArgs.
        

        :return: The target_restart_type of this ApiHBaseReplicationSetupCleanAndResetArgs.
        :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 ApiHBaseReplicationSetupCleanAndResetArgs.
        

        :param target_restart_type: The target_restart_type of this ApiHBaseReplicationSetupCleanAndResetArgs.
        :type: RestartType
        """

        self._target_restart_type = target_restart_type

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in 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

        return result

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return 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, ApiHBaseReplicationSetupCleanAndResetArgs):
            return False

        return self.__dict__ == other.__dict__

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