Interface ExternalProxy.Builder

  • Method Details

    • server

      ExternalProxy.Builder server(String server)

      The hostname of the proxy server. Must be a valid DNS hostname (maximum 253 characters).

      Parameters:
      server - The hostname of the proxy server. Must be a valid DNS hostname (maximum 253 characters).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • port

      The port number of the proxy server. Valid range: 1-65535.

      Parameters:
      port - The port number of the proxy server. Valid range: 1-65535.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • domainPatterns

      ExternalProxy.Builder domainPatterns(Collection<String> domainPatterns)

      Optional array of domain patterns that should route through this specific proxy. Supports .example.com for subdomain matching (matches any subdomain of example.com) or example.com for exact domain matching. If omitted, this proxy acts as a catch-all for domains not matched by other proxies. Maximum 100 patterns per proxy, each up to 253 characters.

      Parameters:
      domainPatterns - Optional array of domain patterns that should route through this specific proxy. Supports .example.com for subdomain matching (matches any subdomain of example.com) or example.com for exact domain matching. If omitted, this proxy acts as a catch-all for domains not matched by other proxies. Maximum 100 patterns per proxy, each up to 253 characters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • domainPatterns

      ExternalProxy.Builder domainPatterns(String... domainPatterns)

      Optional array of domain patterns that should route through this specific proxy. Supports .example.com for subdomain matching (matches any subdomain of example.com) or example.com for exact domain matching. If omitted, this proxy acts as a catch-all for domains not matched by other proxies. Maximum 100 patterns per proxy, each up to 253 characters.

      Parameters:
      domainPatterns - Optional array of domain patterns that should route through this specific proxy. Supports .example.com for subdomain matching (matches any subdomain of example.com) or example.com for exact domain matching. If omitted, this proxy acts as a catch-all for domains not matched by other proxies. Maximum 100 patterns per proxy, each up to 253 characters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • credentials

      ExternalProxy.Builder credentials(ProxyCredentials credentials)

      Optional authentication credentials for the proxy server. If omitted, the proxy is accessed without authentication (useful for IP-allowlisted proxies).

      Parameters:
      credentials - Optional authentication credentials for the proxy server. If omitted, the proxy is accessed without authentication (useful for IP-allowlisted proxies).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • credentials

      default ExternalProxy.Builder credentials(Consumer<ProxyCredentials.Builder> credentials)

      Optional authentication credentials for the proxy server. If omitted, the proxy is accessed without authentication (useful for IP-allowlisted proxies).

      This is a convenience method that creates an instance of the ProxyCredentials.Builder avoiding the need to create one manually via ProxyCredentials.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to credentials(ProxyCredentials).

      Parameters:
      credentials - a consumer that will call methods on ProxyCredentials.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: