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 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 theSuggestRequest
.int
hashCode()
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 theSuggestRequest
.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 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SuggestionMatch clone()
-
-