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 Summary
ConstructorsConstructorDescriptionWebKnowledgeSourceDomain(String address) Creates an instance of WebKnowledgeSourceDomain class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WebKnowledgeSourceDomainfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WebKnowledgeSourceDomain from the JsonReader.Get the address property: The address of the domain.Get the includeSubpages property: Whether or not to include subpages from this domain.setIncludeSubpages(Boolean includeSubpages) Set the includeSubpages property: Whether or not to include subpages from this domain.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WebKnowledgeSourceDomain
Creates an instance of WebKnowledgeSourceDomain class.- Parameters:
address- the address value to set.
-
-
Method Details
-
getAddress
Get the address property: The address of the domain.- Returns:
- the address value.
-
isIncludeSubpages
Get the includeSubpages property: Whether or not to include subpages from this domain.- Returns:
- the includeSubpages value.
-
setIncludeSubpages
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
- Specified by:
toJsonin interfacecom.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.
-