@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SuggestionMatch extends Object implements Serializable, Cloneable, StructuredPojo
An autocomplete suggestion that matches the query string specified in a SuggestRequest
.
Constructor and Description |
---|
SuggestionMatch() |
Modifier and Type | Method and Description |
---|---|
SuggestionMatch |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The document ID of the suggested document.
|
Long |
getScore()
The relevance score of a suggested match.
|
String |
getSuggestion()
The string that matches the query string specified in the
SuggestRequest . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
The document ID of the suggested document.
|
void |
setScore(Long score)
The relevance score of a suggested match.
|
void |
setSuggestion(String suggestion)
The string that matches the query string specified in the
SuggestRequest . |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SuggestionMatch |
withId(String id)
The document ID of the suggested document.
|
SuggestionMatch |
withScore(Long score)
The relevance score of a suggested match.
|
SuggestionMatch |
withSuggestion(String suggestion)
The string that matches the query string specified in the
SuggestRequest . |
public void setSuggestion(String suggestion)
The string that matches the query string specified in the SuggestRequest
.
suggestion
- The string that matches the query string specified in the SuggestRequest
.public String getSuggestion()
The string that matches the query string specified in the SuggestRequest
.
SuggestRequest
.public SuggestionMatch withSuggestion(String suggestion)
The string that matches the query string specified in the SuggestRequest
.
suggestion
- The string that matches the query string specified in the SuggestRequest
.public void setScore(Long score)
The relevance score of a suggested match.
score
- The relevance score of a suggested match.public Long getScore()
The relevance score of a suggested match.
public SuggestionMatch withScore(Long score)
The relevance score of a suggested match.
score
- The relevance score of a suggested match.public void setId(String id)
The document ID of the suggested document.
id
- The document ID of the suggested document.public String getId()
The document ID of the suggested document.
public SuggestionMatch withId(String id)
The document ID of the suggested document.
id
- The document ID of the suggested document.public String toString()
toString
in class Object
Object.toString()
public SuggestionMatch clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.