Class QueryUtterancesResults


  • public final class QueryUtterancesResults
    extends Object
    Suggested utterances where the detector can be applicable.
    • Constructor Detail

      • QueryUtterancesResults

        public QueryUtterancesResults()
    • Method Detail

      • query

        public String query()
        Get the query property: Search Query.
        Returns:
        the query value.
      • withQuery

        public QueryUtterancesResults withQuery​(String query)
        Set the query property: Search Query.
        Parameters:
        query - the query value to set.
        Returns:
        the QueryUtterancesResults object itself.
      • results

        public List<QueryUtterancesResult> results()
        Get the results property: Array of utterance results for search query.
        Returns:
        the results value.
      • withResults

        public QueryUtterancesResults withResults​(List<QueryUtterancesResult> results)
        Set the results property: Array of utterance results for search query.
        Parameters:
        results - the results value to set.
        Returns:
        the QueryUtterancesResults object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.