Interface PartnerCentralRevenueMeasurementAsyncClient
- 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.
AWS Partner Central Revenue Measurement API for creating, managing, and tracking revenue attributions and their allocations with deal entities such as offers and opportunities.
-
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 aPartnerCentralRevenueMeasurementAsyncClient.create()Create aPartnerCentralRevenueMeasurementAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.createMarketplaceRevenueShare(Consumer<CreateMarketplaceRevenueShareRequest.Builder> createMarketplaceRevenueShareRequest) Creates a new marketplace revenue share resource in the specified catalog.createMarketplaceRevenueShare(CreateMarketplaceRevenueShareRequest createMarketplaceRevenueShareRequest) Creates a new marketplace revenue share resource in the specified catalog.createMarketplaceRevenueShareAllocation(Consumer<CreateMarketplaceRevenueShareAllocationRequest.Builder> createMarketplaceRevenueShareAllocationRequest) Creates a new marketplace revenue share allocation for the specified product.createMarketplaceRevenueShareAllocation(CreateMarketplaceRevenueShareAllocationRequest createMarketplaceRevenueShareAllocationRequest) Creates a new marketplace revenue share allocation for the specified product.createRevenueAttribution(Consumer<CreateRevenueAttributionRequest.Builder> createRevenueAttributionRequest) Creates a new revenue attribution record in the specified catalog.createRevenueAttribution(CreateRevenueAttributionRequest createRevenueAttributionRequest) Creates a new revenue attribution record in the specified catalog.getMarketplaceRevenueShare(Consumer<GetMarketplaceRevenueShareRequest.Builder> getMarketplaceRevenueShareRequest) Retrieves the details of a specific marketplace revenue share.getMarketplaceRevenueShare(GetMarketplaceRevenueShareRequest getMarketplaceRevenueShareRequest) Retrieves the details of a specific marketplace revenue share.getMarketplaceRevenueShareAllocation(Consumer<GetMarketplaceRevenueShareAllocationRequest.Builder> getMarketplaceRevenueShareAllocationRequest) Retrieves the details of a specific marketplace revenue share allocation.getMarketplaceRevenueShareAllocation(GetMarketplaceRevenueShareAllocationRequest getMarketplaceRevenueShareAllocationRequest) Retrieves the details of a specific marketplace revenue share allocation.getRevenueAttribution(Consumer<GetRevenueAttributionRequest.Builder> getRevenueAttributionRequest) Retrieves the details of a specific revenue attribution.getRevenueAttribution(GetRevenueAttributionRequest getRevenueAttributionRequest) Retrieves the details of a specific revenue attribution.getRevenueAttributionAllocation(Consumer<GetRevenueAttributionAllocationRequest.Builder> getRevenueAttributionAllocationRequest) Retrieves a single allocation by its RevenueAttributionAllocationId.getRevenueAttributionAllocation(GetRevenueAttributionAllocationRequest getRevenueAttributionAllocationRequest) Retrieves a single allocation by its RevenueAttributionAllocationId.getRevenueAttributionAllocationsTask(Consumer<GetRevenueAttributionAllocationsTaskRequest.Builder> getRevenueAttributionAllocationsTaskRequest) Retrieves the current status of a previously submitted allocations task.getRevenueAttributionAllocationsTask(GetRevenueAttributionAllocationsTaskRequest getRevenueAttributionAllocationsTaskRequest) Retrieves the current status of a previously submitted allocations task.listMarketplaceRevenueShareAllocations(Consumer<ListMarketplaceRevenueShareAllocationsRequest.Builder> listMarketplaceRevenueShareAllocationsRequest) Returns a paginated list of allocations under a marketplace revenue share, with optional filtering by status and effective date range.listMarketplaceRevenueShareAllocations(ListMarketplaceRevenueShareAllocationsRequest listMarketplaceRevenueShareAllocationsRequest) Returns a paginated list of allocations under a marketplace revenue share, with optional filtering by status and effective date range.listMarketplaceRevenueShareAllocationsPaginator(Consumer<ListMarketplaceRevenueShareAllocationsRequest.Builder> listMarketplaceRevenueShareAllocationsRequest) listMarketplaceRevenueShareAllocationsPaginator(ListMarketplaceRevenueShareAllocationsRequest listMarketplaceRevenueShareAllocationsRequest) listMarketplaceRevenueShares(Consumer<ListMarketplaceRevenueSharesRequest.Builder> listMarketplaceRevenueSharesRequest) Returns a paginated list of marketplace revenue shares with optional filters.listMarketplaceRevenueShares(ListMarketplaceRevenueSharesRequest listMarketplaceRevenueSharesRequest) Returns a paginated list of marketplace revenue shares with optional filters.listMarketplaceRevenueSharesPaginator(Consumer<ListMarketplaceRevenueSharesRequest.Builder> listMarketplaceRevenueSharesRequest) listMarketplaceRevenueSharesPaginator(ListMarketplaceRevenueSharesRequest listMarketplaceRevenueSharesRequest) listRevenueAttributionAllocations(Consumer<ListRevenueAttributionAllocationsRequest.Builder> listRevenueAttributionAllocationsRequest) Returns a paginated list of committed allocations with support for filtering by entity, customer, status, or date range.listRevenueAttributionAllocations(ListRevenueAttributionAllocationsRequest listRevenueAttributionAllocationsRequest) Returns a paginated list of committed allocations with support for filtering by entity, customer, status, or date range.listRevenueAttributionAllocationsPaginator(Consumer<ListRevenueAttributionAllocationsRequest.Builder> listRevenueAttributionAllocationsRequest) listRevenueAttributionAllocationsPaginator(ListRevenueAttributionAllocationsRequest listRevenueAttributionAllocationsRequest) listRevenueAttributions(Consumer<ListRevenueAttributionsRequest.Builder> listRevenueAttributionsRequest) Returns a paginated list of revenue attributions with optional filters.listRevenueAttributions(ListRevenueAttributionsRequest listRevenueAttributionsRequest) Returns a paginated list of revenue attributions with optional filters.default ListRevenueAttributionsPublisherlistRevenueAttributionsPaginator(Consumer<ListRevenueAttributionsRequest.Builder> listRevenueAttributionsRequest) This is a variant oflistRevenueAttributions(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsRequest)operation.default ListRevenueAttributionsPublisherlistRevenueAttributionsPaginator(ListRevenueAttributionsRequest listRevenueAttributionsRequest) This is a variant oflistRevenueAttributions(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsRequest)operation.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the tags associated with the specified resource.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns the tags associated with the specified resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstartRevenueAttributionAllocationsTask(Consumer<StartRevenueAttributionAllocationsTaskRequest.Builder> startRevenueAttributionAllocationsTaskRequest) Submits a batch of up to 250 allocation changes (CREATE and/or UPDATE) for asynchronous processing.startRevenueAttributionAllocationsTask(StartRevenueAttributionAllocationsTaskRequest startRevenueAttributionAllocationsTaskRequest) Submits a batch of up to 250 allocation changes (CREATE and/or UPDATE) for asynchronous processing.default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or overwrites one or more tags for the specified resource.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Adds or overwrites one or more tags for the specified resource.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from the specified resource.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes one or more tags from the specified resource.updateMarketplaceRevenueShareAllocation(Consumer<UpdateMarketplaceRevenueShareAllocationRequest.Builder> updateMarketplaceRevenueShareAllocationRequest) Updates an existing marketplace revenue share allocation.updateMarketplaceRevenueShareAllocation(UpdateMarketplaceRevenueShareAllocationRequest updateMarketplaceRevenueShareAllocationRequest) Updates an existing marketplace revenue share allocation.updateRevenueAttribution(Consumer<UpdateRevenueAttributionRequest.Builder> updateRevenueAttributionRequest) Updates an existing revenue attribution record.updateRevenueAttribution(UpdateRevenueAttributionRequest updateRevenueAttributionRequest) Updates an existing revenue attribution record.Methods 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
-
createRevenueAttribution
default CompletableFuture<CreateRevenueAttributionResponse> createRevenueAttribution(CreateRevenueAttributionRequest createRevenueAttributionRequest) Creates a new revenue attribution record in the specified catalog.
- Parameters:
createRevenueAttributionRequest-- Returns:
- A Java Future containing the result of the CreateRevenueAttribution 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.- ServiceQuotaExceededException The request would exceed a service quota limit.
- ThrottlingException The request was throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createRevenueAttribution
default CompletableFuture<CreateRevenueAttributionResponse> createRevenueAttribution(Consumer<CreateRevenueAttributionRequest.Builder> createRevenueAttributionRequest) Creates a new revenue attribution record in the specified catalog.
This is a convenience which creates an instance of the
CreateRevenueAttributionRequest.Builderavoiding the need to create one manually viaCreateRevenueAttributionRequest.builder()- Parameters:
createRevenueAttributionRequest- AConsumerthat will call methods onCreateRevenueAttributionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateRevenueAttribution 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.- ServiceQuotaExceededException The request would exceed a service quota limit.
- ThrottlingException The request was throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRevenueAttribution
default CompletableFuture<GetRevenueAttributionResponse> getRevenueAttribution(GetRevenueAttributionRequest getRevenueAttributionRequest) Retrieves the details of a specific revenue attribution.
- Parameters:
getRevenueAttributionRequest-- Returns:
- A Java Future containing the result of the GetRevenueAttribution 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRevenueAttribution
default CompletableFuture<GetRevenueAttributionResponse> getRevenueAttribution(Consumer<GetRevenueAttributionRequest.Builder> getRevenueAttributionRequest) Retrieves the details of a specific revenue attribution.
This is a convenience which creates an instance of the
GetRevenueAttributionRequest.Builderavoiding the need to create one manually viaGetRevenueAttributionRequest.builder()- Parameters:
getRevenueAttributionRequest- AConsumerthat will call methods onGetRevenueAttributionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetRevenueAttribution 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRevenueAttributionAllocation
default CompletableFuture<GetRevenueAttributionAllocationResponse> getRevenueAttributionAllocation(GetRevenueAttributionAllocationRequest getRevenueAttributionAllocationRequest) Retrieves a single allocation by its RevenueAttributionAllocationId. Supports optional point-in-time version queries.
- Parameters:
getRevenueAttributionAllocationRequest-- Returns:
- A Java Future containing the result of the GetRevenueAttributionAllocation 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRevenueAttributionAllocation
default CompletableFuture<GetRevenueAttributionAllocationResponse> getRevenueAttributionAllocation(Consumer<GetRevenueAttributionAllocationRequest.Builder> getRevenueAttributionAllocationRequest) Retrieves a single allocation by its RevenueAttributionAllocationId. Supports optional point-in-time version queries.
This is a convenience which creates an instance of the
GetRevenueAttributionAllocationRequest.Builderavoiding the need to create one manually viaGetRevenueAttributionAllocationRequest.builder()- Parameters:
getRevenueAttributionAllocationRequest- AConsumerthat will call methods onGetRevenueAttributionAllocationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetRevenueAttributionAllocation 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRevenueAttributionAllocationsTask
default CompletableFuture<GetRevenueAttributionAllocationsTaskResponse> getRevenueAttributionAllocationsTask(GetRevenueAttributionAllocationsTaskRequest getRevenueAttributionAllocationsTaskRequest) Retrieves the current status of a previously submitted allocations task. When COMPLETE, includes the latest revision. When FAILED, includes error details.
- Parameters:
getRevenueAttributionAllocationsTaskRequest-- Returns:
- A Java Future containing the result of the GetRevenueAttributionAllocationsTask 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRevenueAttributionAllocationsTask
default CompletableFuture<GetRevenueAttributionAllocationsTaskResponse> getRevenueAttributionAllocationsTask(Consumer<GetRevenueAttributionAllocationsTaskRequest.Builder> getRevenueAttributionAllocationsTaskRequest) Retrieves the current status of a previously submitted allocations task. When COMPLETE, includes the latest revision. When FAILED, includes error details.
This is a convenience which creates an instance of the
GetRevenueAttributionAllocationsTaskRequest.Builderavoiding the need to create one manually viaGetRevenueAttributionAllocationsTaskRequest.builder()- Parameters:
getRevenueAttributionAllocationsTaskRequest- AConsumerthat will call methods onGetRevenueAttributionAllocationsTaskRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetRevenueAttributionAllocationsTask 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRevenueAttributionAllocations
default CompletableFuture<ListRevenueAttributionAllocationsResponse> listRevenueAttributionAllocations(ListRevenueAttributionAllocationsRequest listRevenueAttributionAllocationsRequest) Returns a paginated list of committed allocations with support for filtering by entity, customer, status, or date range.
- Parameters:
listRevenueAttributionAllocationsRequest-- Returns:
- A Java Future containing the result of the ListRevenueAttributionAllocations 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRevenueAttributionAllocations
default CompletableFuture<ListRevenueAttributionAllocationsResponse> listRevenueAttributionAllocations(Consumer<ListRevenueAttributionAllocationsRequest.Builder> listRevenueAttributionAllocationsRequest) Returns a paginated list of committed allocations with support for filtering by entity, customer, status, or date range.
This is a convenience which creates an instance of the
ListRevenueAttributionAllocationsRequest.Builderavoiding the need to create one manually viaListRevenueAttributionAllocationsRequest.builder()- Parameters:
listRevenueAttributionAllocationsRequest- AConsumerthat will call methods onListRevenueAttributionAllocationsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListRevenueAttributionAllocations 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRevenueAttributionAllocationsPaginator
default ListRevenueAttributionAllocationsPublisher listRevenueAttributionAllocationsPaginator(ListRevenueAttributionAllocationsRequest listRevenueAttributionAllocationsRequest) This is a variant of
listRevenueAttributionAllocations(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionAllocationsRequest)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.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionAllocationsPublisher publisher = client.listRevenueAttributionAllocationsPaginator(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.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionAllocationsPublisher publisher = client.listRevenueAttributionAllocationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionAllocationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionAllocationsResponse 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
listRevenueAttributionAllocations(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionAllocationsRequest)operation.- Parameters:
listRevenueAttributionAllocationsRequest-- 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRevenueAttributionAllocationsPaginator
default ListRevenueAttributionAllocationsPublisher listRevenueAttributionAllocationsPaginator(Consumer<ListRevenueAttributionAllocationsRequest.Builder> listRevenueAttributionAllocationsRequest) This is a variant of
listRevenueAttributionAllocations(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionAllocationsRequest)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.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionAllocationsPublisher publisher = client.listRevenueAttributionAllocationsPaginator(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.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionAllocationsPublisher publisher = client.listRevenueAttributionAllocationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionAllocationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionAllocationsResponse 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
listRevenueAttributionAllocations(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionAllocationsRequest)operation.
This is a convenience which creates an instance of the
ListRevenueAttributionAllocationsRequest.Builderavoiding the need to create one manually viaListRevenueAttributionAllocationsRequest.builder()- Parameters:
listRevenueAttributionAllocationsRequest- AConsumerthat will call methods onListRevenueAttributionAllocationsRequest.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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRevenueAttributions
default CompletableFuture<ListRevenueAttributionsResponse> listRevenueAttributions(ListRevenueAttributionsRequest listRevenueAttributionsRequest) Returns a paginated list of revenue attributions with optional filters.
- Parameters:
listRevenueAttributionsRequest-- Returns:
- A Java Future containing the result of the ListRevenueAttributions 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRevenueAttributions
default CompletableFuture<ListRevenueAttributionsResponse> listRevenueAttributions(Consumer<ListRevenueAttributionsRequest.Builder> listRevenueAttributionsRequest) Returns a paginated list of revenue attributions with optional filters.
This is a convenience which creates an instance of the
ListRevenueAttributionsRequest.Builderavoiding the need to create one manually viaListRevenueAttributionsRequest.builder()- Parameters:
listRevenueAttributionsRequest- AConsumerthat will call methods onListRevenueAttributionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListRevenueAttributions 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRevenueAttributionsPaginator
default ListRevenueAttributionsPublisher listRevenueAttributionsPaginator(ListRevenueAttributionsRequest listRevenueAttributionsRequest) This is a variant of
listRevenueAttributions(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsRequest)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.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionsPublisher publisher = client.listRevenueAttributionsPaginator(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.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionsPublisher publisher = client.listRevenueAttributionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsResponse 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
listRevenueAttributions(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsRequest)operation.- Parameters:
listRevenueAttributionsRequest-- 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRevenueAttributionsPaginator
default ListRevenueAttributionsPublisher listRevenueAttributionsPaginator(Consumer<ListRevenueAttributionsRequest.Builder> listRevenueAttributionsRequest) This is a variant of
listRevenueAttributions(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsRequest)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.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionsPublisher publisher = client.listRevenueAttributionsPaginator(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.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionsPublisher publisher = client.listRevenueAttributionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsResponse 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
listRevenueAttributions(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsRequest)operation.
This is a convenience which creates an instance of the
ListRevenueAttributionsRequest.Builderavoiding the need to create one manually viaListRevenueAttributionsRequest.builder()- Parameters:
listRevenueAttributionsRequest- AConsumerthat will call methods onListRevenueAttributionsRequest.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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns the tags associated with the specified resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- A Java Future containing the result of the ListTagsForResource 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the tags associated with the specified resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startRevenueAttributionAllocationsTask
default CompletableFuture<StartRevenueAttributionAllocationsTaskResponse> startRevenueAttributionAllocationsTask(StartRevenueAttributionAllocationsTaskRequest startRevenueAttributionAllocationsTaskRequest) Submits a batch of up to 250 allocation changes (CREATE and/or UPDATE) for asynchronous processing. Returns a TaskId for tracking.
- Parameters:
startRevenueAttributionAllocationsTaskRequest-- Returns:
- A Java Future containing the result of the StartRevenueAttributionAllocationsTask 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startRevenueAttributionAllocationsTask
default CompletableFuture<StartRevenueAttributionAllocationsTaskResponse> startRevenueAttributionAllocationsTask(Consumer<StartRevenueAttributionAllocationsTaskRequest.Builder> startRevenueAttributionAllocationsTaskRequest) Submits a batch of up to 250 allocation changes (CREATE and/or UPDATE) for asynchronous processing. Returns a TaskId for tracking.
This is a convenience which creates an instance of the
StartRevenueAttributionAllocationsTaskRequest.Builderavoiding the need to create one manually viaStartRevenueAttributionAllocationsTaskRequest.builder()- Parameters:
startRevenueAttributionAllocationsTaskRequest- AConsumerthat will call methods onStartRevenueAttributionAllocationsTaskRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StartRevenueAttributionAllocationsTask 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Adds or overwrites one or more tags for the specified resource.
- Parameters:
tagResourceRequest-- Returns:
- A Java Future containing the result of the TagResource 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or overwrites one or more tags for the specified resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the TagResource 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes one or more tags from the specified resource.
- Parameters:
untagResourceRequest-- Returns:
- A Java Future containing the result of the UntagResource 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from the specified resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UntagResource 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceNotFoundException The specified resource was not found.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateRevenueAttribution
default CompletableFuture<UpdateRevenueAttributionResponse> updateRevenueAttribution(UpdateRevenueAttributionRequest updateRevenueAttributionRequest) Updates an existing revenue attribution record.
- Parameters:
updateRevenueAttributionRequest-- Returns:
- A Java Future containing the result of the UpdateRevenueAttribution 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateRevenueAttribution
default CompletableFuture<UpdateRevenueAttributionResponse> updateRevenueAttribution(Consumer<UpdateRevenueAttributionRequest.Builder> updateRevenueAttributionRequest) Updates an existing revenue attribution record.
This is a convenience which creates an instance of the
UpdateRevenueAttributionRequest.Builderavoiding the need to create one manually viaUpdateRevenueAttributionRequest.builder()- Parameters:
updateRevenueAttributionRequest- AConsumerthat will call methods onUpdateRevenueAttributionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateRevenueAttribution 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 throttled due to too many requests. Retry your request.
- ValidationException The request failed validation due to invalid input parameters.
- AccessDeniedException The request was denied due to insufficient permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The specified resource was not found.
- 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.
- PartnerCentralRevenueMeasurementException 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 aPartnerCentralRevenueMeasurementAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aPartnerCentralRevenueMeasurementAsyncClient.