Interface ListRecommendationSummariesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListRecommendationSummariesResponse.Builder,ListRecommendationSummariesResponse>,CostOptimizationHubResponse.Builder,SdkBuilder<ListRecommendationSummariesResponse.Builder,ListRecommendationSummariesResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListRecommendationSummariesResponse
public static interface ListRecommendationSummariesResponse.Builder extends CostOptimizationHubResponse.Builder, SdkPojo, CopyableBuilder<ListRecommendationSummariesResponse.Builder,ListRecommendationSummariesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ListRecommendationSummariesResponse.BuildercurrencyCode(String currencyCode)The currency code used for the recommendation.ListRecommendationSummariesResponse.BuilderestimatedTotalDedupedSavings(Double estimatedTotalDedupedSavings)The total overall savings for the aggregated view.ListRecommendationSummariesResponse.BuildergroupBy(String groupBy)The dimension used to group the recommendations by.ListRecommendationSummariesResponse.Builderitems(Collection<RecommendationSummary> items)A list of all savings recommendations.ListRecommendationSummariesResponse.Builderitems(Consumer<RecommendationSummary.Builder>... items)A list of all savings recommendations.ListRecommendationSummariesResponse.Builderitems(RecommendationSummary... items)A list of all savings recommendations.default ListRecommendationSummariesResponse.Buildermetrics(Consumer<SummaryMetricsResult.Builder> metrics)The results or descriptions for the additional metrics, based on whether the metrics were or were not requested.ListRecommendationSummariesResponse.Buildermetrics(SummaryMetricsResult metrics)The results or descriptions for the additional metrics, based on whether the metrics were or were not requested.ListRecommendationSummariesResponse.BuildernextToken(String nextToken)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 Detail
-
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
ListRecommendationSummariesResponse.Builder items(Collection<RecommendationSummary> 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
ListRecommendationSummariesResponse.Builder items(RecommendationSummary... 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
ListRecommendationSummariesResponse.Builder items(Consumer<RecommendationSummary.Builder>... items)
A list of all savings recommendations.
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 to#items(List.) - 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:
#items(java.util.Collection)
-
groupBy
ListRecommendationSummariesResponse.Builder groupBy(String 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
ListRecommendationSummariesResponse.Builder currencyCode(String 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
ListRecommendationSummariesResponse.Builder metrics(SummaryMetricsResult 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.Builderavoiding the need to create one manually viaSummaryMetricsResult.builder().When the
Consumercompletes,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:
metrics(SummaryMetricsResult)
-
nextToken
ListRecommendationSummariesResponse.Builder nextToken(String 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.
-
-