Class SuggestionMatch
java.lang.Object
com.amazonaws.services.cloudsearchdomain.model.SuggestionMatch
- All Implemented Interfaces:
Serializable
,Cloneable
An autocomplete suggestion that matches the query string specified in a
SuggestRequest
.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getId()
The document ID of the suggested document.getScore()
The relevance score of a suggested match.The string that matches the query string specified in theSuggestRequest
.int
hashCode()
void
The document ID of the suggested document.void
The relevance score of a suggested match.void
setSuggestion
(String suggestion) The string that matches the query string specified in theSuggestRequest
.toString()
Returns a string representation of this object; useful for testing and debugging.The document ID of the suggested document.The relevance score of a suggested match.withSuggestion
(String suggestion) The string that matches the query string specified in theSuggestRequest
.
-
Constructor Details
-
SuggestionMatch
public SuggestionMatch()
-
-
Method Details
-
setSuggestion
The string that matches the query string specified in the
SuggestRequest
.- Parameters:
suggestion
- The string that matches the query string specified in theSuggestRequest
.
-
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
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
The relevance score of a suggested match.
- Parameters:
score
- The relevance score of a suggested match.
-
getScore
The relevance score of a suggested match.
- Returns:
- The relevance score of a suggested match.
-
withScore
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
The document ID of the suggested document.
- Parameters:
id
- The document ID of the suggested document.
-
getId
The document ID of the suggested document.
- Returns:
- The document ID of the suggested document.
-
withId
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-