WebKnowledgeSourceDomains Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.WebKnowledgeSourceDomains

Implements

public final class WebKnowledgeSourceDomains
implements JsonSerializable<WebKnowledgeSourceDomains>

Domain allow/block configuration for web knowledge source.

Constructor Summary

Constructor Description
WebKnowledgeSourceDomains()

Creates an instance of WebKnowledgeSourceDomains class.

Method Summary

Modifier and Type Method and Description
static WebKnowledgeSourceDomains fromJson(JsonReader jsonReader)

Reads an instance of WebKnowledgeSourceDomains from the JsonReader.

List<WebKnowledgeSourceDomain> getAllowedDomains()

Get the allowedDomains property: Domains that are allowed for web results.

List<WebKnowledgeSourceDomain> getBlockedDomains()

Get the blockedDomains property: Domains that are blocked from web results.

WebKnowledgeSourceDomains setAllowedDomains(List<WebKnowledgeSourceDomain> allowedDomains)

Set the allowedDomains property: Domains that are allowed for web results.

WebKnowledgeSourceDomains setAllowedDomains(WebKnowledgeSourceDomain[] allowedDomains)

Set the allowedDomains property: Domains that are allowed for web results.

WebKnowledgeSourceDomains setBlockedDomains(List<WebKnowledgeSourceDomain> blockedDomains)

Set the blockedDomains property: Domains that are blocked from web results.

WebKnowledgeSourceDomains setBlockedDomains(WebKnowledgeSourceDomain[] blockedDomains)

Set the blockedDomains property: Domains that are blocked from web results.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

WebKnowledgeSourceDomains

public WebKnowledgeSourceDomains()

Creates an instance of WebKnowledgeSourceDomains class.

Method Details

fromJson

public static WebKnowledgeSourceDomains fromJson(JsonReader jsonReader)

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.

getAllowedDomains

public List<WebKnowledgeSourceDomain> getAllowedDomains()

Get the allowedDomains property: Domains that are allowed for web results.

Returns:

the allowedDomains value.

getBlockedDomains

public List<WebKnowledgeSourceDomain> getBlockedDomains()

Get the blockedDomains property: Domains that are blocked from web results.

Returns:

the blockedDomains 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.

setAllowedDomains

public WebKnowledgeSourceDomains setAllowedDomains(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.

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.

setBlockedDomains

public WebKnowledgeSourceDomains setBlockedDomains(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 JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to