Interface CreatePromptRequest.Builder

    • Method Detail

      • clientToken

        CreatePromptRequest.Builder clientToken​(String clientToken)

        A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.

        Parameters:
        clientToken - A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • customerEncryptionKeyArn

        CreatePromptRequest.Builder customerEncryptionKeyArn​(String customerEncryptionKeyArn)

        The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.

        Parameters:
        customerEncryptionKeyArn - The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • defaultVariant

        CreatePromptRequest.Builder defaultVariant​(String defaultVariant)

        The name of the default variant for the prompt. This value must match the name field in the relevant PromptVariant object.

        Parameters:
        defaultVariant - The name of the default variant for the prompt. This value must match the name field in the relevant PromptVariant object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreatePromptRequest.Builder description​(String description)

        A description for the prompt.

        Parameters:
        description - A description for the prompt.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        CreatePromptRequest.Builder name​(String name)

        A name for the prompt.

        Parameters:
        name - A name for the prompt.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • variants

        CreatePromptRequest.Builder variants​(Collection<PromptVariant> variants)

        A list of objects, each containing details about a variant of the prompt.

        Parameters:
        variants - A list of objects, each containing details about a variant of the prompt.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • variants

        CreatePromptRequest.Builder variants​(PromptVariant... variants)

        A list of objects, each containing details about a variant of the prompt.

        Parameters:
        variants - A list of objects, each containing details about a variant of the prompt.
        Returns:
        Returns a reference to this object so that method calls can be chained together.