Interface ListRecommendationsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListRecommendationsRequest.Builder,,ListRecommendationsRequest> CostOptimizationHubRequest.Builder,SdkBuilder<ListRecommendationsRequest.Builder,,ListRecommendationsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ListRecommendationsRequest
public static interface ListRecommendationsRequest.Builder
extends CostOptimizationHubRequest.Builder, SdkPojo, CopyableBuilder<ListRecommendationsRequest.Builder,ListRecommendationsRequest>
-
Method Summary
Modifier and TypeMethodDescriptionfilter(Consumer<Filter.Builder> filter) The constraints that you want all returned recommendations to match.The constraints that you want all returned recommendations to match.includeAllRecommendations(Boolean includeAllRecommendations) List of all recommendations for a resource, or a single recommendation if de-duped byresourceId.maxResults(Integer maxResults) The maximum number of recommendations that are returned for the request.The token to retrieve the next set of results.orderBy(Consumer<OrderBy.Builder> orderBy) The ordering of recommendations by a dimension.The ordering of recommendations by a dimension.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.costoptimizationhub.model.CostOptimizationHubRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
filter
The constraints that you want all returned recommendations to match.
- Parameters:
filter- The constraints that you want all returned recommendations to match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
The constraints that you want all returned recommendations to match.
This is a convenience method that creates an instance of theFilter.Builderavoiding the need to create one manually viaFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilter(Filter).- Parameters:
filter- a consumer that will call methods onFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
orderBy
The ordering of recommendations by a dimension.
- Parameters:
orderBy- The ordering of recommendations by a dimension.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
orderBy
The ordering of recommendations by a dimension.
This is a convenience method that creates an instance of theOrderBy.Builderavoiding the need to create one manually viaOrderBy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toorderBy(OrderBy).- Parameters:
orderBy- a consumer that will call methods onOrderBy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
includeAllRecommendations
List of all recommendations for a resource, or a single recommendation if de-duped by
resourceId.- Parameters:
includeAllRecommendations- List of all recommendations for a resource, or a single recommendation if de-duped byresourceId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of recommendations that are returned for the request.
- Parameters:
maxResults- The maximum number of recommendations that are returned for the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
overrideConfiguration
ListRecommendationsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListRecommendationsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-