Class IqClientBuilder

java.lang.Object
org.sonatype.gradle.plugins.scan.nexus.iq.client.IqClientBuilder

public class IqClientBuilder extends Object
Builder for creating IqClient instances.
Since:
1.0.1
  • Method Details

    • create

      public static IqClientBuilder create()
      Creates a new builder instance.
      Returns:
      a new IqClientBuilder
    • withServerConfig

      public IqClientBuilder withServerConfig(ServerConfig serverConfig)
      Sets the server configuration.
      Parameters:
      serverConfig - the server configuration containing address and authentication
      Returns:
      this builder
    • withLogger

      public IqClientBuilder withLogger(org.slf4j.Logger logger)
      Sets the logger for the client.
      Parameters:
      logger - the logger to use
      Returns:
      this builder
    • withUserAgent

      public IqClientBuilder withUserAgent(String userAgent)
      Sets the user agent string for HTTP requests.
      Parameters:
      userAgent - the user agent string
      Returns:
      this builder
    • build

      public IqClient build()
      Builds the IqClient instance.
      Returns:
      a new IqClient configured with the provided settings