Interface CreatePromptRouterRequest.Builder

    • Method Detail

      • clientRequestToken

        CreatePromptRouterRequest.Builder clientRequestToken​(String clientRequestToken)

        A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK automatically generates one for you.

        Parameters:
        clientRequestToken - A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK automatically generates one for you.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • promptRouterName

        CreatePromptRouterRequest.Builder promptRouterName​(String promptRouterName)

        The name of the prompt router. The name must be unique within your Amazon Web Services account in the current region.

        Parameters:
        promptRouterName - The name of the prompt router. The name must be unique within your Amazon Web Services account in the current region.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • models

        CreatePromptRouterRequest.Builder models​(Collection<PromptRouterTargetModel> models)

        A list of foundation models that the prompt router can route requests to. At least one model must be specified.

        Parameters:
        models - A list of foundation models that the prompt router can route requests to. At least one model must be specified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • models

        CreatePromptRouterRequest.Builder models​(PromptRouterTargetModel... models)

        A list of foundation models that the prompt router can route requests to. At least one model must be specified.

        Parameters:
        models - A list of foundation models that the prompt router can route requests to. At least one model must be specified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreatePromptRouterRequest.Builder description​(String description)

        An optional description of the prompt router to help identify its purpose.

        Parameters:
        description - An optional description of the prompt router to help identify its purpose.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • routingCriteria

        CreatePromptRouterRequest.Builder routingCriteria​(RoutingCriteria routingCriteria)

        The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.

        Parameters:
        routingCriteria - The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • fallbackModel

        CreatePromptRouterRequest.Builder fallbackModel​(PromptRouterTargetModel fallbackModel)

        The default model to use when the routing criteria is not met.

        Parameters:
        fallbackModel - The default model to use when the routing criteria is not met.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreatePromptRouterRequest.Builder tags​(Collection<Tag> tags)

        An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.

        Parameters:
        tags - An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreatePromptRouterRequest.Builder tags​(Tag... tags)

        An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.

        Parameters:
        tags - An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreatePromptRouterRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)