Interface ListRecommendationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListRecommendationsResponse.Builder,
,ListRecommendationsResponse> SdkBuilder<ListRecommendationsResponse.Builder,
,ListRecommendationsResponse> SdkPojo
,SdkResponse.Builder
,TrustedAdvisorResponse.Builder
- Enclosing class:
ListRecommendationsResponse
@Mutable
@NotThreadSafe
public static interface ListRecommendationsResponse.Builder
extends TrustedAdvisorResponse.Builder, SdkPojo, CopyableBuilder<ListRecommendationsResponse.Builder,ListRecommendationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token for the next set of results.recommendationSummaries
(Collection<RecommendationSummary> recommendationSummaries) The list of RecommendationsrecommendationSummaries
(Consumer<RecommendationSummary.Builder>... recommendationSummaries) The list of RecommendationsrecommendationSummaries
(RecommendationSummary... recommendationSummaries) The list of RecommendationsMethods 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
Methods inherited from interface software.amazon.awssdk.services.trustedadvisor.model.TrustedAdvisorResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
nextToken
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
- Parameters:
nextToken
- The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationSummaries
ListRecommendationsResponse.Builder recommendationSummaries(Collection<RecommendationSummary> recommendationSummaries) The list of Recommendations
- Parameters:
recommendationSummaries
- The list of Recommendations- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationSummaries
ListRecommendationsResponse.Builder recommendationSummaries(RecommendationSummary... recommendationSummaries) The list of Recommendations
- Parameters:
recommendationSummaries
- The list of Recommendations- 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 Recommendations
This is a convenience method that creates an instance of theRecommendationSummary.Builder
avoiding the need to create one manually viaRecommendationSummary.builder()
.When the
Consumer
completes,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:
-