Interface ListRecommendationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListRecommendationsResponse.Builder,
,ListRecommendationsResponse> DevOpsGuruResponse.Builder
,SdkBuilder<ListRecommendationsResponse.Builder,
,ListRecommendationsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListRecommendationsResponse
public static interface ListRecommendationsResponse.Builder
extends DevOpsGuruResponse.Builder, SdkPojo, CopyableBuilder<ListRecommendationsResponse.Builder,ListRecommendationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe pagination token to use to retrieve the next page of results for this operation.recommendations
(Collection<Recommendation> recommendations) An array of the requested recommendations.recommendations
(Consumer<Recommendation.Builder>... recommendations) An array of the requested recommendations.recommendations
(Recommendation... recommendations) An array of the requested recommendations.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.devopsguru.model.DevOpsGuruResponse.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
-
recommendations
An array of the requested recommendations.
- Parameters:
recommendations
- An array of the requested recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendations
An array of the requested recommendations.
- Parameters:
recommendations
- An array of the requested recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendations
ListRecommendationsResponse.Builder recommendations(Consumer<Recommendation.Builder>... recommendations) An array of the requested recommendations.
This is a convenience method that creates an instance of theRecommendation.Builder
avoiding the need to create one manually viaRecommendation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecommendations(List<Recommendation>)
.- Parameters:
recommendations
- a consumer that will call methods onRecommendation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
- Parameters:
nextToken
- The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-