Interface GetProductsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetProductsRequest.Builder,,GetProductsRequest> PricingRequest.Builder,SdkBuilder<GetProductsRequest.Builder,,GetProductsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
GetProductsRequest
-
Method Summary
Modifier and TypeMethodDescriptionfilters(Collection<Filter> filters) The list of filters that limit the returned products.filters(Consumer<Filter.Builder>... filters) The list of filters that limit the returned products.The list of filters that limit the returned products.formatVersion(String formatVersion) The format version that you want the response to be in.maxResults(Integer maxResults) The maximum number of results to return in the response.The pagination token that indicates the next set of results that you want to retrieve.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.serviceCode(String serviceCode) The code for the service whose products you want to retrieve.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.pricing.model.PricingRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
serviceCode
The code for the service whose products you want to retrieve.
- Parameters:
serviceCode- The code for the service whose products you want to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
The list of filters that limit the returned products. only products that match all filters are returned.
- Parameters:
filters- The list of filters that limit the returned products. only products that match all filters are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
The list of filters that limit the returned products. only products that match all filters are returned.
- Parameters:
filters- The list of filters that limit the returned products. only products that match all filters are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
The list of filters that limit the returned products. only products that match all filters are returned.
This is a convenience method that creates an instance of theFilter.Builderavoiding the need to create one manually viaFilter.builder().When the
Consumercompletes,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:
-
formatVersion
The format version that you want the response to be in.
Valid values are:
aws_v1- Parameters:
formatVersion- The format version that you want the response to be in.Valid values are:
aws_v1- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The pagination token that indicates the next set of results that you want to retrieve.
- Parameters:
nextToken- The pagination token that indicates the next set of results that you want to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of results to return in the response.
- Parameters:
maxResults- The maximum number of results to return in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetProductsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetProductsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-