Package com.azure.ai.openai.models
Class OnYourDataVectorSearchApiKeyAuthenticationOptions
java.lang.Object
com.azure.ai.openai.models.OnYourDataVectorSearchAuthenticationOptions
com.azure.ai.openai.models.OnYourDataVectorSearchApiKeyAuthenticationOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OnYourDataVectorSearchAuthenticationOptions>
public final class OnYourDataVectorSearchApiKeyAuthenticationOptions
extends OnYourDataVectorSearchAuthenticationOptions
The authentication options for Azure OpenAI On Your Data when using an API key.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OnYourDataVectorSearchApiKeyAuthenticationOptions class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OnYourDataVectorSearchApiKeyAuthenticationOptions from the JsonReader.getKey()Get the key property: The API key to use for authentication.getType()Get the type property: The type of authentication to use.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter)
-
Constructor Details
-
OnYourDataVectorSearchApiKeyAuthenticationOptions
Creates an instance of OnYourDataVectorSearchApiKeyAuthenticationOptions class.- Parameters:
key- the key value to set.
-
-
Method Details
-
getType
Get the type property: The type of authentication to use.- Overrides:
getTypein classOnYourDataVectorSearchAuthenticationOptions- Returns:
- the type value.
-
getKey
Get the key property: The API key to use for authentication.- Returns:
- the key value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OnYourDataVectorSearchAuthenticationOptions>- Overrides:
toJsonin classOnYourDataVectorSearchAuthenticationOptions- Throws:
IOException
-
fromJson
public static OnYourDataVectorSearchApiKeyAuthenticationOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OnYourDataVectorSearchApiKeyAuthenticationOptions from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OnYourDataVectorSearchApiKeyAuthenticationOptions 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 OnYourDataVectorSearchApiKeyAuthenticationOptions.
-