Interface GetAutoScalingGroupRecommendationsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,ComputeOptimizerRequest.Builder
,CopyableBuilder<GetAutoScalingGroupRecommendationsRequest.Builder,
,GetAutoScalingGroupRecommendationsRequest> SdkBuilder<GetAutoScalingGroupRecommendationsRequest.Builder,
,GetAutoScalingGroupRecommendationsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetAutoScalingGroupRecommendationsRequest
-
Method Summary
Modifier and TypeMethodDescriptionaccountIds
(String... accountIds) The ID of the Amazon Web Services account for which to return Auto Scaling group recommendations.accountIds
(Collection<String> accountIds) The ID of the Amazon Web Services account for which to return Auto Scaling group recommendations.autoScalingGroupArns
(String... autoScalingGroupArns) The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return recommendations.autoScalingGroupArns
(Collection<String> autoScalingGroupArns) The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return recommendations.filters
(Collection<Filter> filters) An array of objects to specify a filter that returns a more specific list of Auto Scaling group recommendations.filters
(Consumer<Filter.Builder>... filters) An array of objects to specify a filter that returns a more specific list of Auto Scaling group recommendations.An array of objects to specify a filter that returns a more specific list of Auto Scaling group recommendations.maxResults
(Integer maxResults) The maximum number of Auto Scaling group recommendations to return with a single request.The token to advance to the next page of Auto Scaling group recommendations.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.recommendationPreferences
(Consumer<RecommendationPreferences.Builder> recommendationPreferences) An object to specify the preferences for the Auto Scaling group recommendations to return in the response.recommendationPreferences
(RecommendationPreferences recommendationPreferences) An object to specify the preferences for the Auto Scaling group recommendations to return in the response.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, sdkFields
-
Method Details
-
accountIds
The ID of the Amazon Web Services account for which to return Auto Scaling group recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to return Auto Scaling group recommendations.
Only one account ID can be specified per request.
- Parameters:
accountIds
- The ID of the Amazon Web Services account for which to return Auto Scaling group recommendations.If your account is the management account of an organization, use this parameter to specify the member account for which you want to return Auto Scaling group recommendations.
Only one account ID can be specified per request.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountIds
The ID of the Amazon Web Services account for which to return Auto Scaling group recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to return Auto Scaling group recommendations.
Only one account ID can be specified per request.
- Parameters:
accountIds
- The ID of the Amazon Web Services account for which to return Auto Scaling group recommendations.If your account is the management account of an organization, use this parameter to specify the member account for which you want to return Auto Scaling group recommendations.
Only one account ID can be specified per request.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingGroupArns
GetAutoScalingGroupRecommendationsRequest.Builder autoScalingGroupArns(Collection<String> autoScalingGroupArns) The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return recommendations.
- Parameters:
autoScalingGroupArns
- The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingGroupArns
GetAutoScalingGroupRecommendationsRequest.Builder autoScalingGroupArns(String... autoScalingGroupArns) The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return recommendations.
- Parameters:
autoScalingGroupArns
- The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return recommendations.- 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 Auto Scaling group recommendations.
- Parameters:
nextToken
- The token to advance to the next page of Auto Scaling group recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of Auto Scaling group 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 Auto Scaling group 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 Auto Scaling group recommendations.
- Parameters:
filters
- An array of objects to specify a filter that returns a more specific list of Auto Scaling group 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 Auto Scaling group recommendations.
- Parameters:
filters
- An array of objects to specify a filter that returns a more specific list of Auto Scaling group 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 Auto Scaling group recommendations.
This is a convenience method that creates an instance of theFilter.Builder
avoiding the need to create one manually viaFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilters(List<Filter>)
.- Parameters:
filters
- 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:
-
recommendationPreferences
GetAutoScalingGroupRecommendationsRequest.Builder recommendationPreferences(RecommendationPreferences recommendationPreferences) An object to specify the preferences for the Auto Scaling group recommendations to return in the response.
- Parameters:
recommendationPreferences
- An object to specify the preferences for the Auto Scaling group recommendations to return in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationPreferences
default GetAutoScalingGroupRecommendationsRequest.Builder recommendationPreferences(Consumer<RecommendationPreferences.Builder> recommendationPreferences) An object to specify the preferences for the Auto Scaling group recommendations to return in the response.
This is a convenience method that creates an instance of theRecommendationPreferences.Builder
avoiding the need to create one manually viaRecommendationPreferences.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecommendationPreferences(RecommendationPreferences)
.- Parameters:
recommendationPreferences
- a consumer that will call methods onRecommendationPreferences.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
GetAutoScalingGroupRecommendationsRequest.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
GetAutoScalingGroupRecommendationsRequest.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.
-