public class GetDocumentAnalysisResult extends Object implements Serializable
| Constructor and Description |
|---|
GetDocumentAnalysisResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<Block> |
getBlocks()
The results of the text analysis operation.
|
DocumentMetadata |
getDocumentMetadata()
Information about a document that Amazon Textract processed.
|
String |
getJobStatus()
The current status of the text detection job.
|
String |
getNextToken()
If the response is truncated, Amazon Textract returns this token.
|
String |
getStatusMessage()
The current status of an asynchronous document analysis operation.
|
List<Warning> |
getWarnings()
A list of warnings that occurred during the document analysis operation.
|
int |
hashCode() |
void |
setBlocks(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(String jobStatus)
The current status of the text detection job.
|
void |
setNextToken(String nextToken)
If the response is truncated, Amazon Textract returns this token.
|
void |
setStatusMessage(String statusMessage)
The current status of an asynchronous document analysis operation.
|
void |
setWarnings(Collection<Warning> warnings)
A list of warnings that occurred during the document analysis operation.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetDocumentAnalysisResult |
withBlocks(Block... blocks)
The results of the text analysis operation.
|
GetDocumentAnalysisResult |
withBlocks(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(String jobStatus)
The current status of the text detection job.
|
GetDocumentAnalysisResult |
withNextToken(String nextToken)
If the response is truncated, Amazon Textract returns this token.
|
GetDocumentAnalysisResult |
withStatusMessage(String statusMessage)
The current status of an asynchronous document analysis operation.
|
GetDocumentAnalysisResult |
withWarnings(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 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.
JobStatuspublic void setJobStatus(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.
JobStatuspublic GetDocumentAnalysisResult withJobStatus(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.
JobStatuspublic 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.
JobStatuspublic 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.
JobStatuspublic 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(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(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 List<Block> getBlocks()
The results of the text analysis operation.
The results of the text analysis operation.
public void setBlocks(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(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 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(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(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 String getStatusMessage()
The current status of an asynchronous document analysis operation.
The current status of an asynchronous document analysis operation.
public void setStatusMessage(String statusMessage)
The current status of an asynchronous document analysis operation.
statusMessage - The current status of an asynchronous document analysis operation.
public GetDocumentAnalysisResult withStatusMessage(String statusMessage)
The current status of an asynchronous document analysis operation.
Returns a reference to this object so that method calls can be chained together.
statusMessage - The current status of an asynchronous document analysis operation.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.