Package glair.vision.model
Class VisionSettings.Builder
java.lang.Object
glair.vision.model.VisionSettings.Builder
- Enclosing class:
- VisionSettings
A builder class for creating instances of VisionSettings with specific
configurations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the API key for authentication with the service.apiVersion(String apiVersion) Sets the API version for communication with the service.Sets the base URL for the vision-related service.build()Builds a new instance of VisionSettings with the configured options.Sets the password for authentication with the service (if applicable).Sets the username for authentication with the service (if applicable).
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseUrl
Sets the base URL for the vision-related service.- Parameters:
baseUrl- The base URL.- Returns:
- The builder instance for method chaining.
-
apiVersion
Sets the API version for communication with the service.- Parameters:
apiVersion- The API version.- Returns:
- The builder instance for method chaining.
-
apiKey
Sets the API key for authentication with the service.- Parameters:
apiKey- The API key.- Returns:
- The builder instance for method chaining.
-
username
Sets the username for authentication with the service (if applicable).- Parameters:
username- The username.- Returns:
- The builder instance for method chaining.
-
password
Sets the password for authentication with the service (if applicable).- Parameters:
password- The password.- Returns:
- The builder instance for method chaining.
-
build
Builds a new instance of VisionSettings with the configured options.- Returns:
- The constructed VisionSettings instance.
-