Interface PartnerCentralRevenueMeasurementClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
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 aPartnerCentralRevenueMeasurementClient.create()Create aPartnerCentralRevenueMeasurementClientwith 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.default CreateRevenueAttributionResponsecreateRevenueAttribution(Consumer<CreateRevenueAttributionRequest.Builder> createRevenueAttributionRequest) Creates a new revenue attribution record in the specified catalog.default CreateRevenueAttributionResponsecreateRevenueAttribution(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.default GetRevenueAttributionResponsegetRevenueAttribution(Consumer<GetRevenueAttributionRequest.Builder> getRevenueAttributionRequest) Retrieves the details of a specific revenue attribution.default GetRevenueAttributionResponsegetRevenueAttribution(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) default ListRevenueAttributionsResponselistRevenueAttributions(Consumer<ListRevenueAttributionsRequest.Builder> listRevenueAttributionsRequest) Returns a paginated list of revenue attributions with optional filters.default ListRevenueAttributionsResponselistRevenueAttributions(ListRevenueAttributionsRequest listRevenueAttributionsRequest) Returns a paginated list of revenue attributions with optional filters.default ListRevenueAttributionsIterablelistRevenueAttributionsPaginator(Consumer<ListRevenueAttributionsRequest.Builder> listRevenueAttributionsRequest) This is a variant oflistRevenueAttributions(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsRequest)operation.default ListRevenueAttributionsIterablelistRevenueAttributionsPaginator(ListRevenueAttributionsRequest listRevenueAttributionsRequest) This is a variant oflistRevenueAttributions(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the tags associated with the specified resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns the tags associated with the specified resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatastartRevenueAttributionAllocationsTask(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 TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or overwrites one or more tags for the specified resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds or overwrites one or more tags for the specified resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from the specified resource.default UntagResourceResponseuntagResource(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.default UpdateRevenueAttributionResponseupdateRevenueAttribution(Consumer<UpdateRevenueAttributionRequest.Builder> updateRevenueAttributionRequest) Updates an existing revenue attribution record.default UpdateRevenueAttributionResponseupdateRevenueAttribution(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 CreateRevenueAttributionResponse createRevenueAttribution(CreateRevenueAttributionRequest createRevenueAttributionRequest) throws ServiceQuotaExceededException, ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException Creates a new revenue attribution record in the specified catalog.
- Parameters:
createRevenueAttributionRequest-- Returns:
- Result of the CreateRevenueAttribution operation returned by the service.
- See Also:
-
createRevenueAttribution
default CreateRevenueAttributionResponse createRevenueAttribution(Consumer<CreateRevenueAttributionRequest.Builder> createRevenueAttributionRequest) throws ServiceQuotaExceededException, ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException 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:
- Result of the CreateRevenueAttribution operation returned by the service.
- See Also:
-
getRevenueAttribution
default GetRevenueAttributionResponse getRevenueAttribution(GetRevenueAttributionRequest getRevenueAttributionRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException Retrieves the details of a specific revenue attribution.
- Parameters:
getRevenueAttributionRequest-- Returns:
- Result of the GetRevenueAttribution operation returned by the service.
- See Also:
-
getRevenueAttribution
default GetRevenueAttributionResponse getRevenueAttribution(Consumer<GetRevenueAttributionRequest.Builder> getRevenueAttributionRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException 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:
- Result of the GetRevenueAttribution operation returned by the service.
- See Also:
-
getRevenueAttributionAllocation
default GetRevenueAttributionAllocationResponse getRevenueAttributionAllocation(GetRevenueAttributionAllocationRequest getRevenueAttributionAllocationRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException Retrieves a single allocation by its RevenueAttributionAllocationId. Supports optional point-in-time version queries.
- Parameters:
getRevenueAttributionAllocationRequest-- Returns:
- Result of the GetRevenueAttributionAllocation operation returned by the service.
- See Also:
-
getRevenueAttributionAllocation
default GetRevenueAttributionAllocationResponse getRevenueAttributionAllocation(Consumer<GetRevenueAttributionAllocationRequest.Builder> getRevenueAttributionAllocationRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException 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:
- Result of the GetRevenueAttributionAllocation operation returned by the service.
- See Also:
-
getRevenueAttributionAllocationsTask
default GetRevenueAttributionAllocationsTaskResponse getRevenueAttributionAllocationsTask(GetRevenueAttributionAllocationsTaskRequest getRevenueAttributionAllocationsTaskRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException Retrieves the current status of a previously submitted allocations task. When COMPLETE, includes the latest revision. When FAILED, includes error details.
- Parameters:
getRevenueAttributionAllocationsTaskRequest-- Returns:
- Result of the GetRevenueAttributionAllocationsTask operation returned by the service.
- See Also:
-
getRevenueAttributionAllocationsTask
default GetRevenueAttributionAllocationsTaskResponse getRevenueAttributionAllocationsTask(Consumer<GetRevenueAttributionAllocationsTaskRequest.Builder> getRevenueAttributionAllocationsTaskRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException 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:
- Result of the GetRevenueAttributionAllocationsTask operation returned by the service.
- See Also:
-
listRevenueAttributionAllocations
default ListRevenueAttributionAllocationsResponse listRevenueAttributionAllocations(ListRevenueAttributionAllocationsRequest listRevenueAttributionAllocationsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException Returns a paginated list of committed allocations with support for filtering by entity, customer, status, or date range.
- Parameters:
listRevenueAttributionAllocationsRequest-- Returns:
- Result of the ListRevenueAttributionAllocations operation returned by the service.
- See Also:
-
listRevenueAttributionAllocations
default ListRevenueAttributionAllocationsResponse listRevenueAttributionAllocations(Consumer<ListRevenueAttributionAllocationsRequest.Builder> listRevenueAttributionAllocationsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException 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:
- Result of the ListRevenueAttributionAllocations operation returned by the service.
- See Also:
-
listRevenueAttributionAllocationsPaginator
default ListRevenueAttributionAllocationsIterable listRevenueAttributionAllocationsPaginator(ListRevenueAttributionAllocationsRequest listRevenueAttributionAllocationsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException This is a variant of
listRevenueAttributionAllocations(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionAllocationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionAllocationsIterable responses = client.listRevenueAttributionAllocationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionAllocationsIterable responses = client .listRevenueAttributionAllocationsPaginator(request); for (software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionAllocationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionAllocationsIterable responses = client.listRevenueAttributionAllocationsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listRevenueAttributionAllocationsPaginator
default ListRevenueAttributionAllocationsIterable listRevenueAttributionAllocationsPaginator(Consumer<ListRevenueAttributionAllocationsRequest.Builder> listRevenueAttributionAllocationsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException This is a variant of
listRevenueAttributionAllocations(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionAllocationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionAllocationsIterable responses = client.listRevenueAttributionAllocationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionAllocationsIterable responses = client .listRevenueAttributionAllocationsPaginator(request); for (software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionAllocationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionAllocationsIterable responses = client.listRevenueAttributionAllocationsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listRevenueAttributions
default ListRevenueAttributionsResponse listRevenueAttributions(ListRevenueAttributionsRequest listRevenueAttributionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException Returns a paginated list of revenue attributions with optional filters.
- Parameters:
listRevenueAttributionsRequest-- Returns:
- Result of the ListRevenueAttributions operation returned by the service.
- See Also:
-
listRevenueAttributions
default ListRevenueAttributionsResponse listRevenueAttributions(Consumer<ListRevenueAttributionsRequest.Builder> listRevenueAttributionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException 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:
- Result of the ListRevenueAttributions operation returned by the service.
- See Also:
-
listRevenueAttributionsPaginator
default ListRevenueAttributionsIterable listRevenueAttributionsPaginator(ListRevenueAttributionsRequest listRevenueAttributionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException This is a variant of
listRevenueAttributions(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionsIterable responses = client.listRevenueAttributionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionsIterable responses = client .listRevenueAttributionsPaginator(request); for (software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionsIterable responses = client.listRevenueAttributionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listRevenueAttributionsPaginator
default ListRevenueAttributionsIterable listRevenueAttributionsPaginator(Consumer<ListRevenueAttributionsRequest.Builder> listRevenueAttributionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException This is a variant of
listRevenueAttributions(software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionsIterable responses = client.listRevenueAttributionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionsIterable responses = client .listRevenueAttributionsPaginator(request); for (software.amazon.awssdk.services.partnercentralrevenuemeasurement.model.ListRevenueAttributionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralrevenuemeasurement.paginators.ListRevenueAttributionsIterable responses = client.listRevenueAttributionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException Returns the tags associated with the specified resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException 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:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
startRevenueAttributionAllocationsTask
default StartRevenueAttributionAllocationsTaskResponse startRevenueAttributionAllocationsTask(StartRevenueAttributionAllocationsTaskRequest startRevenueAttributionAllocationsTaskRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException Submits a batch of up to 250 allocation changes (CREATE and/or UPDATE) for asynchronous processing. Returns a TaskId for tracking.
- Parameters:
startRevenueAttributionAllocationsTaskRequest-- Returns:
- Result of the StartRevenueAttributionAllocationsTask operation returned by the service.
- See Also:
-
startRevenueAttributionAllocationsTask
default StartRevenueAttributionAllocationsTaskResponse startRevenueAttributionAllocationsTask(Consumer<StartRevenueAttributionAllocationsTaskRequest.Builder> startRevenueAttributionAllocationsTaskRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException 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:
- Result of the StartRevenueAttributionAllocationsTask operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException Adds or overwrites one or more tags for the specified resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException 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:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException Removes one or more tags from the specified resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException 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:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateRevenueAttribution
default UpdateRevenueAttributionResponse updateRevenueAttribution(UpdateRevenueAttributionRequest updateRevenueAttributionRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException Updates an existing revenue attribution record.
- Parameters:
updateRevenueAttributionRequest-- Returns:
- Result of the UpdateRevenueAttribution operation returned by the service.
- See Also:
-
updateRevenueAttribution
default UpdateRevenueAttributionResponse updateRevenueAttribution(Consumer<UpdateRevenueAttributionRequest.Builder> updateRevenueAttributionRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralRevenueMeasurementException 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:
- Result of the UpdateRevenueAttribution operation returned by the service.
- See Also:
-
create
Create aPartnerCentralRevenueMeasurementClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aPartnerCentralRevenueMeasurementClient. -
serviceMetadata
-
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