Class WebKnowledgeSourceDomains

java.lang.Object
com.azure.search.documents.indexes.models.WebKnowledgeSourceDomains
All Implemented Interfaces:
com.azure.json.JsonSerializable<WebKnowledgeSourceDomains>

public final class WebKnowledgeSourceDomains extends Object implements com.azure.json.JsonSerializable<WebKnowledgeSourceDomains>
Domain allow/block configuration for web knowledge source.
  • Constructor Details

    • WebKnowledgeSourceDomains

      public WebKnowledgeSourceDomains()
      Creates an instance of WebKnowledgeSourceDomains class.
  • Method Details

    • getAllowedDomains

      public List<WebKnowledgeSourceDomain> getAllowedDomains()
      Get the allowedDomains property: Domains that are allowed for web results.
      Returns:
      the allowedDomains value.
    • setAllowedDomains

      public WebKnowledgeSourceDomains setAllowedDomains(List<WebKnowledgeSourceDomain> allowedDomains)
      Set the allowedDomains property: Domains that are allowed for web results.
      Parameters:
      allowedDomains - the allowedDomains value to set.
      Returns:
      the WebKnowledgeSourceDomains object itself.
    • getBlockedDomains

      public List<WebKnowledgeSourceDomain> getBlockedDomains()
      Get the blockedDomains property: Domains that are blocked from web results.
      Returns:
      the blockedDomains value.
    • setBlockedDomains

      public WebKnowledgeSourceDomains setBlockedDomains(List<WebKnowledgeSourceDomain> blockedDomains)
      Set the blockedDomains property: Domains that are blocked from web results.
      Parameters:
      blockedDomains - the blockedDomains value to set.
      Returns:
      the WebKnowledgeSourceDomains 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<WebKnowledgeSourceDomains>
      Throws:
      IOException
    • fromJson

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