Class GeminiInteractionsClient.Builder
java.lang.Object
io.github.glaforge.gemini.interactions.GeminiInteractionsClient.Builder
- Enclosing class:
GeminiInteractionsClient
Builder for
GeminiInteractionsClient.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the API key.Sets the base URL.build()Builds the GeminiInteractionsClient.httpClient(HttpClient httpClient) Sets the HTTP client.Sets the API version.
-
Constructor Details
-
Builder
public Builder()Creates a new Builder.
-
-
Method Details
-
baseUrl
Sets the base URL.- Parameters:
baseUrl- The base URL.- Returns:
- This builder.
-
version
Sets the API version.- Parameters:
version- The API version.- Returns:
- This builder.
-
apiKey
Sets the API key.- Parameters:
apiKey- The API key.- Returns:
- This builder.
-
httpClient
Sets the HTTP client.- Parameters:
httpClient- The HTTP client.- Returns:
- This builder.
-
build
Builds the GeminiInteractionsClient.- Returns:
- The GeminiInteractionsClient.
- Throws:
IllegalStateException- If the API key is not provided.
-