WebKnowledgeSourceDomain Class

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

Implements

public final class WebKnowledgeSourceDomain
implements JsonSerializable<WebKnowledgeSourceDomain>

Configuration for web knowledge source domain.

Constructor Summary

Constructor Description
WebKnowledgeSourceDomain(String address)

Creates an instance of WebKnowledgeSourceDomain class.

Method Summary

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

Reads an instance of WebKnowledgeSourceDomain from the JsonReader.

String getAddress()

Get the address property: The address of the domain.

Boolean isIncludeSubpages()

Get the includeSubpages property: Whether or not to include subpages from this domain.

WebKnowledgeSourceDomain setIncludeSubpages(Boolean includeSubpages)

Set the includeSubpages property: Whether or not to include subpages from this domain.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

WebKnowledgeSourceDomain

public WebKnowledgeSourceDomain(String address)

Creates an instance of WebKnowledgeSourceDomain class.

Parameters:

address - the address value to set.

Method Details

fromJson

public static WebKnowledgeSourceDomain fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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

Parameters:

jsonWriter

Throws:

Applies to