public class DetectDocumentTextResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
DetectDocumentTextResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<Block> |
getBlocks()
An array of
Block objects that contain the text that's
detected in the document. |
java.lang.String |
getDetectDocumentTextModelVersion()
|
DocumentMetadata |
getDocumentMetadata()
Metadata about the document.
|
int |
hashCode() |
void |
setBlocks(java.util.Collection<Block> blocks)
An array of
Block objects that contain the text that's
detected in the document. |
void |
setDetectDocumentTextModelVersion(java.lang.String detectDocumentTextModelVersion)
|
void |
setDocumentMetadata(DocumentMetadata documentMetadata)
Metadata about the document.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetectDocumentTextResult |
withBlocks(Block... blocks)
An array of
Block objects that contain the text that's
detected in the document. |
DetectDocumentTextResult |
withBlocks(java.util.Collection<Block> blocks)
An array of
Block objects that contain the text that's
detected in the document. |
DetectDocumentTextResult |
withDetectDocumentTextModelVersion(java.lang.String detectDocumentTextModelVersion)
|
DetectDocumentTextResult |
withDocumentMetadata(DocumentMetadata documentMetadata)
Metadata about the document.
|
public DocumentMetadata getDocumentMetadata()
Metadata about the document. It contains the number of pages that are detected in the document.
Metadata about the document. It contains the number of pages that are detected in the document.
public void setDocumentMetadata(DocumentMetadata documentMetadata)
Metadata about the document. It contains the number of pages that are detected in the document.
documentMetadata
- Metadata about the document. It contains the number of pages that are detected in the document.
public DetectDocumentTextResult withDocumentMetadata(DocumentMetadata documentMetadata)
Metadata about the document. It contains the number of pages that are detected in the document.
Returns a reference to this object so that method calls can be chained together.
documentMetadata
- Metadata about the document. It contains the number of pages that are detected in the document.
public java.util.List<Block> getBlocks()
An array of Block
objects that contain the text that's
detected in the document.
An array of Block
objects that contain the text
that's detected in the document.
public void setBlocks(java.util.Collection<Block> blocks)
An array of Block
objects that contain the text that's
detected in the document.
blocks
-
An array of Block
objects that contain the text
that's detected in the document.
public DetectDocumentTextResult withBlocks(Block... blocks)
An array of Block
objects that contain the text that's
detected in the document.
Returns a reference to this object so that method calls can be chained together.
blocks
-
An array of Block
objects that contain the text
that's detected in the document.
public DetectDocumentTextResult withBlocks(java.util.Collection<Block> blocks)
An array of Block
objects that contain the text that's
detected in the document.
Returns a reference to this object so that method calls can be chained together.
blocks
-
An array of Block
objects that contain the text
that's detected in the document.
public java.lang.String getDetectDocumentTextModelVersion()
public void setDetectDocumentTextModelVersion(java.lang.String detectDocumentTextModelVersion)
detectDocumentTextModelVersion
- public DetectDocumentTextResult 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.