Interface GetLicenseRecommendationsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,ComputeOptimizerRequest.Builder
,CopyableBuilder<GetLicenseRecommendationsRequest.Builder,
,GetLicenseRecommendationsRequest> SdkBuilder<GetLicenseRecommendationsRequest.Builder,
,GetLicenseRecommendationsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetLicenseRecommendationsRequest
-
Method Summary
Modifier and TypeMethodDescriptionaccountIds
(String... accountIds) The ID of the Amazon Web Services account for which to return license recommendations.accountIds
(Collection<String> accountIds) The ID of the Amazon Web Services account for which to return license recommendations.filters
(Collection<LicenseRecommendationFilter> filters) An array of objects to specify a filter that returns a more specific list of license recommendations.filters
(Consumer<LicenseRecommendationFilter.Builder>... filters) An array of objects to specify a filter that returns a more specific list of license recommendations.filters
(LicenseRecommendationFilter... filters) An array of objects to specify a filter that returns a more specific list of license recommendations.maxResults
(Integer maxResults) The maximum number of license recommendations to return with a single request.The token to advance to the next page of license 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 Amazon EC2 instance.resourceArns
(Collection<String> resourceArns) The ARN that identifies the Amazon EC2 instance.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
-
resourceArns
The ARN that identifies the Amazon EC2 instance.
The following is the format of the ARN:
arn:aws:ec2:region:aws_account_id:instance/instance-id
- Parameters:
resourceArns
- The ARN that identifies the Amazon EC2 instance.The following is the format of the ARN:
arn:aws:ec2:region:aws_account_id:instance/instance-id
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArns
The ARN that identifies the Amazon EC2 instance.
The following is the format of the ARN:
arn:aws:ec2:region:aws_account_id:instance/instance-id
- Parameters:
resourceArns
- The ARN that identifies the Amazon EC2 instance.The following is the format of the ARN:
arn:aws:ec2:region:aws_account_id:instance/instance-id
- 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 license recommendations.
- Parameters:
nextToken
- The token to advance to the next page of license recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of license 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 license 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 license recommendations.
- Parameters:
filters
- An array of objects to specify a filter that returns a more specific list of license 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 license recommendations.
- Parameters:
filters
- An array of objects to specify a filter that returns a more specific list of license recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
GetLicenseRecommendationsRequest.Builder filters(Consumer<LicenseRecommendationFilter.Builder>... filters) An array of objects to specify a filter that returns a more specific list of license recommendations.
This is a convenience method that creates an instance of theLicenseRecommendationFilter.Builder
avoiding the need to create one manually viaLicenseRecommendationFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilters(List<LicenseRecommendationFilter>)
.- Parameters:
filters
- a consumer that will call methods onLicenseRecommendationFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accountIds
The ID of the Amazon Web Services account for which to return license 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 license recommendations.
Only one account ID can be specified per request.
- Parameters:
accountIds
- The ID of the Amazon Web Services account for which to return license 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 license 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 license 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 license recommendations.
Only one account ID can be specified per request.
- Parameters:
accountIds
- The ID of the Amazon Web Services account for which to return license 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 license 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.
-
overrideConfiguration
GetLicenseRecommendationsRequest.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
GetLicenseRecommendationsRequest.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.
-