Class WebKnowledgeSourceDomain

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

public final class WebKnowledgeSourceDomain extends Object implements com.azure.json.JsonSerializable<WebKnowledgeSourceDomain>
Configuration for web knowledge source domain.
  • Constructor Details

    • WebKnowledgeSourceDomain

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

    • getAddress

      public String getAddress()
      Get the address property: The address of the domain.
      Returns:
      the address value.
    • isIncludeSubpages

      public Boolean isIncludeSubpages()
      Get the includeSubpages property: Whether or not to include subpages from this domain.
      Returns:
      the includeSubpages value.
    • setIncludeSubpages

      public WebKnowledgeSourceDomain setIncludeSubpages(Boolean includeSubpages)
      Set the includeSubpages property: Whether or not to include subpages from this domain.
      Parameters:
      includeSubpages - the includeSubpages value to set.
      Returns:
      the WebKnowledgeSourceDomain 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<WebKnowledgeSourceDomain>
      Throws:
      IOException
    • fromJson

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