Class AzureFoundryPluginOptions.Builder
java.lang.Object
com.google.genkit.plugins.azurefoundry.AzureFoundryPluginOptions.Builder
- Enclosing class:
AzureFoundryPluginOptions
Builder for AzureFoundryPluginOptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the API key for authentication.apiVersion(String apiVersion) Sets the API version.build()Builds the options.credential(com.azure.core.credential.TokenCredential credential) Sets the Azure credential for authentication (alternative to API key).deployment(String deployment) Sets the deployment name.Sets the Azure AI Foundry endpoint URL.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpoint
Sets the Azure AI Foundry endpoint URL.- Parameters:
endpoint- the endpoint URL (e.g., "https://my-project.eastus.models.ai.azure.com")- Returns:
- this builder
-
apiKey
Sets the API key for authentication.- Parameters:
apiKey- the API key- Returns:
- this builder
-
credential
public AzureFoundryPluginOptions.Builder credential(com.azure.core.credential.TokenCredential credential) Sets the Azure credential for authentication (alternative to API key).- Parameters:
credential- the Azure token credential- Returns:
- this builder
-
deployment
Sets the deployment name.- Parameters:
deployment- the deployment name- Returns:
- this builder
-
apiVersion
Sets the API version.- Parameters:
apiVersion- the API version (default: "2024-10-01-preview")- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-