# 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 ApiHiveOnTezReplicationResult(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 = {
        'type': 'str',
        'status': 'str',
        'error': 'str',
        'tables_current': 'int',
        'tables_total': 'int',
        'functions_current': 'int',
        'functions_total': 'int',
        'events_current': 'int',
        'events_total': 'int',
        'policies_current': 'int',
        'policies_total': 'int',
        'entities_current': 'int',
        'entities_total': 'int',
        'origin': 'Origin',
        'end_date_on_src': 'str',
        'end_date_on_tgt': 'str',
        'scheduled_execution_id': 'int',
        'dump_execution_id': 'int',
        'last_successful_dump_id': 'int'
    }

    attribute_map = {
        'type': 'type',
        'status': 'status',
        'error': 'error',
        'tables_current': 'tablesCurrent',
        'tables_total': 'tablesTotal',
        'functions_current': 'functionsCurrent',
        'functions_total': 'functionsTotal',
        'events_current': 'eventsCurrent',
        'events_total': 'eventsTotal',
        'policies_current': 'policiesCurrent',
        'policies_total': 'policiesTotal',
        'entities_current': 'entitiesCurrent',
        'entities_total': 'entitiesTotal',
        'origin': 'origin',
        'end_date_on_src': 'endDateOnSrc',
        'end_date_on_tgt': 'endDateOnTgt',
        'scheduled_execution_id': 'scheduledExecutionId',
        'dump_execution_id': 'dumpExecutionId',
        'last_successful_dump_id': 'lastSuccessfulDumpId'
    }

    def __init__(self, type=None, status=None, error=None, tables_current=None, tables_total=None, functions_current=None, functions_total=None, events_current=None, events_total=None, policies_current=None, policies_total=None, entities_current=None, entities_total=None, origin=None, end_date_on_src=None, end_date_on_tgt=None, scheduled_execution_id=None, dump_execution_id=None, last_successful_dump_id=None):  # noqa: E501
        """ApiHiveOnTezReplicationResult - a model defined in Swagger"""  # noqa: E501
        self._type = None
        self._status = None
        self._error = None
        self._tables_current = None
        self._tables_total = None
        self._functions_current = None
        self._functions_total = None
        self._events_current = None
        self._events_total = None
        self._policies_current = None
        self._policies_total = None
        self._entities_current = None
        self._entities_total = None
        self._origin = None
        self._end_date_on_src = None
        self._end_date_on_tgt = None
        self._scheduled_execution_id = None
        self._dump_execution_id = None
        self._last_successful_dump_id = None
        self.discriminator = None
        if type is not None:
            self.type = type
        if status is not None:
            self.status = status
        if error is not None:
            self.error = error
        self.tables_current = tables_current
        self.tables_total = tables_total
        self.functions_current = functions_current
        self.functions_total = functions_total
        self.events_current = events_current
        self.events_total = events_total
        self.policies_current = policies_current
        self.policies_total = policies_total
        self.entities_current = entities_current
        self.entities_total = entities_total
        if origin is not None:
            self.origin = origin
        if end_date_on_src is not None:
            self.end_date_on_src = end_date_on_src
        if end_date_on_tgt is not None:
            self.end_date_on_tgt = end_date_on_tgt
        if scheduled_execution_id is not None:
            self.scheduled_execution_id = scheduled_execution_id
        if dump_execution_id is not None:
            self.dump_execution_id = dump_execution_id
        if last_successful_dump_id is not None:
            self.last_successful_dump_id = last_successful_dump_id

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

        Type of replication. <p/> BOOTSTRAP or INCREMENTAL  # noqa: E501

        :return: The type of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this ApiHiveOnTezReplicationResult.

        Type of replication. <p/> BOOTSTRAP or INCREMENTAL  # noqa: E501

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

        self._type = type

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


        :return: The status of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this ApiHiveOnTezReplicationResult.


        :param status: The status of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :type: str
        """

        self._status = status

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


        :return: The error of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: str
        """
        return self._error

    @error.setter
    def error(self, error):
        """Sets the error of this ApiHiveOnTezReplicationResult.


        :param error: The error of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :type: str
        """

        self._error = error

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


        :return: The tables_current of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: int
        """
        return self._tables_current

    @tables_current.setter
    def tables_current(self, tables_current):
        """Sets the tables_current of this ApiHiveOnTezReplicationResult.


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

        self._tables_current = tables_current

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


        :return: The tables_total of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: int
        """
        return self._tables_total

    @tables_total.setter
    def tables_total(self, tables_total):
        """Sets the tables_total of this ApiHiveOnTezReplicationResult.


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

        self._tables_total = tables_total

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


        :return: The functions_current of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: int
        """
        return self._functions_current

    @functions_current.setter
    def functions_current(self, functions_current):
        """Sets the functions_current of this ApiHiveOnTezReplicationResult.


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

        self._functions_current = functions_current

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


        :return: The functions_total of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: int
        """
        return self._functions_total

    @functions_total.setter
    def functions_total(self, functions_total):
        """Sets the functions_total of this ApiHiveOnTezReplicationResult.


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

        self._functions_total = functions_total

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


        :return: The events_current of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: int
        """
        return self._events_current

    @events_current.setter
    def events_current(self, events_current):
        """Sets the events_current of this ApiHiveOnTezReplicationResult.


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

        self._events_current = events_current

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


        :return: The events_total of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: int
        """
        return self._events_total

    @events_total.setter
    def events_total(self, events_total):
        """Sets the events_total of this ApiHiveOnTezReplicationResult.


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

        self._events_total = events_total

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


        :return: The policies_current of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: int
        """
        return self._policies_current

    @policies_current.setter
    def policies_current(self, policies_current):
        """Sets the policies_current of this ApiHiveOnTezReplicationResult.


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

        self._policies_current = policies_current

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


        :return: The policies_total of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: int
        """
        return self._policies_total

    @policies_total.setter
    def policies_total(self, policies_total):
        """Sets the policies_total of this ApiHiveOnTezReplicationResult.


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

        self._policies_total = policies_total

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


        :return: The entities_current of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: int
        """
        return self._entities_current

    @entities_current.setter
    def entities_current(self, entities_current):
        """Sets the entities_current of this ApiHiveOnTezReplicationResult.


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

        self._entities_current = entities_current

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


        :return: The entities_total of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: int
        """
        return self._entities_total

    @entities_total.setter
    def entities_total(self, entities_total):
        """Sets the entities_total of this ApiHiveOnTezReplicationResult.


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

        self._entities_total = entities_total

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


        :return: The origin of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: Origin
        """
        return self._origin

    @origin.setter
    def origin(self, origin):
        """Sets the origin of this ApiHiveOnTezReplicationResult.


        :param origin: The origin of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :type: Origin
        """

        self._origin = origin

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


        :return: The end_date_on_src of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: str
        """
        return self._end_date_on_src

    @end_date_on_src.setter
    def end_date_on_src(self, end_date_on_src):
        """Sets the end_date_on_src of this ApiHiveOnTezReplicationResult.


        :param end_date_on_src: The end_date_on_src of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :type: str
        """

        self._end_date_on_src = end_date_on_src

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


        :return: The end_date_on_tgt of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: str
        """
        return self._end_date_on_tgt

    @end_date_on_tgt.setter
    def end_date_on_tgt(self, end_date_on_tgt):
        """Sets the end_date_on_tgt of this ApiHiveOnTezReplicationResult.


        :param end_date_on_tgt: The end_date_on_tgt of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :type: str
        """

        self._end_date_on_tgt = end_date_on_tgt

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


        :return: The scheduled_execution_id of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: int
        """
        return self._scheduled_execution_id

    @scheduled_execution_id.setter
    def scheduled_execution_id(self, scheduled_execution_id):
        """Sets the scheduled_execution_id of this ApiHiveOnTezReplicationResult.


        :param scheduled_execution_id: The scheduled_execution_id of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :type: int
        """

        self._scheduled_execution_id = scheduled_execution_id

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


        :return: The dump_execution_id of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: int
        """
        return self._dump_execution_id

    @dump_execution_id.setter
    def dump_execution_id(self, dump_execution_id):
        """Sets the dump_execution_id of this ApiHiveOnTezReplicationResult.


        :param dump_execution_id: The dump_execution_id of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :type: int
        """

        self._dump_execution_id = dump_execution_id

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


        :return: The last_successful_dump_id of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :rtype: int
        """
        return self._last_successful_dump_id

    @last_successful_dump_id.setter
    def last_successful_dump_id(self, last_successful_dump_id):
        """Sets the last_successful_dump_id of this ApiHiveOnTezReplicationResult.


        :param last_successful_dump_id: The last_successful_dump_id of this ApiHiveOnTezReplicationResult.  # noqa: E501
        :type: int
        """

        self._last_successful_dump_id = last_successful_dump_id

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

        return self.__dict__ == other.__dict__

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