Class KnowledgeRetrievalSemanticIntent

java.lang.Object
com.azure.search.documents.knowledgebases.models.KnowledgeRetrievalIntent
com.azure.search.documents.knowledgebases.models.KnowledgeRetrievalSemanticIntent
All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeRetrievalIntent>

public final class KnowledgeRetrievalSemanticIntent extends KnowledgeRetrievalIntent
The KnowledgeRetrievalSemanticIntent model.
  • Constructor Details

    • KnowledgeRetrievalSemanticIntent

      public KnowledgeRetrievalSemanticIntent(String search)
      Creates an instance of KnowledgeRetrievalSemanticIntent class.
      Parameters:
      search - the search value to set.
  • Method Details

    • getType

      public KnowledgeRetrievalIntentType getType()
      Get the type property: The type of the intent.
      Overrides:
      getType in class KnowledgeRetrievalIntent
      Returns:
      the type value.
    • getSearch

      public String getSearch()
      Get the search property: The semantic query to execute.
      Returns:
      the search value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<KnowledgeRetrievalIntent>
      Overrides:
      toJson in class KnowledgeRetrievalIntent
      Throws:
      IOException
    • fromJson

      public static KnowledgeRetrievalSemanticIntent fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of KnowledgeRetrievalSemanticIntent from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of KnowledgeRetrievalSemanticIntent if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the KnowledgeRetrievalSemanticIntent.