Interface UpdatePromptResponse.Builder

  • Method Details

    • arn

      The Amazon Resource Name (ARN) of the prompt.

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

      UpdatePromptResponse.Builder createdAt(Instant createdAt)

      The time at which the prompt was created.

      Parameters:
      createdAt - The time at which the prompt was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customerEncryptionKeyArn

      UpdatePromptResponse.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

      UpdatePromptResponse.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

      UpdatePromptResponse.Builder description(String description)

      The description of the prompt.

      Parameters:
      description - The description of the prompt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      The unique identifier of the prompt.

      Parameters:
      id - The unique identifier of the prompt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the prompt.

      Parameters:
      name - The name of the prompt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      UpdatePromptResponse.Builder updatedAt(Instant updatedAt)

      The time at which the prompt was last updated.

      Parameters:
      updatedAt - The time at which the prompt was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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

      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

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

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to variants(List<PromptVariant>).

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

      The version of the prompt. When you update a prompt, the version updated is the DRAFT version.

      Parameters:
      version - The version of the prompt. When you update a prompt, the version updated is the DRAFT version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.