Class SuggestionMatch
- java.lang.Object
-
- com.amazonaws.services.cloudsearchdomain.model.SuggestionMatch
-
- All Implemented Interfaces:
Serializable,Cloneable
public class SuggestionMatch extends Object implements Serializable, Cloneable
An autocomplete suggestion that matches the query string specified in a
SuggestRequest.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SuggestionMatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SuggestionMatchclone()booleanequals(Object obj)StringgetId()The document ID of the suggested document.LonggetScore()The relevance score of a suggested match.StringgetSuggestion()The string that matches the query string specified in theSuggestRequest.inthashCode()voidsetId(String id)The document ID of the suggested document.voidsetScore(Long score)The relevance score of a suggested match.voidsetSuggestion(String suggestion)The string that matches the query string specified in theSuggestRequest.StringtoString()Returns a string representation of this object; useful for testing and debugging.SuggestionMatchwithId(String id)The document ID of the suggested document.SuggestionMatchwithScore(Long score)The relevance score of a suggested match.SuggestionMatchwithSuggestion(String suggestion)The string that matches the query string specified in theSuggestRequest.
-
-
-
Method Detail
-
setSuggestion
public void setSuggestion(String suggestion)
The string that matches the query string specified in the
SuggestRequest.- Parameters:
suggestion- The string that matches the query string specified in theSuggestRequest.
-
getSuggestion
public String getSuggestion()
The string that matches the query string specified in the
SuggestRequest.- Returns:
- The string that matches the query string specified in the
SuggestRequest.
-
withSuggestion
public SuggestionMatch withSuggestion(String suggestion)
The string that matches the query string specified in the
SuggestRequest.- Parameters:
suggestion- The string that matches the query string specified in theSuggestRequest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setScore
public void setScore(Long score)
The relevance score of a suggested match.
- Parameters:
score- The relevance score of a suggested match.
-
getScore
public Long getScore()
The relevance score of a suggested match.
- Returns:
- The relevance score of a suggested match.
-
withScore
public SuggestionMatch withScore(Long score)
The relevance score of a suggested match.
- Parameters:
score- The relevance score of a suggested match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setId
public void setId(String id)
The document ID of the suggested document.
- Parameters:
id- The document ID of the suggested document.
-
getId
public String getId()
The document ID of the suggested document.
- Returns:
- The document ID of the suggested document.
-
withId
public SuggestionMatch withId(String id)
The document ID of the suggested document.
- Parameters:
id- The document ID of the suggested document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SuggestionMatch clone()
-
-