Interface MarketplaceDiscoveryAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
The AWS Marketplace Discovery API provides programmatic access to the AWS Marketplace catalog, including searching and browsing listings, retrieving product details and fulfillment options, and accessing public and private offer pricing and terms.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aMarketplaceDiscoveryAsyncClient.create()Create aMarketplaceDiscoveryAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<GetListingResponse> getListing(Consumer<GetListingRequest.Builder> getListingRequest) Provides details about a listing, such as descriptions, badges, categories, pricing model summaries, reviews, and associated products and offers.default CompletableFuture<GetListingResponse> getListing(GetListingRequest getListingRequest) Provides details about a listing, such as descriptions, badges, categories, pricing model summaries, reviews, and associated products and offers.default CompletableFuture<GetOfferResponse> getOffer(Consumer<GetOfferRequest.Builder> getOfferRequest) Provides details about an offer, such as the pricing model, seller of record, availability dates, badges, and associated products.default CompletableFuture<GetOfferResponse> getOffer(GetOfferRequest getOfferRequest) Provides details about an offer, such as the pricing model, seller of record, availability dates, badges, and associated products.default CompletableFuture<GetOfferSetResponse> getOfferSet(Consumer<GetOfferSetRequest.Builder> getOfferSetRequest) Provides details about an offer set, which is a bundle of offers across multiple products.default CompletableFuture<GetOfferSetResponse> getOfferSet(GetOfferSetRequest getOfferSetRequest) Provides details about an offer set, which is a bundle of offers across multiple products.default CompletableFuture<GetOfferTermsResponse> getOfferTerms(Consumer<GetOfferTermsRequest.Builder> getOfferTermsRequest) Returns the terms attached to an offer, such as pricing terms (usage-based, contract, BYOL, free trial), legal terms, payment schedules, validity terms, support terms, and renewal terms.default CompletableFuture<GetOfferTermsResponse> getOfferTerms(GetOfferTermsRequest getOfferTermsRequest) Returns the terms attached to an offer, such as pricing terms (usage-based, contract, BYOL, free trial), legal terms, payment schedules, validity terms, support terms, and renewal terms.default GetOfferTermsPublishergetOfferTermsPaginator(Consumer<GetOfferTermsRequest.Builder> getOfferTermsRequest) This is a variant ofgetOfferTerms(software.amazon.awssdk.services.marketplacediscovery.model.GetOfferTermsRequest)operation.default GetOfferTermsPublishergetOfferTermsPaginator(GetOfferTermsRequest getOfferTermsRequest) This is a variant ofgetOfferTerms(software.amazon.awssdk.services.marketplacediscovery.model.GetOfferTermsRequest)operation.default CompletableFuture<GetProductResponse> getProduct(Consumer<GetProductRequest.Builder> getProductRequest) Provides details about a product, such as descriptions, highlights, categories, fulfillment option summaries, promotional media, and seller engagement options.default CompletableFuture<GetProductResponse> getProduct(GetProductRequest getProductRequest) Provides details about a product, such as descriptions, highlights, categories, fulfillment option summaries, promotional media, and seller engagement options.listFulfillmentOptions(Consumer<ListFulfillmentOptionsRequest.Builder> listFulfillmentOptionsRequest) Returns the fulfillment options available for a product, including deployment details such as version information, operating systems, usage instructions, and release notes.listFulfillmentOptions(ListFulfillmentOptionsRequest listFulfillmentOptionsRequest) Returns the fulfillment options available for a product, including deployment details such as version information, operating systems, usage instructions, and release notes.default ListFulfillmentOptionsPublisherlistFulfillmentOptionsPaginator(Consumer<ListFulfillmentOptionsRequest.Builder> listFulfillmentOptionsRequest) This is a variant oflistFulfillmentOptions(software.amazon.awssdk.services.marketplacediscovery.model.ListFulfillmentOptionsRequest)operation.default ListFulfillmentOptionsPublisherlistFulfillmentOptionsPaginator(ListFulfillmentOptionsRequest listFulfillmentOptionsRequest) This is a variant oflistFulfillmentOptions(software.amazon.awssdk.services.marketplacediscovery.model.ListFulfillmentOptionsRequest)operation.listPurchaseOptions(Consumer<ListPurchaseOptionsRequest.Builder> listPurchaseOptionsRequest) Returns the purchase options (offers and offer sets) available to the buyer.listPurchaseOptions(ListPurchaseOptionsRequest listPurchaseOptionsRequest) Returns the purchase options (offers and offer sets) available to the buyer.default ListPurchaseOptionsPublisherlistPurchaseOptionsPaginator(Consumer<ListPurchaseOptionsRequest.Builder> listPurchaseOptionsRequest) This is a variant oflistPurchaseOptions(software.amazon.awssdk.services.marketplacediscovery.model.ListPurchaseOptionsRequest)operation.default ListPurchaseOptionsPublisherlistPurchaseOptionsPaginator(ListPurchaseOptionsRequest listPurchaseOptionsRequest) This is a variant oflistPurchaseOptions(software.amazon.awssdk.services.marketplacediscovery.model.ListPurchaseOptionsRequest)operation.default CompletableFuture<SearchFacetsResponse> searchFacets(Consumer<SearchFacetsRequest.Builder> searchFacetsRequest) Returns available facet values for filtering listings, such as categories, pricing models, fulfillment option types, publishers, and customer ratings.default CompletableFuture<SearchFacetsResponse> searchFacets(SearchFacetsRequest searchFacetsRequest) Returns available facet values for filtering listings, such as categories, pricing models, fulfillment option types, publishers, and customer ratings.default SearchFacetsPublishersearchFacetsPaginator(Consumer<SearchFacetsRequest.Builder> searchFacetsRequest) This is a variant ofsearchFacets(software.amazon.awssdk.services.marketplacediscovery.model.SearchFacetsRequest)operation.default SearchFacetsPublishersearchFacetsPaginator(SearchFacetsRequest searchFacetsRequest) This is a variant ofsearchFacets(software.amazon.awssdk.services.marketplacediscovery.model.SearchFacetsRequest)operation.default CompletableFuture<SearchListingsResponse> searchListings(Consumer<SearchListingsRequest.Builder> searchListingsRequest) Returns a list of product listings based on search criteria and filters.default CompletableFuture<SearchListingsResponse> searchListings(SearchListingsRequest searchListingsRequest) Returns a list of product listings based on search criteria and filters.default SearchListingsPublishersearchListingsPaginator(Consumer<SearchListingsRequest.Builder> searchListingsRequest) This is a variant ofsearchListings(software.amazon.awssdk.services.marketplacediscovery.model.SearchListingsRequest)operation.default SearchListingsPublishersearchListingsPaginator(SearchListingsRequest searchListingsRequest) This is a variant ofsearchListings(software.amazon.awssdk.services.marketplacediscovery.model.SearchListingsRequest)operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
getListing
Provides details about a listing, such as descriptions, badges, categories, pricing model summaries, reviews, and associated products and offers.
- Parameters:
getListingRequest-- Returns:
- A Java Future containing the result of the GetListing operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getListing
default CompletableFuture<GetListingResponse> getListing(Consumer<GetListingRequest.Builder> getListingRequest) Provides details about a listing, such as descriptions, badges, categories, pricing model summaries, reviews, and associated products and offers.
This is a convenience which creates an instance of the
GetListingRequest.Builderavoiding the need to create one manually viaGetListingRequest.builder()- Parameters:
getListingRequest- AConsumerthat will call methods onGetListingRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetListing operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOffer
Provides details about an offer, such as the pricing model, seller of record, availability dates, badges, and associated products.
- Parameters:
getOfferRequest-- Returns:
- A Java Future containing the result of the GetOffer operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOffer
default CompletableFuture<GetOfferResponse> getOffer(Consumer<GetOfferRequest.Builder> getOfferRequest) Provides details about an offer, such as the pricing model, seller of record, availability dates, badges, and associated products.
This is a convenience which creates an instance of the
GetOfferRequest.Builderavoiding the need to create one manually viaGetOfferRequest.builder()- Parameters:
getOfferRequest- AConsumerthat will call methods onGetOfferRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetOffer operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOfferSet
Provides details about an offer set, which is a bundle of offers across multiple products. Includes the seller, availability dates, buyer notes, and associated product-offer pairs.
- Parameters:
getOfferSetRequest-- Returns:
- A Java Future containing the result of the GetOfferSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOfferSet
default CompletableFuture<GetOfferSetResponse> getOfferSet(Consumer<GetOfferSetRequest.Builder> getOfferSetRequest) Provides details about an offer set, which is a bundle of offers across multiple products. Includes the seller, availability dates, buyer notes, and associated product-offer pairs.
This is a convenience which creates an instance of the
GetOfferSetRequest.Builderavoiding the need to create one manually viaGetOfferSetRequest.builder()- Parameters:
getOfferSetRequest- AConsumerthat will call methods onGetOfferSetRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetOfferSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOfferTerms
default CompletableFuture<GetOfferTermsResponse> getOfferTerms(GetOfferTermsRequest getOfferTermsRequest) Returns the terms attached to an offer, such as pricing terms (usage-based, contract, BYOL, free trial), legal terms, payment schedules, validity terms, support terms, and renewal terms.
- Parameters:
getOfferTermsRequest-- Returns:
- A Java Future containing the result of the GetOfferTerms operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOfferTerms
default CompletableFuture<GetOfferTermsResponse> getOfferTerms(Consumer<GetOfferTermsRequest.Builder> getOfferTermsRequest) Returns the terms attached to an offer, such as pricing terms (usage-based, contract, BYOL, free trial), legal terms, payment schedules, validity terms, support terms, and renewal terms.
This is a convenience which creates an instance of the
GetOfferTermsRequest.Builderavoiding the need to create one manually viaGetOfferTermsRequest.builder()- Parameters:
getOfferTermsRequest- AConsumerthat will call methods onGetOfferTermsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetOfferTerms operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOfferTermsPaginator
This is a variant of
getOfferTerms(software.amazon.awssdk.services.marketplacediscovery.model.GetOfferTermsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.marketplacediscovery.paginators.GetOfferTermsPublisher publisher = client.getOfferTermsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.marketplacediscovery.paginators.GetOfferTermsPublisher publisher = client.getOfferTermsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.marketplacediscovery.model.GetOfferTermsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.marketplacediscovery.model.GetOfferTermsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getOfferTerms(software.amazon.awssdk.services.marketplacediscovery.model.GetOfferTermsRequest)operation.- Parameters:
getOfferTermsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOfferTermsPaginator
default GetOfferTermsPublisher getOfferTermsPaginator(Consumer<GetOfferTermsRequest.Builder> getOfferTermsRequest) This is a variant of
getOfferTerms(software.amazon.awssdk.services.marketplacediscovery.model.GetOfferTermsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.marketplacediscovery.paginators.GetOfferTermsPublisher publisher = client.getOfferTermsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.marketplacediscovery.paginators.GetOfferTermsPublisher publisher = client.getOfferTermsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.marketplacediscovery.model.GetOfferTermsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.marketplacediscovery.model.GetOfferTermsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getOfferTerms(software.amazon.awssdk.services.marketplacediscovery.model.GetOfferTermsRequest)operation.
This is a convenience which creates an instance of the
GetOfferTermsRequest.Builderavoiding the need to create one manually viaGetOfferTermsRequest.builder()- Parameters:
getOfferTermsRequest- AConsumerthat will call methods onGetOfferTermsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getProduct
Provides details about a product, such as descriptions, highlights, categories, fulfillment option summaries, promotional media, and seller engagement options.
- Parameters:
getProductRequest-- Returns:
- A Java Future containing the result of the GetProduct operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getProduct
default CompletableFuture<GetProductResponse> getProduct(Consumer<GetProductRequest.Builder> getProductRequest) Provides details about a product, such as descriptions, highlights, categories, fulfillment option summaries, promotional media, and seller engagement options.
This is a convenience which creates an instance of the
GetProductRequest.Builderavoiding the need to create one manually viaGetProductRequest.builder()- Parameters:
getProductRequest- AConsumerthat will call methods onGetProductRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetProduct operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFulfillmentOptions
default CompletableFuture<ListFulfillmentOptionsResponse> listFulfillmentOptions(ListFulfillmentOptionsRequest listFulfillmentOptionsRequest) Returns the fulfillment options available for a product, including deployment details such as version information, operating systems, usage instructions, and release notes.
- Parameters:
listFulfillmentOptionsRequest-- Returns:
- A Java Future containing the result of the ListFulfillmentOptions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFulfillmentOptions
default CompletableFuture<ListFulfillmentOptionsResponse> listFulfillmentOptions(Consumer<ListFulfillmentOptionsRequest.Builder> listFulfillmentOptionsRequest) Returns the fulfillment options available for a product, including deployment details such as version information, operating systems, usage instructions, and release notes.
This is a convenience which creates an instance of the
ListFulfillmentOptionsRequest.Builderavoiding the need to create one manually viaListFulfillmentOptionsRequest.builder()- Parameters:
listFulfillmentOptionsRequest- AConsumerthat will call methods onListFulfillmentOptionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListFulfillmentOptions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFulfillmentOptionsPaginator
default ListFulfillmentOptionsPublisher listFulfillmentOptionsPaginator(ListFulfillmentOptionsRequest listFulfillmentOptionsRequest) This is a variant of
listFulfillmentOptions(software.amazon.awssdk.services.marketplacediscovery.model.ListFulfillmentOptionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.marketplacediscovery.paginators.ListFulfillmentOptionsPublisher publisher = client.listFulfillmentOptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.marketplacediscovery.paginators.ListFulfillmentOptionsPublisher publisher = client.listFulfillmentOptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.marketplacediscovery.model.ListFulfillmentOptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.marketplacediscovery.model.ListFulfillmentOptionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFulfillmentOptions(software.amazon.awssdk.services.marketplacediscovery.model.ListFulfillmentOptionsRequest)operation.- Parameters:
listFulfillmentOptionsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFulfillmentOptionsPaginator
default ListFulfillmentOptionsPublisher listFulfillmentOptionsPaginator(Consumer<ListFulfillmentOptionsRequest.Builder> listFulfillmentOptionsRequest) This is a variant of
listFulfillmentOptions(software.amazon.awssdk.services.marketplacediscovery.model.ListFulfillmentOptionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.marketplacediscovery.paginators.ListFulfillmentOptionsPublisher publisher = client.listFulfillmentOptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.marketplacediscovery.paginators.ListFulfillmentOptionsPublisher publisher = client.listFulfillmentOptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.marketplacediscovery.model.ListFulfillmentOptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.marketplacediscovery.model.ListFulfillmentOptionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFulfillmentOptions(software.amazon.awssdk.services.marketplacediscovery.model.ListFulfillmentOptionsRequest)operation.
This is a convenience which creates an instance of the
ListFulfillmentOptionsRequest.Builderavoiding the need to create one manually viaListFulfillmentOptionsRequest.builder()- Parameters:
listFulfillmentOptionsRequest- AConsumerthat will call methods onListFulfillmentOptionsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- ResourceNotFoundException The specified resource doesn't exist.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPurchaseOptions
default CompletableFuture<ListPurchaseOptionsResponse> listPurchaseOptions(ListPurchaseOptionsRequest listPurchaseOptionsRequest) Returns the purchase options (offers and offer sets) available to the buyer. You can filter results by product, seller, purchase option type, visibility scope, and availability status.
You must include at least one of the following filters in the request: a
PRODUCT_IDfilter to specify the product for which to retrieve purchase options, or aVISIBILITY_SCOPEfilter to retrieve purchase options by visibility.- Parameters:
listPurchaseOptionsRequest-- Returns:
- A Java Future containing the result of the ListPurchaseOptions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPurchaseOptions
default CompletableFuture<ListPurchaseOptionsResponse> listPurchaseOptions(Consumer<ListPurchaseOptionsRequest.Builder> listPurchaseOptionsRequest) Returns the purchase options (offers and offer sets) available to the buyer. You can filter results by product, seller, purchase option type, visibility scope, and availability status.
You must include at least one of the following filters in the request: a
PRODUCT_IDfilter to specify the product for which to retrieve purchase options, or aVISIBILITY_SCOPEfilter to retrieve purchase options by visibility.
This is a convenience which creates an instance of the
ListPurchaseOptionsRequest.Builderavoiding the need to create one manually viaListPurchaseOptionsRequest.builder()- Parameters:
listPurchaseOptionsRequest- AConsumerthat will call methods onListPurchaseOptionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListPurchaseOptions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPurchaseOptionsPaginator
default ListPurchaseOptionsPublisher listPurchaseOptionsPaginator(ListPurchaseOptionsRequest listPurchaseOptionsRequest) This is a variant of
listPurchaseOptions(software.amazon.awssdk.services.marketplacediscovery.model.ListPurchaseOptionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.marketplacediscovery.paginators.ListPurchaseOptionsPublisher publisher = client.listPurchaseOptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.marketplacediscovery.paginators.ListPurchaseOptionsPublisher publisher = client.listPurchaseOptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.marketplacediscovery.model.ListPurchaseOptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.marketplacediscovery.model.ListPurchaseOptionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPurchaseOptions(software.amazon.awssdk.services.marketplacediscovery.model.ListPurchaseOptionsRequest)operation.- Parameters:
listPurchaseOptionsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPurchaseOptionsPaginator
default ListPurchaseOptionsPublisher listPurchaseOptionsPaginator(Consumer<ListPurchaseOptionsRequest.Builder> listPurchaseOptionsRequest) This is a variant of
listPurchaseOptions(software.amazon.awssdk.services.marketplacediscovery.model.ListPurchaseOptionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.marketplacediscovery.paginators.ListPurchaseOptionsPublisher publisher = client.listPurchaseOptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.marketplacediscovery.paginators.ListPurchaseOptionsPublisher publisher = client.listPurchaseOptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.marketplacediscovery.model.ListPurchaseOptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.marketplacediscovery.model.ListPurchaseOptionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPurchaseOptions(software.amazon.awssdk.services.marketplacediscovery.model.ListPurchaseOptionsRequest)operation.
This is a convenience which creates an instance of the
ListPurchaseOptionsRequest.Builderavoiding the need to create one manually viaListPurchaseOptionsRequest.builder()- Parameters:
listPurchaseOptionsRequest- AConsumerthat will call methods onListPurchaseOptionsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchFacets
default CompletableFuture<SearchFacetsResponse> searchFacets(SearchFacetsRequest searchFacetsRequest) Returns available facet values for filtering listings, such as categories, pricing models, fulfillment option types, publishers, and customer ratings. Each facet value includes a count of matching listings.
- Parameters:
searchFacetsRequest-- Returns:
- A Java Future containing the result of the SearchFacets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchFacets
default CompletableFuture<SearchFacetsResponse> searchFacets(Consumer<SearchFacetsRequest.Builder> searchFacetsRequest) Returns available facet values for filtering listings, such as categories, pricing models, fulfillment option types, publishers, and customer ratings. Each facet value includes a count of matching listings.
This is a convenience which creates an instance of the
SearchFacetsRequest.Builderavoiding the need to create one manually viaSearchFacetsRequest.builder()- Parameters:
searchFacetsRequest- AConsumerthat will call methods onSearchFacetsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the SearchFacets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchFacetsPaginator
This is a variant of
searchFacets(software.amazon.awssdk.services.marketplacediscovery.model.SearchFacetsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.marketplacediscovery.paginators.SearchFacetsPublisher publisher = client.searchFacetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.marketplacediscovery.paginators.SearchFacetsPublisher publisher = client.searchFacetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.marketplacediscovery.model.SearchFacetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.marketplacediscovery.model.SearchFacetsResponse response) { //... }; });Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
searchFacets(software.amazon.awssdk.services.marketplacediscovery.model.SearchFacetsRequest)operation.- Parameters:
searchFacetsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchFacetsPaginator
default SearchFacetsPublisher searchFacetsPaginator(Consumer<SearchFacetsRequest.Builder> searchFacetsRequest) This is a variant of
searchFacets(software.amazon.awssdk.services.marketplacediscovery.model.SearchFacetsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.marketplacediscovery.paginators.SearchFacetsPublisher publisher = client.searchFacetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.marketplacediscovery.paginators.SearchFacetsPublisher publisher = client.searchFacetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.marketplacediscovery.model.SearchFacetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.marketplacediscovery.model.SearchFacetsResponse response) { //... }; });Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
searchFacets(software.amazon.awssdk.services.marketplacediscovery.model.SearchFacetsRequest)operation.
This is a convenience which creates an instance of the
SearchFacetsRequest.Builderavoiding the need to create one manually viaSearchFacetsRequest.builder()- Parameters:
searchFacetsRequest- AConsumerthat will call methods onSearchFacetsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchListings
default CompletableFuture<SearchListingsResponse> searchListings(SearchListingsRequest searchListingsRequest) Returns a list of product listings based on search criteria and filters. You can search by keyword, filter by category, pricing model, fulfillment type, and other attributes, and sort results by relevance or customer rating.
- Parameters:
searchListingsRequest-- Returns:
- A Java Future containing the result of the SearchListings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchListings
default CompletableFuture<SearchListingsResponse> searchListings(Consumer<SearchListingsRequest.Builder> searchListingsRequest) Returns a list of product listings based on search criteria and filters. You can search by keyword, filter by category, pricing model, fulfillment type, and other attributes, and sort results by relevance or customer rating.
This is a convenience which creates an instance of the
SearchListingsRequest.Builderavoiding the need to create one manually viaSearchListingsRequest.builder()- Parameters:
searchListingsRequest- AConsumerthat will call methods onSearchListingsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the SearchListings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchListingsPaginator
default SearchListingsPublisher searchListingsPaginator(SearchListingsRequest searchListingsRequest) This is a variant of
searchListings(software.amazon.awssdk.services.marketplacediscovery.model.SearchListingsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.marketplacediscovery.paginators.SearchListingsPublisher publisher = client.searchListingsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.marketplacediscovery.paginators.SearchListingsPublisher publisher = client.searchListingsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.marketplacediscovery.model.SearchListingsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.marketplacediscovery.model.SearchListingsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
searchListings(software.amazon.awssdk.services.marketplacediscovery.model.SearchListingsRequest)operation.- Parameters:
searchListingsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchListingsPaginator
default SearchListingsPublisher searchListingsPaginator(Consumer<SearchListingsRequest.Builder> searchListingsRequest) This is a variant of
searchListings(software.amazon.awssdk.services.marketplacediscovery.model.SearchListingsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.marketplacediscovery.paginators.SearchListingsPublisher publisher = client.searchListingsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.marketplacediscovery.paginators.SearchListingsPublisher publisher = client.searchListingsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.marketplacediscovery.model.SearchListingsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.marketplacediscovery.model.SearchListingsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
searchListings(software.amazon.awssdk.services.marketplacediscovery.model.SearchListingsRequest)operation.
This is a convenience which creates an instance of the
SearchListingsRequest.Builderavoiding the need to create one manually viaSearchListingsRequest.builder()- Parameters:
searchListingsRequest- AConsumerthat will call methods onSearchListingsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- ValidationException The input fails to satisfy the constraints specified by the service.
- InternalServerException Unexpected error during processing of the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MarketplaceDiscoveryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aMarketplaceDiscoveryAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aMarketplaceDiscoveryAsyncClient.
-