* Information about a document that Amazon Textract processed. DocumentMetadata
is returned in every
* page of paginated responses from an Amazon Textract video operation.
*
* The current status of the text detection job. *
*/ private String jobStatus; /** ** If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent * request to retrieve the next set of text detection results. *
*/ private String nextToken; /** ** The results of the text-analysis operation. *
*/ private java.util.List* A list of warnings that occurred during the document-analysis operation. *
*/ private java.util.List* Returns if the detection job could not be completed. Contains explanation for what error occured. *
*/ private String statusMessage; /** */ private String analyzeDocumentModelVersion; /** *
* Information about a document that Amazon Textract processed. DocumentMetadata
is returned in every
* page of paginated responses from an Amazon Textract video operation.
*
DocumentMetadata
is returned in
* every page of paginated responses from an Amazon Textract video operation.
*/
public void setDocumentMetadata(DocumentMetadata documentMetadata) {
this.documentMetadata = documentMetadata;
}
/**
*
* Information about a document that Amazon Textract processed. DocumentMetadata
is returned in every
* page of paginated responses from an Amazon Textract video operation.
*
DocumentMetadata
is returned in
* every page of paginated responses from an Amazon Textract video operation.
*/
public DocumentMetadata getDocumentMetadata() {
return this.documentMetadata;
}
/**
*
* Information about a document that Amazon Textract processed. DocumentMetadata
is returned in every
* page of paginated responses from an Amazon Textract video operation.
*
DocumentMetadata
is returned in
* every page of paginated responses from an Amazon Textract video operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDocumentAnalysisResult withDocumentMetadata(DocumentMetadata documentMetadata) {
setDocumentMetadata(documentMetadata);
return this;
}
/**
* * The current status of the text detection job. *
* * @param jobStatus * The current status of the text detection job. * @see JobStatus */ public void setJobStatus(String jobStatus) { this.jobStatus = jobStatus; } /** ** The current status of the text detection job. *
* * @return The current status of the text detection job. * @see JobStatus */ public String getJobStatus() { return this.jobStatus; } /** ** The current status of the text detection job. *
* * @param jobStatus * The current status of the text detection job. * @return Returns a reference to this object so that method calls can be chained together. * @see JobStatus */ public GetDocumentAnalysisResult withJobStatus(String jobStatus) { setJobStatus(jobStatus); return this; } /** ** The current status of the text detection job. *
* * @param jobStatus * The current status of the text detection job. * @return Returns a reference to this object so that method calls can be chained together. * @see JobStatus */ public GetDocumentAnalysisResult withJobStatus(JobStatus jobStatus) { this.jobStatus = jobStatus.toString(); return this; } /** ** If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent * request to retrieve the next set of text detection results. *
* * @param nextToken * If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent * request to retrieve the next set of text detection results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent * request to retrieve the next set of text detection results. *
* * @return If the response is truncated, Amazon Textract returns this token. You can use this token in the * subsequent request to retrieve the next set of text detection results. */ public String getNextToken() { return this.nextToken; } /** ** If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent * request to retrieve the next set of text detection results. *
* * @param nextToken * If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent * request to retrieve the next set of text detection results. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDocumentAnalysisResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** ** The results of the text-analysis operation. *
* * @return The results of the text-analysis operation. */ public java.util.List* The results of the text-analysis operation. *
* * @param blocks * The results of the text-analysis operation. */ public void setBlocks(java.util.Collection* The results of the text-analysis operation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setBlocks(java.util.Collection)} or {@link #withBlocks(java.util.Collection)} if you want to override the * existing values. *
* * @param blocks * The results of the text-analysis operation. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDocumentAnalysisResult withBlocks(Block... blocks) { if (this.blocks == null) { setBlocks(new java.util.ArrayList* The results of the text-analysis operation. *
* * @param blocks * The results of the text-analysis operation. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDocumentAnalysisResult withBlocks(java.util.Collection* A list of warnings that occurred during the document-analysis operation. *
* * @return A list of warnings that occurred during the document-analysis operation. */ public java.util.List* A list of warnings that occurred during the document-analysis operation. *
* * @param warnings * A list of warnings that occurred during the document-analysis operation. */ public void setWarnings(java.util.Collection* A list of warnings that occurred during the document-analysis operation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setWarnings(java.util.Collection)} or {@link #withWarnings(java.util.Collection)} if you want to override * the existing values. *
* * @param warnings * A list of warnings that occurred during the document-analysis operation. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDocumentAnalysisResult withWarnings(Warning... warnings) { if (this.warnings == null) { setWarnings(new java.util.ArrayList* A list of warnings that occurred during the document-analysis operation. *
* * @param warnings * A list of warnings that occurred during the document-analysis operation. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDocumentAnalysisResult withWarnings(java.util.Collection* Returns if the detection job could not be completed. Contains explanation for what error occured. *
* * @param statusMessage * Returns if the detection job could not be completed. Contains explanation for what error occured. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** ** Returns if the detection job could not be completed. Contains explanation for what error occured. *
* * @return Returns if the detection job could not be completed. Contains explanation for what error occured. */ public String getStatusMessage() { return this.statusMessage; } /** ** Returns if the detection job could not be completed. Contains explanation for what error occured. *
* * @param statusMessage * Returns if the detection job could not be completed. Contains explanation for what error occured. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDocumentAnalysisResult withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; } /** * * * @param analyzeDocumentModelVersion */ public void setAnalyzeDocumentModelVersion(String analyzeDocumentModelVersion) { this.analyzeDocumentModelVersion = analyzeDocumentModelVersion; } /** * * * @return */ public String getAnalyzeDocumentModelVersion() { return this.analyzeDocumentModelVersion; } /** * * * @param analyzeDocumentModelVersion * @return Returns a reference to this object so that method calls can be chained together. */ public GetDocumentAnalysisResult withAnalyzeDocumentModelVersion(String analyzeDocumentModelVersion) { setAnalyzeDocumentModelVersion(analyzeDocumentModelVersion); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDocumentMetadata() != null) sb.append("DocumentMetadata: ").append(getDocumentMetadata()).append(","); if (getJobStatus() != null) sb.append("JobStatus: ").append(getJobStatus()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getBlocks() != null) sb.append("Blocks: ").append(getBlocks()).append(","); if (getWarnings() != null) sb.append("Warnings: ").append(getWarnings()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()).append(","); if (getAnalyzeDocumentModelVersion() != null) sb.append("AnalyzeDocumentModelVersion: ").append(getAnalyzeDocumentModelVersion()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetDocumentAnalysisResult == false) return false; GetDocumentAnalysisResult other = (GetDocumentAnalysisResult) obj; if (other.getDocumentMetadata() == null ^ this.getDocumentMetadata() == null) return false; if (other.getDocumentMetadata() != null && other.getDocumentMetadata().equals(this.getDocumentMetadata()) == false) return false; if (other.getJobStatus() == null ^ this.getJobStatus() == null) return false; if (other.getJobStatus() != null && other.getJobStatus().equals(this.getJobStatus()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getBlocks() == null ^ this.getBlocks() == null) return false; if (other.getBlocks() != null && other.getBlocks().equals(this.getBlocks()) == false) return false; if (other.getWarnings() == null ^ this.getWarnings() == null) return false; if (other.getWarnings() != null && other.getWarnings().equals(this.getWarnings()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; if (other.getAnalyzeDocumentModelVersion() == null ^ this.getAnalyzeDocumentModelVersion() == null) return false; if (other.getAnalyzeDocumentModelVersion() != null && other.getAnalyzeDocumentModelVersion().equals(this.getAnalyzeDocumentModelVersion()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDocumentMetadata() == null) ? 0 : getDocumentMetadata().hashCode()); hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getBlocks() == null) ? 0 : getBlocks().hashCode()); hashCode = prime * hashCode + ((getWarnings() == null) ? 0 : getWarnings().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getAnalyzeDocumentModelVersion() == null) ? 0 : getAnalyzeDocumentModelVersion().hashCode()); return hashCode; } @Override public GetDocumentAnalysisResult clone() { try { return (GetDocumentAnalysisResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }