Interface GetIdleRecommendationsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,ComputeOptimizerRequest.Builder
,CopyableBuilder<GetIdleRecommendationsRequest.Builder,
,GetIdleRecommendationsRequest> SdkBuilder<GetIdleRecommendationsRequest.Builder,
,GetIdleRecommendationsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetIdleRecommendationsRequest
-
Method Summary
Modifier and TypeMethodDescriptionaccountIds
(String... accountIds) Return the idle resource recommendations to the specified Amazon Web Services account IDs.accountIds
(Collection<String> accountIds) Return the idle resource recommendations to the specified Amazon Web Services account IDs.filters
(Collection<IdleRecommendationFilter> filters) An array of objects to specify a filter that returns a more specific list of idle resource recommendations.filters
(Consumer<IdleRecommendationFilter.Builder>... filters) An array of objects to specify a filter that returns a more specific list of idle resource recommendations.filters
(IdleRecommendationFilter... filters) An array of objects to specify a filter that returns a more specific list of idle resource recommendations.maxResults
(Integer maxResults) The maximum number of idle resource recommendations to return with a single request.The token to advance to the next page of idle resource recommendations.orderBy
(Consumer<OrderBy.Builder> orderBy) The order to sort the idle resource recommendations.The order to sort the idle resource recommendations.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resourceArns
(String... resourceArns) The ARN that identifies the idle resource.resourceArns
(Collection<String> resourceArns) The ARN that identifies the idle resource.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.computeoptimizer.model.ComputeOptimizerRequest.Builder
build
Methods 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
-
Method Details
-
resourceArns
The ARN that identifies the idle resource.
- Parameters:
resourceArns
- The ARN that identifies the idle resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArns
The ARN that identifies the idle resource.
- Parameters:
resourceArns
- The ARN that identifies the idle resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The token to advance to the next page of idle resource recommendations.
- Parameters:
nextToken
- The token to advance to the next page of idle resource recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of idle resource recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned
nextToken
value.- Parameters:
maxResults
- The maximum number of idle resource recommendations to return with a single request.To retrieve the remaining results, make another request with the returned
nextToken
value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
An array of objects to specify a filter that returns a more specific list of idle resource recommendations.
- Parameters:
filters
- An array of objects to specify a filter that returns a more specific list of idle resource recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
An array of objects to specify a filter that returns a more specific list of idle resource recommendations.
- Parameters:
filters
- An array of objects to specify a filter that returns a more specific list of idle resource recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
GetIdleRecommendationsRequest.Builder filters(Consumer<IdleRecommendationFilter.Builder>... filters) An array of objects to specify a filter that returns a more specific list of idle resource recommendations.
This is a convenience method that creates an instance of theIdleRecommendationFilter.Builder
avoiding the need to create one manually viaIdleRecommendationFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilters(List<IdleRecommendationFilter>)
.- Parameters:
filters
- a consumer that will call methods onIdleRecommendationFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accountIds
Return the idle resource recommendations to the specified Amazon Web Services account IDs.
If your account is the management account or the delegated administrator of an organization, use this parameter to return the idle resource recommendations to specific member accounts.
You can only specify one account ID per request.
- Parameters:
accountIds
- Return the idle resource recommendations to the specified Amazon Web Services account IDs.If your account is the management account or the delegated administrator of an organization, use this parameter to return the idle resource recommendations to specific member accounts.
You can only specify one account ID per request.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountIds
Return the idle resource recommendations to the specified Amazon Web Services account IDs.
If your account is the management account or the delegated administrator of an organization, use this parameter to return the idle resource recommendations to specific member accounts.
You can only specify one account ID per request.
- Parameters:
accountIds
- Return the idle resource recommendations to the specified Amazon Web Services account IDs.If your account is the management account or the delegated administrator of an organization, use this parameter to return the idle resource recommendations to specific member accounts.
You can only specify one account ID per request.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
orderBy
The order to sort the idle resource recommendations.
- Parameters:
orderBy
- The order to sort the idle resource recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
orderBy
The order to sort the idle resource recommendations.
This is a convenience method that creates an instance of theOrderBy.Builder
avoiding the need to create one manually viaOrderBy.builder()
.When the
Consumer
completes,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:
-
overrideConfiguration
GetIdleRecommendationsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetIdleRecommendationsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-