Interface HttpInterfaceOptions.Builder

  • Method Details

    • authentication

      HttpInterfaceOptions.Builder authentication(Authentication authentication)

      How clients authenticate when calling this interface. Overrides the authentication in the profile's interfaceDefaults.

      Parameters:
      authentication - How clients authenticate when calling this interface. Overrides the authentication in the profile's interfaceDefaults.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authentication

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

      How clients authenticate when calling this interface. Overrides the authentication in the profile's interfaceDefaults.

      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:
    • basePath

      The path prefix under which this interface is served. Set by the service; a request that sets it is rejected.

      Parameters:
      basePath - The path prefix under which this interface is served. Set by the service; a request that sets it is rejected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.