Interface ListPromptsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BedrockAgentResponse.Builder
,Buildable
,CopyableBuilder<ListPromptsResponse.Builder,
,ListPromptsResponse> SdkBuilder<ListPromptsResponse.Builder,
,ListPromptsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListPromptsResponse
@Mutable
@NotThreadSafe
public static interface ListPromptsResponse.Builder
extends BedrockAgentResponse.Builder, SdkPojo, CopyableBuilder<ListPromptsResponse.Builder,ListPromptsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIf the total number of results is greater than themaxResults
value provided in the request, use this token when making another request in thenextToken
field to return the next batch of results.promptSummaries
(Collection<PromptSummary> promptSummaries) A list, each member of which contains information about a prompt using Prompt management.promptSummaries
(Consumer<PromptSummary.Builder>... promptSummaries) A list, each member of which contains information about a prompt using Prompt management.promptSummaries
(PromptSummary... promptSummaries) A list, each member of which contains information about a prompt using Prompt management.Methods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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 thenextToken
field to return the next batch of results.- Parameters:
nextToken
- If the total number of results is greater than themaxResults
value provided in the request, use this token when making another request in thenextToken
field to return the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
A list, each member of which contains information about a prompt using Prompt management.
This is a convenience method that creates an instance of thePromptSummary.Builder
avoiding the need to create one manually viaPromptSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topromptSummaries(List<PromptSummary>)
.- Parameters:
promptSummaries
- a consumer that will call methods onPromptSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-