Class AzureFoundryPluginOptions.Builder

java.lang.Object
com.google.genkit.plugins.azurefoundry.AzureFoundryPluginOptions.Builder
Enclosing class:
AzureFoundryPluginOptions

public static class AzureFoundryPluginOptions.Builder extends Object
Builder for AzureFoundryPluginOptions.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • endpoint

      public AzureFoundryPluginOptions.Builder endpoint(String 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

      public AzureFoundryPluginOptions.Builder apiKey(String 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

      public AzureFoundryPluginOptions.Builder deployment(String deployment)
      Sets the deployment name.
      Parameters:
      deployment - the deployment name
      Returns:
      this builder
    • apiVersion

      public AzureFoundryPluginOptions.Builder apiVersion(String apiVersion)
      Sets the API version.
      Parameters:
      apiVersion - the API version (default: "2024-10-01-preview")
      Returns:
      this builder
    • build

      public AzureFoundryPluginOptions build()
      Builds the options.
      Returns:
      the options