@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DocumentText extends Object implements Serializable, Cloneable, StructuredPojo
The text of the document.
Constructor and Description |
---|
DocumentText() |
Modifier and Type | Method and Description |
---|---|
DocumentText |
clone() |
boolean |
equals(Object obj) |
List<Highlight> |
getHighlights()
Highlights in the document text.
|
String |
getText()
Text in the document.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHighlights(Collection<Highlight> highlights)
Highlights in the document text.
|
void |
setText(String text)
Text in the document.
|
String |
toString()
Returns a string representation of this object.
|
DocumentText |
withHighlights(Collection<Highlight> highlights)
Highlights in the document text.
|
DocumentText |
withHighlights(Highlight... highlights)
Highlights in the document text.
|
DocumentText |
withText(String text)
Text in the document.
|
public List<Highlight> getHighlights()
Highlights in the document text.
public void setHighlights(Collection<Highlight> highlights)
Highlights in the document text.
highlights
- Highlights in the document text.public DocumentText withHighlights(Highlight... highlights)
Highlights in the document text.
NOTE: This method appends the values to the existing list (if any). Use
setHighlights(java.util.Collection)
or withHighlights(java.util.Collection)
if you want to
override the existing values.
highlights
- Highlights in the document text.public DocumentText withHighlights(Collection<Highlight> highlights)
Highlights in the document text.
highlights
- Highlights in the document text.public void setText(String text)
Text in the document.
text
- Text in the document.public String getText()
Text in the document.
public DocumentText withText(String text)
Text in the document.
text
- Text in the document.public String toString()
toString
in class Object
Object.toString()
public DocumentText clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.