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:
  • Constructor Details

    • SuggestionMatch

      public SuggestionMatch()
  • Method Details

    • 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 the SuggestRequest.
    • 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 the SuggestRequest.
      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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public SuggestionMatch clone()
      Overrides:
      clone in class Object