Class AIServices
java.lang.Object
com.azure.search.documents.indexes.models.AIServices
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AIServices>
Parameters for Azure Blob Storage knowledge source.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AIServicesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AIServices from the JsonReader.Get the apiKey property: The API key for accessing AI Services.getUri()Get the uri property: The URI of the AI Services endpoint.Set the apiKey property: The API key for accessing AI Services.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
-
AIServices
Creates an instance of AIServices class.- Parameters:
uri- the uri value to set.
-
-
Method Details
-
getUri
Get the uri property: The URI of the AI Services endpoint.- Returns:
- the uri value.
-
getApiKey
Get the apiKey property: The API key for accessing AI Services.- Returns:
- the apiKey value.
-
setApiKey
Set the apiKey property: The API key for accessing AI Services.- Parameters:
apiKey- the apiKey value to set.- Returns:
- the AIServices object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AIServices>- Throws:
IOException
-
fromJson
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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AIServices.
-