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 Summary
ConstructorsConstructorDescriptionCreates an instance of WebKnowledgeSourceDomains class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WebKnowledgeSourceDomainsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WebKnowledgeSourceDomains from the JsonReader.Get the allowedDomains property: Domains that are allowed for web results.Get the blockedDomains property: Domains that are blocked from web results.setAllowedDomains(List<WebKnowledgeSourceDomain> allowedDomains) Set the allowedDomains property: Domains that are allowed for web results.setBlockedDomains(List<WebKnowledgeSourceDomain> blockedDomains) Set the blockedDomains property: Domains that are blocked from web results.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
-
WebKnowledgeSourceDomains
public WebKnowledgeSourceDomains()Creates an instance of WebKnowledgeSourceDomains class.
-
-
Method Details
-
getAllowedDomains
Get the allowedDomains property: Domains that are allowed for web results.- Returns:
- the allowedDomains value.
-
setAllowedDomains
Set the allowedDomains property: Domains that are allowed for web results.- Parameters:
allowedDomains- the allowedDomains value to set.- Returns:
- the WebKnowledgeSourceDomains object itself.
-
getBlockedDomains
Get the blockedDomains property: Domains that are blocked from web results.- Returns:
- the blockedDomains value.
-
setBlockedDomains
Set the blockedDomains property: Domains that are blocked from web results.- Parameters:
blockedDomains- the blockedDomains value to set.- Returns:
- the WebKnowledgeSourceDomains object itself.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-