public class GetDocumentAnalysisResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
GetDocumentAnalysisResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAnalyzeDocumentModelVersion()
|
java.util.List<Block> |
getBlocks()
The results of the text-analysis operation.
|
DocumentMetadata |
getDocumentMetadata()
Information about a document that Amazon Textract processed.
|
java.lang.String |
getJobStatus()
The current status of the text detection job.
|
java.lang.String |
getNextToken()
If the response is truncated, Amazon Textract returns this token.
|
java.lang.String |
getStatusMessage()
Returns if the detection job could not be completed.
|
java.util.List<Warning> |
getWarnings()
A list of warnings that occurred during the document-analysis operation.
|
int |
hashCode() |
void |
setAnalyzeDocumentModelVersion(java.lang.String analyzeDocumentModelVersion)
|
void |
setBlocks(java.util.Collection<Block> blocks)
The results of the text-analysis operation.
|
void |
setDocumentMetadata(DocumentMetadata documentMetadata)
Information about a document that Amazon Textract processed.
|
void |
setJobStatus(JobStatus jobStatus)
The current status of the text detection job.
|
void |
setJobStatus(java.lang.String jobStatus)
The current status of the text detection job.
|
void |
setNextToken(java.lang.String nextToken)
If the response is truncated, Amazon Textract returns this token.
|
void |
setStatusMessage(java.lang.String statusMessage)
Returns if the detection job could not be completed.
|
void |
setWarnings(java.util.Collection<Warning> warnings)
A list of warnings that occurred during the document-analysis operation.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetDocumentAnalysisResult |
withAnalyzeDocumentModelVersion(java.lang.String analyzeDocumentModelVersion)
|
GetDocumentAnalysisResult |
withBlocks(Block... blocks)
The results of the text-analysis operation.
|
GetDocumentAnalysisResult |
withBlocks(java.util.Collection<Block> blocks)
The results of the text-analysis operation.
|
GetDocumentAnalysisResult |
withDocumentMetadata(DocumentMetadata documentMetadata)
Information about a document that Amazon Textract processed.
|
GetDocumentAnalysisResult |
withJobStatus(JobStatus jobStatus)
The current status of the text detection job.
|
GetDocumentAnalysisResult |
withJobStatus(java.lang.String jobStatus)
The current status of the text detection job.
|
GetDocumentAnalysisResult |
withNextToken(java.lang.String nextToken)
If the response is truncated, Amazon Textract returns this token.
|
GetDocumentAnalysisResult |
withStatusMessage(java.lang.String statusMessage)
Returns if the detection job could not be completed.
|
GetDocumentAnalysisResult |
withWarnings(java.util.Collection<Warning> warnings)
A list of warnings that occurred during the document-analysis operation.
|
GetDocumentAnalysisResult |
withWarnings(Warning... warnings)
A list of warnings that occurred during the document-analysis operation.
|
public DocumentMetadata getDocumentMetadata()
Information about a document that Amazon Textract processed.
DocumentMetadata
is returned in every page of paginated
responses from an Amazon Textract video operation.
Information about a document that Amazon Textract processed.
DocumentMetadata
is returned in every page of
paginated responses from an Amazon Textract video operation.
public void setDocumentMetadata(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
-
Information about a document that Amazon Textract processed.
DocumentMetadata
is returned in every page of
paginated responses from an Amazon Textract video operation.
public GetDocumentAnalysisResult withDocumentMetadata(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.
Returns a reference to this object so that method calls can be chained together.
documentMetadata
-
Information about a document that Amazon Textract processed.
DocumentMetadata
is returned in every page of
paginated responses from an Amazon Textract video operation.
public java.lang.String getJobStatus()
The current status of the text detection job.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED, PARTIAL_SUCCESS
The current status of the text detection job.
JobStatus
public void setJobStatus(java.lang.String jobStatus)
The current status of the text detection job.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED, PARTIAL_SUCCESS
jobStatus
- The current status of the text detection job.
JobStatus
public GetDocumentAnalysisResult withJobStatus(java.lang.String jobStatus)
The current status of the text detection job.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED, PARTIAL_SUCCESS
jobStatus
- The current status of the text detection job.
JobStatus
public void setJobStatus(JobStatus jobStatus)
The current status of the text detection job.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED, PARTIAL_SUCCESS
jobStatus
- The current status of the text detection job.
JobStatus
public GetDocumentAnalysisResult withJobStatus(JobStatus jobStatus)
The current status of the text detection job.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED, PARTIAL_SUCCESS
jobStatus
- The current status of the text detection job.
JobStatus
public java.lang.String getNextToken()
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.
Constraints:
Length: 1 - 255
Pattern: .*\S.*
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(java.lang.String 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.
Constraints:
Length: 1 - 255
Pattern: .*\S.*
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 GetDocumentAnalysisResult withNextToken(java.lang.String 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: .*\S.*
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 java.util.List<Block> getBlocks()
The results of the text-analysis operation.
The results of the text-analysis operation.
public void setBlocks(java.util.Collection<Block> blocks)
The results of the text-analysis operation.
blocks
- The results of the text-analysis operation.
public GetDocumentAnalysisResult withBlocks(Block... blocks)
The results of the text-analysis operation.
Returns a reference to this object so that method calls can be chained together.
blocks
- The results of the text-analysis operation.
public GetDocumentAnalysisResult withBlocks(java.util.Collection<Block> blocks)
The results of the text-analysis operation.
Returns a reference to this object so that method calls can be chained together.
blocks
- The results of the text-analysis operation.
public java.util.List<Warning> getWarnings()
A list of warnings that occurred during the document-analysis operation.
A list of warnings that occurred during the document-analysis operation.
public void setWarnings(java.util.Collection<Warning> warnings)
A list of warnings that occurred during the document-analysis operation.
warnings
- A list of warnings that occurred during the document-analysis operation.
public GetDocumentAnalysisResult withWarnings(Warning... warnings)
A list of warnings that occurred during the document-analysis operation.
Returns a reference to this object so that method calls can be chained together.
warnings
- A list of warnings that occurred during the document-analysis operation.
public GetDocumentAnalysisResult withWarnings(java.util.Collection<Warning> warnings)
A list of warnings that occurred during the document-analysis operation.
Returns a reference to this object so that method calls can be chained together.
warnings
- A list of warnings that occurred during the document-analysis operation.
public java.lang.String getStatusMessage()
Returns if the detection job could not be completed. Contains explanation for what error occured.
Returns if the detection job could not be completed. Contains explanation for what error occured.
public void setStatusMessage(java.lang.String statusMessage)
Returns if the detection job could not be completed. Contains explanation for what error occured.
statusMessage
- Returns if the detection job could not be completed. Contains explanation for what error occured.
public GetDocumentAnalysisResult withStatusMessage(java.lang.String statusMessage)
Returns if the detection job could not be completed. Contains explanation for what error occured.
Returns a reference to this object so that method calls can be chained together.
statusMessage
- Returns if the detection job could not be completed. Contains explanation for what error occured.
public java.lang.String getAnalyzeDocumentModelVersion()
public void setAnalyzeDocumentModelVersion(java.lang.String analyzeDocumentModelVersion)
analyzeDocumentModelVersion
- public GetDocumentAnalysisResult withAnalyzeDocumentModelVersion(java.lang.String analyzeDocumentModelVersion)
Returns a reference to this object so that method calls can be chained together.
analyzeDocumentModelVersion
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.