Interface SearchListingsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<SearchListingsResponse.Builder,,SearchListingsResponse> MarketplaceDiscoveryResponse.Builder,SdkBuilder<SearchListingsResponse.Builder,,SearchListingsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
SearchListingsResponse
-
Method Summary
Modifier and TypeMethodDescriptionlistingSummaries(Collection<ListingSummary> listingSummaries) The listing summaries matching the search criteria.listingSummaries(Consumer<ListingSummary.Builder>... listingSummaries) The listing summaries matching the search criteria.listingSummaries(ListingSummary... listingSummaries) The listing summaries matching the search criteria.IfnextTokenis returned, there are more results available.totalResults(Long totalResults) The total number of listings matching the search criteria.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.marketplacediscovery.model.MarketplaceDiscoveryResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
totalResults
The total number of listings matching the search criteria.
- Parameters:
totalResults- The total number of listings matching the search criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listingSummaries
The listing summaries matching the search criteria. Each summary includes the listing name, description, badges, categories, pricing models, reviews, and associated products.
- Parameters:
listingSummaries- The listing summaries matching the search criteria. Each summary includes the listing name, description, badges, categories, pricing models, reviews, and associated products.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listingSummaries
The listing summaries matching the search criteria. Each summary includes the listing name, description, badges, categories, pricing models, reviews, and associated products.
- Parameters:
listingSummaries- The listing summaries matching the search criteria. Each summary includes the listing name, description, badges, categories, pricing models, reviews, and associated products.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listingSummaries
SearchListingsResponse.Builder listingSummaries(Consumer<ListingSummary.Builder>... listingSummaries) The listing summaries matching the search criteria. Each summary includes the listing name, description, badges, categories, pricing models, reviews, and associated products.
This is a convenience method that creates an instance of theListingSummary.Builderavoiding the need to create one manually viaListingSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolistingSummaries(List<ListingSummary>).- Parameters:
listingSummaries- a consumer that will call methods onListingSummary.Builder- 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.
-