Class IqClientBuilder
java.lang.Object
org.sonatype.gradle.plugins.scan.nexus.iq.client.IqClientBuilder
Builder for creating
IqClient instances.- Since:
- 1.0.1
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the IqClient instance.static IqClientBuildercreate()Creates a new builder instance.withLogger(org.slf4j.Logger logger) Sets the logger for the client.withServerConfig(ServerConfig serverConfig) Sets the server configuration.withUserAgent(String userAgent) Sets the user agent string for HTTP requests.
-
Method Details
-
create
Creates a new builder instance.- Returns:
- a new IqClientBuilder
-
withServerConfig
Sets the server configuration.- Parameters:
serverConfig- the server configuration containing address and authentication- Returns:
- this builder
-
withLogger
Sets the logger for the client.- Parameters:
logger- the logger to use- Returns:
- this builder
-
withUserAgent
Sets the user agent string for HTTP requests.- Parameters:
userAgent- the user agent string- Returns:
- this builder
-
build
Builds the IqClient instance.- Returns:
- a new IqClient configured with the provided settings
-