# coding: utf-8

"""
    id

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

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


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class GetDocumentStatusResponse(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 = {
        'completed_at': 'str',
        'created_at': 'str',
        'document_id': 'str',
        'error': 'str',
        'from_cache': 'bool',
        'routes': 'list[RouteForGetDocumentStatusOutput]',
        'status': 'str'
    }

    attribute_map = {
        'completed_at': 'CompletedAt',
        'created_at': 'CreatedAt',
        'document_id': 'DocumentId',
        'error': 'Error',
        'from_cache': 'FromCache',
        'routes': 'Routes',
        'status': 'Status'
    }

    def __init__(self, completed_at=None, created_at=None, document_id=None, error=None, from_cache=None, routes=None, status=None, _configuration=None):  # noqa: E501
        """GetDocumentStatusResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._completed_at = None
        self._created_at = None
        self._document_id = None
        self._error = None
        self._from_cache = None
        self._routes = None
        self._status = None
        self.discriminator = None

        if completed_at is not None:
            self.completed_at = completed_at
        if created_at is not None:
            self.created_at = created_at
        if document_id is not None:
            self.document_id = document_id
        if error is not None:
            self.error = error
        if from_cache is not None:
            self.from_cache = from_cache
        if routes is not None:
            self.routes = routes
        if status is not None:
            self.status = status

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


        :return: The completed_at of this GetDocumentStatusResponse.  # noqa: E501
        :rtype: str
        """
        return self._completed_at

    @completed_at.setter
    def completed_at(self, completed_at):
        """Sets the completed_at of this GetDocumentStatusResponse.


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

        self._completed_at = completed_at

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


        :return: The created_at of this GetDocumentStatusResponse.  # noqa: E501
        :rtype: str
        """
        return self._created_at

    @created_at.setter
    def created_at(self, created_at):
        """Sets the created_at of this GetDocumentStatusResponse.


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

        self._created_at = created_at

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


        :return: The document_id of this GetDocumentStatusResponse.  # noqa: E501
        :rtype: str
        """
        return self._document_id

    @document_id.setter
    def document_id(self, document_id):
        """Sets the document_id of this GetDocumentStatusResponse.


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

        self._document_id = document_id

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


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

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


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

        self._error = error

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


        :return: The from_cache of this GetDocumentStatusResponse.  # noqa: E501
        :rtype: bool
        """
        return self._from_cache

    @from_cache.setter
    def from_cache(self, from_cache):
        """Sets the from_cache of this GetDocumentStatusResponse.


        :param from_cache: The from_cache of this GetDocumentStatusResponse.  # noqa: E501
        :type: bool
        """

        self._from_cache = from_cache

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


        :return: The routes of this GetDocumentStatusResponse.  # noqa: E501
        :rtype: list[RouteForGetDocumentStatusOutput]
        """
        return self._routes

    @routes.setter
    def routes(self, routes):
        """Sets the routes of this GetDocumentStatusResponse.


        :param routes: The routes of this GetDocumentStatusResponse.  # noqa: E501
        :type: list[RouteForGetDocumentStatusOutput]
        """

        self._routes = routes

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


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

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


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

        self._status = status

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

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
