@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetDocumentAnalysisResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetDocumentAnalysisResult() |
Modifier and Type | Method and Description |
---|---|
GetDocumentAnalysisResult |
clone() |
boolean |
equals(Object obj) |
String |
getAnalyzeDocumentModelVersion()
|
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()
Returns if the detection job could not be completed.
|
List<Warning> |
getWarnings()
A list of warnings that occurred during the document-analysis operation.
|
int |
hashCode() |
void |
setAnalyzeDocumentModelVersion(String analyzeDocumentModelVersion)
|
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(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)
Returns if the detection job could not be completed.
|
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.
|
GetDocumentAnalysisResult |
withAnalyzeDocumentModelVersion(String analyzeDocumentModelVersion)
|
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)
Returns if the detection job could not be completed.
|
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.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
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 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.
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.
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 void setJobStatus(String jobStatus)
The current status of the text detection job.
jobStatus
- The current status of the text detection job.JobStatus
public String getJobStatus()
The current status of the text detection job.
JobStatus
public GetDocumentAnalysisResult withJobStatus(String jobStatus)
The current status of the text detection job.
jobStatus
- The current status of the text detection job.JobStatus
public GetDocumentAnalysisResult withJobStatus(JobStatus jobStatus)
The current status of the text detection job.
jobStatus
- The current status of the text detection job.JobStatus
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.
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 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.
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.
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.
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.
NOTE: This method appends the values to the existing list (if any). Use
setBlocks(java.util.Collection)
or withBlocks(java.util.Collection)
if you want to override the
existing values.
blocks
- The results of the text-analysis operation.public GetDocumentAnalysisResult withBlocks(Collection<Block> blocks)
The results of the text-analysis operation.
blocks
- The results of the text-analysis operation.public List<Warning> getWarnings()
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.
NOTE: This method appends the values to the existing list (if any). Use
setWarnings(java.util.Collection)
or withWarnings(java.util.Collection)
if you want to override
the existing values.
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.
warnings
- A list of warnings that occurred during the document-analysis operation.public void setStatusMessage(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 String getStatusMessage()
Returns if the detection job could not be completed. Contains explanation for what error occured.
public GetDocumentAnalysisResult withStatusMessage(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 void setAnalyzeDocumentModelVersion(String analyzeDocumentModelVersion)
analyzeDocumentModelVersion
- public String getAnalyzeDocumentModelVersion()
public GetDocumentAnalysisResult withAnalyzeDocumentModelVersion(String analyzeDocumentModelVersion)
analyzeDocumentModelVersion
- public String toString()
toString
in class Object
Object.toString()
public GetDocumentAnalysisResult clone()