Class KnowledgeBaseRemoteSharePointReference

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

public final class KnowledgeBaseRemoteSharePointReference extends KnowledgeBaseReference
Represents a remote SharePoint document reference.
  • Constructor Details

    • KnowledgeBaseRemoteSharePointReference

      public KnowledgeBaseRemoteSharePointReference(String id, int activitySource)
      Creates an instance of KnowledgeBaseRemoteSharePointReference 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.
    • getWebUrl

      public String getWebUrl()
      Get the webUrl property: The url the reference data originated from.
      Returns:
      the webUrl value.
    • setWebUrl

      Set the webUrl property: The url the reference data originated from.
      Parameters:
      webUrl - the webUrl value to set.
      Returns:
      the KnowledgeBaseRemoteSharePointReference object itself.
    • getSearchSensitivityLabelInfo

      public SharePointSensitivityLabelInfo getSearchSensitivityLabelInfo()
      Get the searchSensitivityLabelInfo property: Information about the sensitivity label applied to a SharePoint document.
      Returns:
      the searchSensitivityLabelInfo value.
    • setSearchSensitivityLabelInfo

      public KnowledgeBaseRemoteSharePointReference setSearchSensitivityLabelInfo(SharePointSensitivityLabelInfo searchSensitivityLabelInfo)
      Set the searchSensitivityLabelInfo property: Information about the sensitivity label applied to a SharePoint document.
      Parameters:
      searchSensitivityLabelInfo - the searchSensitivityLabelInfo value to set.
      Returns:
      the KnowledgeBaseRemoteSharePointReference object itself.
    • setSourceData

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