# 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 ApiHive3ReplicationMetricsMetadata(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 = {
        'db_name': 'str',
        'replication_type': 'ReplicationType',
        'replicated_db_size_in_kb': 'float',
        'staging_dir': 'str',
        'last_repl_id': 'int',
        'failover_metadata_loc': 'str',
        'failover_event_id': 'int',
        'failover_end_point': 'str',
        'failover_type': 'str'
    }

    attribute_map = {
        'db_name': 'dbName',
        'replication_type': 'replicationType',
        'replicated_db_size_in_kb': 'replicatedDBSizeInKB',
        'staging_dir': 'stagingDir',
        'last_repl_id': 'lastReplId',
        'failover_metadata_loc': 'failoverMetadataLoc',
        'failover_event_id': 'failoverEventId',
        'failover_end_point': 'failoverEndPoint',
        'failover_type': 'failoverType'
    }

    def __init__(self, db_name=None, replication_type=None, replicated_db_size_in_kb=None, staging_dir=None, last_repl_id=None, failover_metadata_loc=None, failover_event_id=None, failover_end_point=None, failover_type=None):  # noqa: E501
        """ApiHive3ReplicationMetricsMetadata - a model defined in Swagger"""  # noqa: E501
        self._db_name = None
        self._replication_type = None
        self._replicated_db_size_in_kb = None
        self._staging_dir = None
        self._last_repl_id = None
        self._failover_metadata_loc = None
        self._failover_event_id = None
        self._failover_end_point = None
        self._failover_type = None
        self.discriminator = None
        if db_name is not None:
            self.db_name = db_name
        if replication_type is not None:
            self.replication_type = replication_type
        if replicated_db_size_in_kb is not None:
            self.replicated_db_size_in_kb = replicated_db_size_in_kb
        if staging_dir is not None:
            self.staging_dir = staging_dir
        if last_repl_id is not None:
            self.last_repl_id = last_repl_id
        if failover_metadata_loc is not None:
            self.failover_metadata_loc = failover_metadata_loc
        if failover_event_id is not None:
            self.failover_event_id = failover_event_id
        if failover_end_point is not None:
            self.failover_end_point = failover_end_point
        if failover_type is not None:
            self.failover_type = failover_type

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


        :return: The db_name of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :rtype: str
        """
        return self._db_name

    @db_name.setter
    def db_name(self, db_name):
        """Sets the db_name of this ApiHive3ReplicationMetricsMetadata.


        :param db_name: The db_name of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :type: str
        """

        self._db_name = db_name

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


        :return: The replication_type of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :rtype: ReplicationType
        """
        return self._replication_type

    @replication_type.setter
    def replication_type(self, replication_type):
        """Sets the replication_type of this ApiHive3ReplicationMetricsMetadata.


        :param replication_type: The replication_type of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :type: ReplicationType
        """

        self._replication_type = replication_type

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


        :return: The replicated_db_size_in_kb of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :rtype: float
        """
        return self._replicated_db_size_in_kb

    @replicated_db_size_in_kb.setter
    def replicated_db_size_in_kb(self, replicated_db_size_in_kb):
        """Sets the replicated_db_size_in_kb of this ApiHive3ReplicationMetricsMetadata.


        :param replicated_db_size_in_kb: The replicated_db_size_in_kb of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :type: float
        """

        self._replicated_db_size_in_kb = replicated_db_size_in_kb

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


        :return: The staging_dir of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :rtype: str
        """
        return self._staging_dir

    @staging_dir.setter
    def staging_dir(self, staging_dir):
        """Sets the staging_dir of this ApiHive3ReplicationMetricsMetadata.


        :param staging_dir: The staging_dir of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :type: str
        """

        self._staging_dir = staging_dir

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


        :return: The last_repl_id of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :rtype: int
        """
        return self._last_repl_id

    @last_repl_id.setter
    def last_repl_id(self, last_repl_id):
        """Sets the last_repl_id of this ApiHive3ReplicationMetricsMetadata.


        :param last_repl_id: The last_repl_id of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :type: int
        """

        self._last_repl_id = last_repl_id

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


        :return: The failover_metadata_loc of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :rtype: str
        """
        return self._failover_metadata_loc

    @failover_metadata_loc.setter
    def failover_metadata_loc(self, failover_metadata_loc):
        """Sets the failover_metadata_loc of this ApiHive3ReplicationMetricsMetadata.


        :param failover_metadata_loc: The failover_metadata_loc of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :type: str
        """

        self._failover_metadata_loc = failover_metadata_loc

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


        :return: The failover_event_id of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :rtype: int
        """
        return self._failover_event_id

    @failover_event_id.setter
    def failover_event_id(self, failover_event_id):
        """Sets the failover_event_id of this ApiHive3ReplicationMetricsMetadata.


        :param failover_event_id: The failover_event_id of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :type: int
        """

        self._failover_event_id = failover_event_id

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


        :return: The failover_end_point of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :rtype: str
        """
        return self._failover_end_point

    @failover_end_point.setter
    def failover_end_point(self, failover_end_point):
        """Sets the failover_end_point of this ApiHive3ReplicationMetricsMetadata.


        :param failover_end_point: The failover_end_point of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :type: str
        """

        self._failover_end_point = failover_end_point

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


        :return: The failover_type of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :rtype: str
        """
        return self._failover_type

    @failover_type.setter
    def failover_type(self, failover_type):
        """Sets the failover_type of this ApiHive3ReplicationMetricsMetadata.


        :param failover_type: The failover_type of this ApiHive3ReplicationMetricsMetadata.  # noqa: E501
        :type: str
        """

        self._failover_type = failover_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(ApiHive3ReplicationMetricsMetadata, 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, ApiHive3ReplicationMetricsMetadata):
            return False

        return self.__dict__ == other.__dict__

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