# 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 ApiHive3ReplicationScheduledExecutionsResultRow(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 = {
        'execution_id': 'int',
        'name': 'str',
        'query_id': 'str',
        'state': 'str',
        'start_time': 'str',
        'end_time': 'str',
        'elapsed': 'int',
        'error_message': 'str',
        'last_update_time': 'str'
    }

    attribute_map = {
        'execution_id': 'executionId',
        'name': 'name',
        'query_id': 'queryId',
        'state': 'state',
        'start_time': 'startTime',
        'end_time': 'endTime',
        'elapsed': 'elapsed',
        'error_message': 'errorMessage',
        'last_update_time': 'lastUpdateTime'
    }

    def __init__(self, execution_id=None, name=None, query_id=None, state=None, start_time=None, end_time=None, elapsed=None, error_message=None, last_update_time=None):
        """
        ApiHive3ReplicationScheduledExecutionsResultRow - a model defined in Swagger
        """

        self._execution_id = None
        self._name = None
        self._query_id = None
        self._state = None
        self._start_time = None
        self._end_time = None
        self._elapsed = None
        self._error_message = None
        self._last_update_time = None

        if execution_id is not None:
          self.execution_id = execution_id
        if name is not None:
          self.name = name
        if query_id is not None:
          self.query_id = query_id
        if state is not None:
          self.state = state
        if start_time is not None:
          self.start_time = start_time
        if end_time is not None:
          self.end_time = end_time
        if elapsed is not None:
          self.elapsed = elapsed
        if error_message is not None:
          self.error_message = error_message
        if last_update_time is not None:
          self.last_update_time = last_update_time

    @property
    def execution_id(self):
        """
        Gets the execution_id of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :return: The execution_id of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :rtype: int
        """
        return self._execution_id

    @execution_id.setter
    def execution_id(self, execution_id):
        """
        Sets the execution_id of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :param execution_id: The execution_id of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :type: int
        """

        self._execution_id = execution_id

    @property
    def name(self):
        """
        Gets the name of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :return: The name of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """
        Sets the name of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :param name: The name of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :type: str
        """

        self._name = name

    @property
    def query_id(self):
        """
        Gets the query_id of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :return: The query_id of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :rtype: str
        """
        return self._query_id

    @query_id.setter
    def query_id(self, query_id):
        """
        Sets the query_id of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :param query_id: The query_id of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :type: str
        """

        self._query_id = query_id

    @property
    def state(self):
        """
        Gets the state of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :return: The state of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :rtype: str
        """
        return self._state

    @state.setter
    def state(self, state):
        """
        Sets the state of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :param state: The state of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :type: str
        """

        self._state = state

    @property
    def start_time(self):
        """
        Gets the start_time of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :return: The start_time of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :rtype: str
        """
        return self._start_time

    @start_time.setter
    def start_time(self, start_time):
        """
        Sets the start_time of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :param start_time: The start_time of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :type: str
        """

        self._start_time = start_time

    @property
    def end_time(self):
        """
        Gets the end_time of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :return: The end_time of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :rtype: str
        """
        return self._end_time

    @end_time.setter
    def end_time(self, end_time):
        """
        Sets the end_time of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :param end_time: The end_time of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :type: str
        """

        self._end_time = end_time

    @property
    def elapsed(self):
        """
        Gets the elapsed of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :return: The elapsed of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :rtype: int
        """
        return self._elapsed

    @elapsed.setter
    def elapsed(self, elapsed):
        """
        Sets the elapsed of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :param elapsed: The elapsed of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :type: int
        """

        self._elapsed = elapsed

    @property
    def error_message(self):
        """
        Gets the error_message of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :return: The error_message of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :rtype: str
        """
        return self._error_message

    @error_message.setter
    def error_message(self, error_message):
        """
        Sets the error_message of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :param error_message: The error_message of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :type: str
        """

        self._error_message = error_message

    @property
    def last_update_time(self):
        """
        Gets the last_update_time of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :return: The last_update_time of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :rtype: str
        """
        return self._last_update_time

    @last_update_time.setter
    def last_update_time(self, last_update_time):
        """
        Sets the last_update_time of this ApiHive3ReplicationScheduledExecutionsResultRow.
        

        :param last_update_time: The last_update_time of this ApiHive3ReplicationScheduledExecutionsResultRow.
        :type: str
        """

        self._last_update_time = last_update_time

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

        return self.__dict__ == other.__dict__

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