Interface ListRecipesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListRecipesResponse.Builder,
,ListRecipesResponse> PersonalizeResponse.Builder
,SdkBuilder<ListRecipesResponse.Builder,
,ListRecipesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListRecipesResponse
public static interface ListRecipesResponse.Builder
extends PersonalizeResponse.Builder, SdkPojo, CopyableBuilder<ListRecipesResponse.Builder,ListRecipesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionA token for getting the next set of recipes.recipes
(Collection<RecipeSummary> recipes) The list of available recipes.recipes
(Consumer<RecipeSummary.Builder>... recipes) The list of available recipes.recipes
(RecipeSummary... recipes) The list of available recipes.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.personalize.model.PersonalizeResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
recipes
The list of available recipes.
- Parameters:
recipes
- The list of available recipes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recipes
The list of available recipes.
- Parameters:
recipes
- The list of available recipes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recipes
The list of available recipes.
This is a convenience method that creates an instance of theRecipeSummary.Builder
avoiding the need to create one manually viaRecipeSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecipes(List<RecipeSummary>)
.- Parameters:
recipes
- a consumer that will call methods onRecipeSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A token for getting the next set of recipes.
- Parameters:
nextToken
- A token for getting the next set of recipes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-