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