Interface ListRecommendationSummariesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListRecommendationSummariesResponse.Builder,
,ListRecommendationSummariesResponse> CostOptimizationHubResponse.Builder
,SdkBuilder<ListRecommendationSummariesResponse.Builder,
,ListRecommendationSummariesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListRecommendationSummariesResponse
-
Method Summary
Modifier and TypeMethodDescriptioncurrencyCode
(String currencyCode) The currency code used for the recommendation.estimatedTotalDedupedSavings
(Double estimatedTotalDedupedSavings) The total overall savings for the aggregated view.The dimension used to group the recommendations by.items
(Collection<RecommendationSummary> items) A list of all savings recommendations.items
(Consumer<RecommendationSummary.Builder>... items) A list of all savings recommendations.items
(RecommendationSummary... items) A list of all savings recommendations.metrics
(Consumer<SummaryMetricsResult.Builder> metrics) The results or descriptions for the additional metrics, based on whether the metrics were or were not requested.metrics
(SummaryMetricsResult metrics) The results or descriptions for the additional metrics, based on whether the metrics were or were not requested.The token to retrieve the next set of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.costoptimizationhub.model.CostOptimizationHubResponse.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
estimatedTotalDedupedSavings
ListRecommendationSummariesResponse.Builder estimatedTotalDedupedSavings(Double estimatedTotalDedupedSavings) The total overall savings for the aggregated view.
- Parameters:
estimatedTotalDedupedSavings
- The total overall savings for the aggregated view.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
A list of all savings recommendations.
- Parameters:
items
- A list of all savings recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
A list of all savings recommendations.
- Parameters:
items
- A list of all savings recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
A list of all savings 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 toitems(List<RecommendationSummary>)
.- Parameters:
items
- 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:
-
groupBy
The dimension used to group the recommendations by.
- Parameters:
groupBy
- The dimension used to group the recommendations by.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currencyCode
The currency code used for the recommendation.
- Parameters:
currencyCode
- The currency code used for the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
The results or descriptions for the additional metrics, based on whether the metrics were or were not requested.
- Parameters:
metrics
- The results or descriptions for the additional metrics, based on whether the metrics were or were not requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
default ListRecommendationSummariesResponse.Builder metrics(Consumer<SummaryMetricsResult.Builder> metrics) The results or descriptions for the additional metrics, based on whether the metrics were or were not requested.
This is a convenience method that creates an instance of theSummaryMetricsResult.Builder
avoiding the need to create one manually viaSummaryMetricsResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometrics(SummaryMetricsResult)
.- Parameters:
metrics
- a consumer that will call methods onSummaryMetricsResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to retrieve the next set of results.
- Parameters:
nextToken
- The token to retrieve the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-