Class SuggestRequest

    • Constructor Detail

      • SuggestRequest

        public SuggestRequest()
    • Method Detail

      • setQuery

        public void setQuery​(String query)

        Specifies the string for which you want to get suggestions.

        Parameters:
        query - Specifies the string for which you want to get suggestions.
      • getQuery

        public String getQuery()

        Specifies the string for which you want to get suggestions.

        Returns:
        Specifies the string for which you want to get suggestions.
      • withQuery

        public SuggestRequest withQuery​(String query)

        Specifies the string for which you want to get suggestions.

        Parameters:
        query - Specifies the string for which you want to get suggestions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setSuggester

        public void setSuggester​(String suggester)

        Specifies the name of the suggester to use to find suggested matches.

        Parameters:
        suggester - Specifies the name of the suggester to use to find suggested matches.
      • getSuggester

        public String getSuggester()

        Specifies the name of the suggester to use to find suggested matches.

        Returns:
        Specifies the name of the suggester to use to find suggested matches.
      • withSuggester

        public SuggestRequest withSuggester​(String suggester)

        Specifies the name of the suggester to use to find suggested matches.

        Parameters:
        suggester - Specifies the name of the suggester to use to find suggested matches.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setSize

        public void setSize​(Long size)

        Specifies the maximum number of suggestions to return.

        Parameters:
        size - Specifies the maximum number of suggestions to return.
      • getSize

        public Long getSize()

        Specifies the maximum number of suggestions to return.

        Returns:
        Specifies the maximum number of suggestions to return.
      • withSize

        public SuggestRequest withSize​(Long size)

        Specifies the maximum number of suggestions to return.

        Parameters:
        size - Specifies the maximum number of suggestions to return.
        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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object