com.mindee.parsing.common.PredictResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mindee-api-java Show documentation
Show all versions of mindee-api-java Show documentation
Java Library to call Mindee's Off-The-Shelf and Custom APIs
package com.mindee.parsing.common;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* Represent a `predict` response from Mindee API.
*
* @param Set the prediction model used to parse the document. The response object will be
* instantiated based on this parameter.
*/
@Data
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class PredictResponse extends ApiResponse {
/**
* Set the prediction model used to parse the document.
* The response object will be instantiated based on this parameter.
*/
@JsonProperty("document")
Document document;
public String toString() {
return String.format("%s%n%n%s", this.apiRequest, this.document);
}
}