@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetDocumentTextDetectionResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetDocumentTextDetectionResult() |
Modifier and Type | Method and Description |
---|---|
GetDocumentTextDetectionResult |
clone() |
boolean |
equals(Object obj) |
List<Block> |
getBlocks()
The results of the text-detection operation.
|
String |
getDetectDocumentTextModelVersion()
|
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 text-detection operation for the document.
|
int |
hashCode() |
void |
setBlocks(Collection<Block> blocks)
The results of the text-detection operation.
|
void |
setDetectDocumentTextModelVersion(String detectDocumentTextModelVersion)
|
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 text-detection operation for the document.
|
String |
toString()
Returns a string representation of this object.
|
GetDocumentTextDetectionResult |
withBlocks(Block... blocks)
The results of the text-detection operation.
|
GetDocumentTextDetectionResult |
withBlocks(Collection<Block> blocks)
The results of the text-detection operation.
|
GetDocumentTextDetectionResult |
withDetectDocumentTextModelVersion(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(String jobStatus)
The current status of the text detection job.
|
GetDocumentTextDetectionResult |
withNextToken(String nextToken)
If the response is truncated, Amazon Textract returns this token.
|
GetDocumentTextDetectionResult |
withStatusMessage(String statusMessage)
Returns if the detection job could not be completed.
|
GetDocumentTextDetectionResult |
withWarnings(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.
|
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 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.
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 GetDocumentTextDetectionResult withJobStatus(String jobStatus)
The current status of the text detection job.
jobStatus
- The current status of the text detection job.JobStatus
public GetDocumentTextDetectionResult 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 GetDocumentTextDetectionResult 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-detection operation.
public void setBlocks(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.
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-detection operation.public GetDocumentTextDetectionResult withBlocks(Collection<Block> blocks)
The results of the text-detection operation.
blocks
- The results of the text-detection operation.public List<Warning> getWarnings()
A list of warnings that occurred during the text-detection operation for the document.
public void setWarnings(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.
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 text-detection operation for the document.public GetDocumentTextDetectionResult withWarnings(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 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 GetDocumentTextDetectionResult 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 setDetectDocumentTextModelVersion(String detectDocumentTextModelVersion)
detectDocumentTextModelVersion
- public String getDetectDocumentTextModelVersion()
public GetDocumentTextDetectionResult withDetectDocumentTextModelVersion(String detectDocumentTextModelVersion)
detectDocumentTextModelVersion
- public String toString()
toString
in class Object
Object.toString()
public GetDocumentTextDetectionResult clone()