Interface ListPromptsResponse.Builder

  • Method Details

    • nextToken

      ListPromptsResponse.Builder nextToken(String nextToken)

      If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.

      Parameters:
      nextToken - If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • promptSummaries

      ListPromptsResponse.Builder promptSummaries(Collection<PromptSummary> promptSummaries)

      A list, each member of which contains information about a prompt using Prompt management.

      Parameters:
      promptSummaries - A list, each member of which contains information about a prompt using Prompt management.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • promptSummaries

      ListPromptsResponse.Builder promptSummaries(PromptSummary... promptSummaries)

      A list, each member of which contains information about a prompt using Prompt management.

      Parameters:
      promptSummaries - A list, each member of which contains information about a prompt using Prompt management.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • promptSummaries

      ListPromptsResponse.Builder promptSummaries(Consumer<PromptSummary.Builder>... promptSummaries)

      A list, each member of which contains information about a prompt using Prompt management.

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

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

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