Interface GetEcsServiceRecommendationsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,ComputeOptimizerRequest.Builder
,CopyableBuilder<GetEcsServiceRecommendationsRequest.Builder,
,GetEcsServiceRecommendationsRequest> SdkBuilder<GetEcsServiceRecommendationsRequest.Builder,
,GetEcsServiceRecommendationsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetEcsServiceRecommendationsRequest
-
Method Summary
Modifier and TypeMethodDescriptionaccountIds
(String... accountIds) Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs.accountIds
(Collection<String> accountIds) Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs.filters
(Collection<ECSServiceRecommendationFilter> filters) An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations.filters
(Consumer<ECSServiceRecommendationFilter.Builder>... filters) An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations.filters
(ECSServiceRecommendationFilter... filters) An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations.maxResults
(Integer maxResults) The maximum number of Amazon ECS service recommendations to return with a single request.The token to advance to the next page of Amazon ECS service recommendations.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.serviceArns
(String... serviceArns) The ARN that identifies the Amazon ECS service.serviceArns
(Collection<String> serviceArns) The ARN that identifies the Amazon ECS service.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
-
serviceArns
The ARN that identifies the Amazon ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
- Parameters:
serviceArns
- The ARN that identifies the Amazon ECS service.The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceArns
The ARN that identifies the Amazon ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
- Parameters:
serviceArns
- The ARN that identifies the Amazon ECS service.The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
- 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 Amazon ECS service recommendations.
- Parameters:
nextToken
- The token to advance to the next page of Amazon ECS service recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of Amazon ECS service 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 Amazon ECS service 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
GetEcsServiceRecommendationsRequest.Builder filters(Collection<ECSServiceRecommendationFilter> filters) An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations.
- Parameters:
filters
- An array of objects to specify a filter that returns a more specific list of Amazon ECS service 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 Amazon ECS service recommendations.
- Parameters:
filters
- An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
GetEcsServiceRecommendationsRequest.Builder filters(Consumer<ECSServiceRecommendationFilter.Builder>... filters) An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations.
This is a convenience method that creates an instance of theECSServiceRecommendationFilter.Builder
avoiding the need to create one manually viaECSServiceRecommendationFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilters(List<ECSServiceRecommendationFilter>)
.- Parameters:
filters
- a consumer that will call methods onECSServiceRecommendationFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accountIds
Return the Amazon ECS service 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 Amazon ECS service recommendations to specific member accounts.
You can only specify one account ID per request.
- Parameters:
accountIds
- Return the Amazon ECS service 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 Amazon ECS service 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 Amazon ECS service 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 Amazon ECS service recommendations to specific member accounts.
You can only specify one account ID per request.
- Parameters:
accountIds
- Return the Amazon ECS service 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 Amazon ECS service 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.
-
overrideConfiguration
GetEcsServiceRecommendationsRequest.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
GetEcsServiceRecommendationsRequest.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.
-