Interface ListPromptsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentResponse.Builder,Buildable,CopyableBuilder<ListPromptsResponse.Builder,,ListPromptsResponse> SdkBuilder<ListPromptsResponse.Builder,,ListPromptsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListPromptsResponse
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 themaxResultsvalue provided in the request, use this token when making another request in thenextTokenfield 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, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
nextToken
If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.- Parameters:
nextToken- If the total number of results is greater than themaxResultsvalue provided in the request, use this token when making another request in thenextTokenfield 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.Builderavoiding the need to create one manually viaPromptSummary.builder().When the
Consumercompletes,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:
-