AiServices Class

  • java.lang.Object
    • com.azure.search.documents.knowledgebases.models.AiServices

Implements

public final class AiServices
implements JsonSerializable<AiServices>

Parameters for AI Services.

Constructor Summary

Constructor Description
AiServices(String url)

Creates an instance of AiServices class.

Method Summary

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

Reads an instance of AiServices from the JsonReader.

String getApiKey()

Get the apiKey property: The API key for accessing AI Services.

String getUrl()

Get the url property: The URI of the AI Services endpoint.

AiServices setApiKey(String apiKey)

Set the apiKey property: The API key for accessing AI Services.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

AiServices

public AiServices(String url)

Creates an instance of AiServices class.

Parameters:

url - the url value to set.

Method Details

fromJson

public static AiServices fromJson(JsonReader jsonReader)

Reads an instance of AiServices from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AiServices 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.

getApiKey

public String getApiKey()

Get the apiKey property: The API key for accessing AI Services.

Returns:

the apiKey value.

getUrl

public String getUrl()

Get the url property: The URI of the AI Services endpoint.

Returns:

the url value.

setApiKey

public AiServices setApiKey(String apiKey)

Set the apiKey property: The API key for accessing AI Services.

Parameters:

apiKey - the apiKey value to set.

Returns:

the AiServices object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to