Interface PassthroughTargetConfiguration.Builder

  • Method Details

    • endpoint

      The HTTPS endpoint that the gateway forwards requests to for this passthrough target.

      Parameters:
      endpoint - The HTTPS endpoint that the gateway forwards requests to for this passthrough target.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protocolType

      PassthroughTargetConfiguration.Builder protocolType(String protocolType)

      The application protocol that the passthrough target implements. This value is required for passthrough targets:

      • MCP - The Model Context Protocol.

      • A2A - The Agent-to-Agent protocol.

      • INFERENCE - The protocol for routing requests to a large language model (LLM) provider.

      • CUSTOM - A custom application protocol.

      Parameters:
      protocolType - The application protocol that the passthrough target implements. This value is required for passthrough targets:

      • MCP - The Model Context Protocol.

      • A2A - The Agent-to-Agent protocol.

      • INFERENCE - The protocol for routing requests to a large language model (LLM) provider.

      • CUSTOM - A custom application protocol.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protocolType

      The application protocol that the passthrough target implements. This value is required for passthrough targets:

      • MCP - The Model Context Protocol.

      • A2A - The Agent-to-Agent protocol.

      • INFERENCE - The protocol for routing requests to a large language model (LLM) provider.

      • CUSTOM - A custom application protocol.

      Parameters:
      protocolType - The application protocol that the passthrough target implements. This value is required for passthrough targets:

      • MCP - The Model Context Protocol.

      • A2A - The Agent-to-Agent protocol.

      • INFERENCE - The protocol for routing requests to a large language model (LLM) provider.

      • CUSTOM - A custom application protocol.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • schema

      The API schema configuration that defines the structure of the passthrough target's API.

      Parameters:
      schema - The API schema configuration that defines the structure of the passthrough target's API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • schema

      The API schema configuration that defines the structure of the passthrough target's API.

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

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

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

      PassthroughTargetConfiguration.Builder stickinessConfiguration(StickinessConfiguration stickinessConfiguration)

      The session stickiness configuration for the passthrough target. This configuration routes requests within the same session to the same target.

      Parameters:
      stickinessConfiguration - The session stickiness configuration for the passthrough target. This configuration routes requests within the same session to the same target.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stickinessConfiguration

      default PassthroughTargetConfiguration.Builder stickinessConfiguration(Consumer<StickinessConfiguration.Builder> stickinessConfiguration)

      The session stickiness configuration for the passthrough target. This configuration routes requests within the same session to the same target.

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

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

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