public class GetDocumentTextDetectionResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
GetDocumentTextDetectionResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<Block> |
getBlocks()
The results of the text-detection operation.
|
java.lang.String |
getDetectDocumentTextModelVersion()
|
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 text-detection operation for
the document.
|
int |
hashCode() |
void |
setBlocks(java.util.Collection<Block> blocks)
The results of the text-detection operation.
|
void |
setDetectDocumentTextModelVersion(java.lang.String detectDocumentTextModelVersion)
|
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 text-detection operation for
the document.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetDocumentTextDetectionResult |
withBlocks(Block... blocks)
The results of the text-detection operation.
|
GetDocumentTextDetectionResult |
withBlocks(java.util.Collection<Block> blocks)
The results of the text-detection operation.
|
GetDocumentTextDetectionResult |
withDetectDocumentTextModelVersion(java.lang.String detectDocumentTextModelVersion)
|
GetDocumentTextDetectionResult |
withDocumentMetadata(DocumentMetadata documentMetadata)
Information about a document that Amazon Textract processed.
|
GetDocumentTextDetectionResult |
withJobStatus(JobStatus jobStatus)
The current status of the text detection job.
|
GetDocumentTextDetectionResult |
withJobStatus(java.lang.String jobStatus)
The current status of the text detection job.
|
GetDocumentTextDetectionResult |
withNextToken(java.lang.String nextToken)
If the response is truncated, Amazon Textract returns this token.
|
GetDocumentTextDetectionResult |
withStatusMessage(java.lang.String statusMessage)
Returns if the detection job could not be completed.
|
GetDocumentTextDetectionResult |
withWarnings(java.util.Collection<Warning> warnings)
A list of warnings that occurred during the text-detection operation for
the document.
|
GetDocumentTextDetectionResult |
withWarnings(Warning... warnings)
A list of warnings that occurred during the text-detection operation for
the document.
|
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 GetDocumentTextDetectionResult 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 GetDocumentTextDetectionResult 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 GetDocumentTextDetectionResult 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 GetDocumentTextDetectionResult 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-detection operation.
The results of the text-detection operation.
public void setBlocks(java.util.Collection<Block> blocks)
The results of the text-detection operation.
blocks
- The results of the text-detection operation.
public GetDocumentTextDetectionResult withBlocks(Block... blocks)
The results of the text-detection operation.
Returns a reference to this object so that method calls can be chained together.
blocks
- The results of the text-detection operation.
public GetDocumentTextDetectionResult withBlocks(java.util.Collection<Block> blocks)
The results of the text-detection operation.
Returns a reference to this object so that method calls can be chained together.
blocks
- The results of the text-detection operation.
public java.util.List<Warning> getWarnings()
A list of warnings that occurred during the text-detection operation for the document.
A list of warnings that occurred during the text-detection operation for the document.
public void setWarnings(java.util.Collection<Warning> warnings)
A list of warnings that occurred during the text-detection operation for the document.
warnings
- A list of warnings that occurred during the text-detection operation for the document.
public GetDocumentTextDetectionResult withWarnings(Warning... warnings)
A list of warnings that occurred during the text-detection operation for the document.
Returns a reference to this object so that method calls can be chained together.
warnings
- A list of warnings that occurred during the text-detection operation for the document.
public GetDocumentTextDetectionResult withWarnings(java.util.Collection<Warning> warnings)
A list of warnings that occurred during the text-detection operation for the document.
Returns a reference to this object so that method calls can be chained together.
warnings
- A list of warnings that occurred during the text-detection operation for the document.
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 GetDocumentTextDetectionResult 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 getDetectDocumentTextModelVersion()
public void setDetectDocumentTextModelVersion(java.lang.String detectDocumentTextModelVersion)
detectDocumentTextModelVersion
- public GetDocumentTextDetectionResult withDetectDocumentTextModelVersion(java.lang.String detectDocumentTextModelVersion)
Returns a reference to this object so that method calls can be chained together.
detectDocumentTextModelVersion
- 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.