@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SuggestionTextWithHighlights extends Object implements Serializable, Cloneable, StructuredPojo
Provides text and information about where to highlight the query suggestion text.
Constructor and Description |
---|
SuggestionTextWithHighlights() |
Modifier and Type | Method and Description |
---|---|
SuggestionTextWithHighlights |
clone() |
boolean |
equals(Object obj) |
List<SuggestionHighlight> |
getHighlights()
The beginning and end of the query suggestion text that should be highlighted.
|
String |
getText()
The query suggestion text to display to the user.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHighlights(Collection<SuggestionHighlight> highlights)
The beginning and end of the query suggestion text that should be highlighted.
|
void |
setText(String text)
The query suggestion text to display to the user.
|
String |
toString()
Returns a string representation of this object.
|
SuggestionTextWithHighlights |
withHighlights(Collection<SuggestionHighlight> highlights)
The beginning and end of the query suggestion text that should be highlighted.
|
SuggestionTextWithHighlights |
withHighlights(SuggestionHighlight... highlights)
The beginning and end of the query suggestion text that should be highlighted.
|
SuggestionTextWithHighlights |
withText(String text)
The query suggestion text to display to the user.
|
public void setText(String text)
The query suggestion text to display to the user.
text
- The query suggestion text to display to the user.public String getText()
The query suggestion text to display to the user.
public SuggestionTextWithHighlights withText(String text)
The query suggestion text to display to the user.
text
- The query suggestion text to display to the user.public List<SuggestionHighlight> getHighlights()
The beginning and end of the query suggestion text that should be highlighted.
public void setHighlights(Collection<SuggestionHighlight> highlights)
The beginning and end of the query suggestion text that should be highlighted.
highlights
- The beginning and end of the query suggestion text that should be highlighted.public SuggestionTextWithHighlights withHighlights(SuggestionHighlight... highlights)
The beginning and end of the query suggestion text that should be highlighted.
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
- The beginning and end of the query suggestion text that should be highlighted.public SuggestionTextWithHighlights withHighlights(Collection<SuggestionHighlight> highlights)
The beginning and end of the query suggestion text that should be highlighted.
highlights
- The beginning and end of the query suggestion text that should be highlighted.public String toString()
toString
in class Object
Object.toString()
public SuggestionTextWithHighlights clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.