Interface HttpInterfaceDefaults.Builder

  • Method Details

    • authentication

      HttpInterfaceDefaults.Builder authentication(Authentication authentication)

      The default authentication for clients calling an HTTP interface. Applies unless the profile entry sets authentication in that interface's options.

      Parameters:
      authentication - The default authentication for clients calling an HTTP interface. Applies unless the profile entry sets authentication in that interface's options.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authentication

      default HttpInterfaceDefaults.Builder authentication(Consumer<Authentication.Builder> authentication)

      The default authentication for clients calling an HTTP interface. Applies unless the profile entry sets authentication in that interface's options.

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

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

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