@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectDocumentTextResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DetectDocumentTextResult() |
Modifier and Type | Method and Description |
---|---|
DetectDocumentTextResult |
clone() |
boolean |
equals(Object obj) |
List<Block> |
getBlocks()
An array of Block objects containing the text detected in the document.
|
DocumentMetadata |
getDocumentMetadata()
Metadata about the document.
|
int |
hashCode() |
void |
setBlocks(Collection<Block> blocks)
An array of Block objects containing the text detected in the document.
|
void |
setDocumentMetadata(DocumentMetadata documentMetadata)
Metadata about the document.
|
String |
toString()
Returns a string representation of this object.
|
DetectDocumentTextResult |
withBlocks(Block... blocks)
An array of Block objects containing the text detected in the document.
|
DetectDocumentTextResult |
withBlocks(Collection<Block> blocks)
An array of Block objects containing the text detected in the document.
|
DetectDocumentTextResult |
withDocumentMetadata(DocumentMetadata documentMetadata)
Metadata about the document.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setDocumentMetadata(DocumentMetadata documentMetadata)
Metadata about the document. Contains the number of pages that are detected in the document.
documentMetadata
- Metadata about the document. Contains the number of pages that are detected in the document.public DocumentMetadata getDocumentMetadata()
Metadata about the document. Contains the number of pages that are detected in the document.
public DetectDocumentTextResult withDocumentMetadata(DocumentMetadata documentMetadata)
Metadata about the document. Contains the number of pages that are detected in the document.
documentMetadata
- Metadata about the document. Contains the number of pages that are detected in the document.public List<Block> getBlocks()
An array of Block objects containing the text detected in the document.
public void setBlocks(Collection<Block> blocks)
An array of Block objects containing the text detected in the document.
blocks
- An array of Block objects containing the text detected in the document.public DetectDocumentTextResult withBlocks(Block... blocks)
An array of Block objects containing the text detected in the document.
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
- An array of Block objects containing the text detected in the document.public DetectDocumentTextResult withBlocks(Collection<Block> blocks)
An array of Block objects containing the text detected in the document.
blocks
- An array of Block objects containing the text detected in the document.public String toString()
toString
in class Object
Object.toString()
public DetectDocumentTextResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.