public static interface GetEc2InstanceRecommendationsRequest.Builder extends ComputeOptimizerRequest.Builder, SdkPojo, CopyableBuilder<GetEc2InstanceRecommendationsRequest.Builder,GetEc2InstanceRecommendationsRequest>
| Modifier and Type | Method and Description |
|---|---|
GetEc2InstanceRecommendationsRequest.Builder |
accountIds(Collection<String> accountIds)
The ID of the Amazon Web Services account for which to return instance recommendations.
|
GetEc2InstanceRecommendationsRequest.Builder |
accountIds(String... accountIds)
The ID of the Amazon Web Services account for which to return instance recommendations.
|
GetEc2InstanceRecommendationsRequest.Builder |
filters(Collection<Filter> filters)
An array of objects to specify a filter that returns a more specific list of instance recommendations.
|
GetEc2InstanceRecommendationsRequest.Builder |
filters(Consumer<Filter.Builder>... filters)
An array of objects to specify a filter that returns a more specific list of instance recommendations.
|
GetEc2InstanceRecommendationsRequest.Builder |
filters(Filter... filters)
An array of objects to specify a filter that returns a more specific list of instance recommendations.
|
GetEc2InstanceRecommendationsRequest.Builder |
instanceArns(Collection<String> instanceArns)
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
|
GetEc2InstanceRecommendationsRequest.Builder |
instanceArns(String... instanceArns)
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
|
GetEc2InstanceRecommendationsRequest.Builder |
maxResults(Integer maxResults)
The maximum number of instance recommendations to return with a single request.
|
GetEc2InstanceRecommendationsRequest.Builder |
nextToken(String nextToken)
The token to advance to the next page of instance recommendations.
|
GetEc2InstanceRecommendationsRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
GetEc2InstanceRecommendationsRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
default GetEc2InstanceRecommendationsRequest.Builder |
recommendationPreferences(Consumer<RecommendationPreferences.Builder> recommendationPreferences)
An object to specify the preferences for the Amazon EC2 instance recommendations to return in the response.
|
GetEc2InstanceRecommendationsRequest.Builder |
recommendationPreferences(RecommendationPreferences recommendationPreferences)
An object to specify the preferences for the Amazon EC2 instance recommendations to return in the response.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetEc2InstanceRecommendationsRequest.Builder instanceArns(Collection<String> instanceArns)
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
instanceArns - The Amazon Resource Name (ARN) of the instances for which to return recommendations.GetEc2InstanceRecommendationsRequest.Builder instanceArns(String... instanceArns)
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
instanceArns - The Amazon Resource Name (ARN) of the instances for which to return recommendations.GetEc2InstanceRecommendationsRequest.Builder nextToken(String nextToken)
The token to advance to the next page of instance recommendations.
nextToken - The token to advance to the next page of instance recommendations.GetEc2InstanceRecommendationsRequest.Builder maxResults(Integer maxResults)
The maximum number of instance recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned nextToken value.
maxResults - The maximum number of instance recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned nextToken
value.
GetEc2InstanceRecommendationsRequest.Builder filters(Collection<Filter> filters)
An array of objects to specify a filter that returns a more specific list of instance recommendations.
filters - An array of objects to specify a filter that returns a more specific list of instance recommendations.GetEc2InstanceRecommendationsRequest.Builder filters(Filter... filters)
An array of objects to specify a filter that returns a more specific list of instance recommendations.
filters - An array of objects to specify a filter that returns a more specific list of instance recommendations.GetEc2InstanceRecommendationsRequest.Builder filters(Consumer<Filter.Builder>... filters)
An array of objects to specify a filter that returns a more specific list of instance recommendations.
This is a convenience method that creates an instance of theFilter.Builder avoiding the need to create one
manually via Filter.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #filters(List.
filters - a consumer that will call methods on
Filter.Builder#filters(java.util.Collection) GetEc2InstanceRecommendationsRequest.Builder accountIds(Collection<String> accountIds)
The ID of the Amazon Web Services account for which to return instance 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 instance recommendations.
Only one account ID can be specified per request.
accountIds - The ID of the Amazon Web Services account for which to return instance 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 instance recommendations.
Only one account ID can be specified per request.
GetEc2InstanceRecommendationsRequest.Builder accountIds(String... accountIds)
The ID of the Amazon Web Services account for which to return instance 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 instance recommendations.
Only one account ID can be specified per request.
accountIds - The ID of the Amazon Web Services account for which to return instance 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 instance recommendations.
Only one account ID can be specified per request.
GetEc2InstanceRecommendationsRequest.Builder recommendationPreferences(RecommendationPreferences recommendationPreferences)
An object to specify the preferences for the Amazon EC2 instance recommendations to return in the response.
recommendationPreferences - An object to specify the preferences for the Amazon EC2 instance recommendations to return in the
response.default GetEc2InstanceRecommendationsRequest.Builder recommendationPreferences(Consumer<RecommendationPreferences.Builder> recommendationPreferences)
An object to specify the preferences for the Amazon EC2 instance 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 via RecommendationPreferences.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to recommendationPreferences(RecommendationPreferences).
recommendationPreferences - a consumer that will call methods on RecommendationPreferences.BuilderrecommendationPreferences(RecommendationPreferences)GetEc2InstanceRecommendationsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderGetEc2InstanceRecommendationsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.