Interface ConnectionRequest.Builder

Enclosing interface:
ConnectionRequest

public static interface ConnectionRequest.Builder
A builder for ConnectionRequest
  • Method Details

    • connectionId

      ConnectionRequest.Builder connectionId(UUID connectionId)
      Parameters:
      connectionId - the connection id, a random UUID by default
      Returns:
      this Builder instance
    • version

      Parameters:
      version - the client version
      Returns:
      this Builder instance
    • locale

      Specifies the client locale, for a request built on behalf of a client running in another JVM, by default the locale of the JVM building the request.
      Parameters:
      locale - the client locale
      Returns:
      this Builder instance
    • timeZone

      ConnectionRequest.Builder timeZone(ZoneId timeZone)
      Specifies the client time zone, for a request built on behalf of a client running in another JVM, by default the time zone of the JVM building the request.
      Parameters:
      timeZone - the client time zone
      Returns:
      this Builder instance
    • parameter

      ConnectionRequest.Builder parameter(String key, Object value)
      Parameters:
      key - the key
      value - the value
      Returns:
      this Builder instance
    • build

      Returns:
      a new ConnectionRequest instance
      Throws:
      NullPointerException - in case the user or client type have not been specified