Class AsyncPredictResponse<T extends Inference>

  • Type Parameters:
    T - Set the prediction model used to parse the document. The response object will be instantiated based on this parameter.

    public class AsyncPredictResponse<T extends Inference>
    extends ApiResponse
    Represent a `predict` response from Mindee API.
    • Constructor Detail

      • AsyncPredictResponse

        public AsyncPredictResponse()
    • Method Detail

      • getDocument

        public Optional<Document<T>> getDocument()
        Get the document optional.
      • getDocumentObj

        public Document<T> getDocumentObj()
        Get the document object if it is present. Shortcut for when the document optional is known to be present.
      • getJob

        public Job getJob()
        Details for the submitted job.
      • setDocument

        public void setDocument​(Document<T> document)
        Set the prediction model used to parse the document. The response object will be instantiated based on this parameter.
      • setJob

        public void setJob​(Job job)
        Details for the submitted job.