Class AzureOpenAIVectorizerParameters
java.lang.Object
com.azure.search.documents.indexes.models.AzureOpenAIVectorizerParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureOpenAIVectorizerParameters>
public class AzureOpenAIVectorizerParameters
extends Object
implements com.azure.json.JsonSerializable<AzureOpenAIVectorizerParameters>
Specifies the parameters for connecting to the Azure OpenAI resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureOpenAIVectorizerParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureOpenAIVectorizerParameters from the JsonReader.Get the apiKey property: API key of the designated Azure OpenAI resource.Get the authIdentity property: The user-assigned managed identity used for outbound connections.Get the deploymentName property: ID of the Azure OpenAI model deployment on the designated resource.Get the modelName property: The name of the embedding model that is deployed at the provided deploymentId path.Get the resourceUrl property: The resource URI of the Azure OpenAI resource.Set the apiKey property: API key of the designated Azure OpenAI resource.setAuthIdentity(SearchIndexerDataIdentity authIdentity) Set the authIdentity property: The user-assigned managed identity used for outbound connections.setDeploymentName(String deploymentName) Set the deploymentName property: ID of the Azure OpenAI model deployment on the designated resource.setModelName(AzureOpenAIModelName modelName) Set the modelName property: The name of the embedding model that is deployed at the provided deploymentId path.setResourceUrl(String resourceUrl) Set the resourceUrl property: The resource URI of the Azure OpenAI resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.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
-
AzureOpenAIVectorizerParameters
public AzureOpenAIVectorizerParameters()Creates an instance of AzureOpenAIVectorizerParameters class.
-
-
Method Details
-
getResourceUrl
Get the resourceUrl property: The resource URI of the Azure OpenAI resource.- Returns:
- the resourceUrl value.
-
setResourceUrl
Set the resourceUrl property: The resource URI of the Azure OpenAI resource.- Parameters:
resourceUrl- the resourceUrl value to set.- Returns:
- the AzureOpenAIVectorizerParameters object itself.
-
getDeploymentName
Get the deploymentName property: ID of the Azure OpenAI model deployment on the designated resource.- Returns:
- the deploymentName value.
-
setDeploymentName
Set the deploymentName property: ID of the Azure OpenAI model deployment on the designated resource.- Parameters:
deploymentName- the deploymentName value to set.- Returns:
- the AzureOpenAIVectorizerParameters object itself.
-
getApiKey
Get the apiKey property: API key of the designated Azure OpenAI resource.- Returns:
- the apiKey value.
-
setApiKey
Set the apiKey property: API key of the designated Azure OpenAI resource.- Parameters:
apiKey- the apiKey value to set.- Returns:
- the AzureOpenAIVectorizerParameters object itself.
-
getAuthIdentity
Get the authIdentity property: The user-assigned managed identity used for outbound connections.- Returns:
- the authIdentity value.
-
setAuthIdentity
Set the authIdentity property: The user-assigned managed identity used for outbound connections.- Parameters:
authIdentity- the authIdentity value to set.- Returns:
- the AzureOpenAIVectorizerParameters object itself.
-
getModelName
Get the modelName property: The name of the embedding model that is deployed at the provided deploymentId path.- Returns:
- the modelName value.
-
setModelName
Set the modelName property: The name of the embedding model that is deployed at the provided deploymentId path.- Parameters:
modelName- the modelName value to set.- Returns:
- the AzureOpenAIVectorizerParameters object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureOpenAIVectorizerParameters>- Throws:
IOException
-
fromJson
public static AzureOpenAIVectorizerParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureOpenAIVectorizerParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureOpenAIVectorizerParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AzureOpenAIVectorizerParameters.
-