Interface SearchListingsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SearchListingsRequest.Builder,,SearchListingsRequest> MarketplaceDiscoveryRequest.Builder,SdkBuilder<SearchListingsRequest.Builder,,SearchListingsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
SearchListingsRequest
-
Method Summary
Modifier and TypeMethodDescriptionfilters(Collection<SearchFilter> filters) Filters to narrow search results.filters(Consumer<SearchFilter.Builder>... filters) Filters to narrow search results.filters(SearchFilter... filters) Filters to narrow search results.maxResults(Integer maxResults) The maximum number of results that are returned per call.IfnextTokenis returned, there are more results available.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.searchText(String searchText) The search query text to find relevant listings.The field to sort results by.sortBy(SearchListingsSortBy sortBy) The field to sort results by.The sort direction.sortOrder(SearchListingsSortOrder sortOrder) The sort direction.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.marketplacediscovery.model.MarketplaceDiscoveryRequest.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
-
searchText
The search query text to find relevant listings.
- Parameters:
searchText- The search query text to find relevant listings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
Filters to narrow search results. Multiple filters are combined with AND logic. Multiple values within the same filter are combined with OR logic.
- Parameters:
filters- Filters to narrow search results. Multiple filters are combined with AND logic. Multiple values within the same filter are combined with OR logic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
Filters to narrow search results. Multiple filters are combined with AND logic. Multiple values within the same filter are combined with OR logic.
- Parameters:
filters- Filters to narrow search results. Multiple filters are combined with AND logic. Multiple values within the same filter are combined with OR logic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
Filters to narrow search results. Multiple filters are combined with AND logic. Multiple values within the same filter are combined with OR logic.
This is a convenience method that creates an instance of theSearchFilter.Builderavoiding the need to create one manually viaSearchFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilters(List<SearchFilter>).- Parameters:
filters- a consumer that will call methods onSearchFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
The maximum number of results that are returned per call. You can use
nextTokento get more results.- Parameters:
maxResults- The maximum number of results that are returned per call. You can usenextTokento get more results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sortBy
The field to sort results by. Valid values are
RELEVANCEandAVERAGE_CUSTOMER_RATING.- Parameters:
sortBy- The field to sort results by. Valid values areRELEVANCEandAVERAGE_CUSTOMER_RATING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sortBy
The field to sort results by. Valid values are
RELEVANCEandAVERAGE_CUSTOMER_RATING.- Parameters:
sortBy- The field to sort results by. Valid values areRELEVANCEandAVERAGE_CUSTOMER_RATING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sortOrder
The sort direction. Valid values are
DESCENDINGandASCENDING.- Parameters:
sortOrder- The sort direction. Valid values areDESCENDINGandASCENDING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sortOrder
The sort direction. Valid values are
DESCENDINGandASCENDING.- Parameters:
sortOrder- The sort direction. Valid values areDESCENDINGandASCENDING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If
nextTokenis returned, there are more results available. Make the call again using the returned token to retrieve the next page.- Parameters:
nextToken- IfnextTokenis returned, there are more results available. Make the call again using the returned token to retrieve the next page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SearchListingsRequest.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
SearchListingsRequest.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.
-