Interface GetPromptResponse.Builder

    • Method Detail

      • arn

        GetPromptResponse.Builder arn​(String arn)

        The Amazon Resource Name (ARN) of the prompt or the prompt version (if you specified a version in the request).

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

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

        GetPromptResponse.Builder customerEncryptionKeyArn​(String customerEncryptionKeyArn)

        The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with.

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

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

        GetPromptResponse.Builder description​(String description)

        The descriptino of the prompt.

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

        GetPromptResponse.Builder id​(String 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

        GetPromptResponse.Builder name​(String 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

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

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

        GetPromptResponse.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.
      • version

        GetPromptResponse.Builder version​(String version)

        The version of the prompt.

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