Interface ListRecommendationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreResponse.Builder,Buildable,CopyableBuilder<ListRecommendationsResponse.Builder,,ListRecommendationsResponse> SdkBuilder<ListRecommendationsResponse.Builder,,ListRecommendationsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListRecommendationsResponse
@Mutable
@NotThreadSafe
public static interface ListRecommendationsResponse.Builder
extends BedrockAgentCoreResponse.Builder, SdkPojo, CopyableBuilder<ListRecommendationsResponse.Builder,ListRecommendationsResponse>
-
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.recommendationSummaries(Collection<RecommendationSummary> recommendationSummaries) The list of recommendation summaries.recommendationSummaries(Consumer<RecommendationSummary.Builder>... recommendationSummaries) The list of recommendation summaries.recommendationSummaries(RecommendationSummary... recommendationSummaries) The list of recommendation summaries.Methods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreResponse.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
-
recommendationSummaries
ListRecommendationsResponse.Builder recommendationSummaries(Collection<RecommendationSummary> recommendationSummaries) The list of recommendation summaries.
- Parameters:
recommendationSummaries- The list of recommendation summaries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationSummaries
ListRecommendationsResponse.Builder recommendationSummaries(RecommendationSummary... recommendationSummaries) The list of recommendation summaries.
- Parameters:
recommendationSummaries- The list of recommendation summaries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationSummaries
ListRecommendationsResponse.Builder recommendationSummaries(Consumer<RecommendationSummary.Builder>... recommendationSummaries) The list of recommendation summaries.
This is a convenience method that creates an instance of theRecommendationSummary.Builderavoiding the need to create one manually viaRecommendationSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecommendationSummaries(List<RecommendationSummary>).- Parameters:
recommendationSummaries- a consumer that will call methods onRecommendationSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-