WebKnowledgeSourceDomains Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. WebKnowledgeSourceDomains
- com.
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 Web |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Web |
fromJson(JsonReader jsonReader)
Reads an instance of Web |
|
List<Web |
getAllowedDomains()
Get the allowed |
|
List<Web |
getBlockedDomains()
Get the blocked |
|
Web |
setAllowedDomains(List<WebKnowledgeSourceDomain> allowedDomains)
Set the allowed |
|
Web |
setAllowedDomains(WebKnowledgeSourceDomain[] allowedDomains)
Set the allowed |
|
Web |
setBlockedDomains(List<WebKnowledgeSourceDomain> blockedDomains)
Set the blocked |
|
Web |
setBlockedDomains(WebKnowledgeSourceDomain[] blockedDomains)
Set the blocked |
|
Json |
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:
Returns:
Throws:
getAllowedDomains
public List<WebKnowledgeSourceDomain> getAllowedDomains()
Get the allowedDomains property: Domains that are allowed for web results.
Returns:
getBlockedDomains
public List<WebKnowledgeSourceDomain> getBlockedDomains()
Get the blockedDomains property: Domains that are blocked from web results.
Returns:
setAllowedDomains
public WebKnowledgeSourceDomains setAllowedDomains(List<WebKnowledgeSourceDomain> allowedDomains)
Set the allowedDomains property: Domains that are allowed for web results.
Parameters:
Returns:
setAllowedDomains
public WebKnowledgeSourceDomains setAllowedDomains(WebKnowledgeSourceDomain[] allowedDomains)
Set the allowedDomains property: Domains that are allowed for web results.
Parameters:
Returns:
setBlockedDomains
public WebKnowledgeSourceDomains setBlockedDomains(List<WebKnowledgeSourceDomain> blockedDomains)
Set the blockedDomains property: Domains that are blocked from web results.
Parameters:
Returns:
setBlockedDomains
public WebKnowledgeSourceDomains setBlockedDomains(WebKnowledgeSourceDomain[] blockedDomains)
Set the blockedDomains property: Domains that are blocked from web results.
Parameters:
Returns: