Class KnowledgeBaseWebReference

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

public final class KnowledgeBaseWebReference extends KnowledgeBaseReference
Represents a web document reference.
  • Constructor Details

    • KnowledgeBaseWebReference

      public KnowledgeBaseWebReference(String id, int activitySource)
      Creates an instance of KnowledgeBaseWebReference class.
      Parameters:
      id - the id value to set.
      activitySource - the activitySource value to set.
  • Method Details

    • getType

      public String getType()
      Get the type property: The type of the reference.
      Overrides:
      getType in class KnowledgeBaseReference
      Returns:
      the type value.
    • getUrl

      public String getUrl()
      Get the url property: The url the reference data originated from.
      Returns:
      the url value.
    • setUrl

      public KnowledgeBaseWebReference setUrl(String url)
      Set the url property: The url the reference data originated from.
      Parameters:
      url - the url value to set.
      Returns:
      the KnowledgeBaseWebReference object itself.
    • getTitle

      public String getTitle()
      Get the title property: The title of the web document.
      Returns:
      the title value.
    • setTitle

      public KnowledgeBaseWebReference setTitle(String title)
      Set the title property: The title of the web document.
      Parameters:
      title - the title value to set.
      Returns:
      the KnowledgeBaseWebReference object itself.
    • setSourceData

      public KnowledgeBaseWebReference setSourceData(Map<String,Object> sourceData)
      Set the sourceData property: Dictionary of <any>.
      Overrides:
      setSourceData in class KnowledgeBaseReference
      Parameters:
      sourceData - the sourceData value to set.
      Returns:
      the KnowledgeBaseReference object itself.
    • setRerankerScore

      public KnowledgeBaseWebReference setRerankerScore(Float rerankerScore)
      Set the rerankerScore property: The reranker score for the document reference.
      Overrides:
      setRerankerScore in class KnowledgeBaseReference
      Parameters:
      rerankerScore - the rerankerScore value to set.
      Returns:
      the KnowledgeBaseReference object itself.
    • toJson

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

      public static KnowledgeBaseWebReference fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of KnowledgeBaseWebReference from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of KnowledgeBaseWebReference 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 KnowledgeBaseWebReference.