Interface AppMonetizationAsyncClient
- 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 App Monetization is a billing and entitlement service for applications that you build on AWS. You define pricing plans and usage metrics for an app, record usage as it occurs, and check whether a user is entitled to a feature. Your users subscribe, pay, and manage their billing through hosted pages that AWS App Monetization provides. The service also reports subscription, usage, revenue, and AWS infrastructure cost analytics for each app.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture<ArchiveMetricResponse> archiveMetric(Consumer<ArchiveMetricRequest.Builder> archiveMetricRequest) Archives a metric, removing its definition from the app's draft configuration.default CompletableFuture<ArchiveMetricResponse> archiveMetric(ArchiveMetricRequest archiveMetricRequest) Archives a metric, removing its definition from the app's draft configuration.default CompletableFuture<ArchivePlanResponse> archivePlan(Consumer<ArchivePlanRequest.Builder> archivePlanRequest) Archives a plan, removing it from the app's draft configuration so that it can no longer be subscribed to.default CompletableFuture<ArchivePlanResponse> archivePlan(ArchivePlanRequest archivePlanRequest) Archives a plan, removing it from the app's draft configuration so that it can no longer be subscribed to.builder()Create a builder that can be used to configure and create aAppMonetizationAsyncClient.cancelSubscription(Consumer<CancelSubscriptionRequest.Builder> cancelSubscriptionRequest) Cancels a user's subscription at the end of the current billing period.cancelSubscription(CancelSubscriptionRequest cancelSubscriptionRequest) Cancels a user's subscription at the end of the current billing period.static AppMonetizationAsyncClientcreate()Create aAppMonetizationAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<CreateAppResponse> createApp(Consumer<CreateAppRequest.Builder> createAppRequest) Creates an app.default CompletableFuture<CreateAppResponse> createApp(CreateAppRequest createAppRequest) Creates an app.createAppPaymentRegistration(Consumer<CreateAppPaymentRegistrationRequest.Builder> createAppPaymentRegistrationRequest) Creates a hosted URL that an app owner uses to register payment and tax details.createAppPaymentRegistration(CreateAppPaymentRegistrationRequest createAppPaymentRegistrationRequest) Creates a hosted URL that an app owner uses to register payment and tax details.createBillingPortalSession(Consumer<CreateBillingPortalSessionRequest.Builder> createBillingPortalSessionRequest) Opens the AWS App Monetization hosted customer billing portal for a user.createBillingPortalSession(CreateBillingPortalSessionRequest createBillingPortalSessionRequest) Opens the AWS App Monetization hosted customer billing portal for a user.default CompletableFuture<CreateMetricResponse> createMetric(Consumer<CreateMetricRequest.Builder> createMetricRequest) Creates a usage metric definition for an app.default CompletableFuture<CreateMetricResponse> createMetric(CreateMetricRequest createMetricRequest) Creates a usage metric definition for an app.createOneTimeCheckoutSession(Consumer<CreateOneTimeCheckoutSessionRequest.Builder> createOneTimeCheckoutSessionRequest) Creates a checkout session for a one-time purchase of usage packs or add-ons against the user's current subscription, or against the app when the user has no subscription.createOneTimeCheckoutSession(CreateOneTimeCheckoutSessionRequest createOneTimeCheckoutSessionRequest) Creates a checkout session for a one-time purchase of usage packs or add-ons against the user's current subscription, or against the app when the user has no subscription.createOneTimePrice(Consumer<CreateOneTimePriceRequest.Builder> createOneTimePriceRequest) Creates a one-time price for an app.createOneTimePrice(CreateOneTimePriceRequest createOneTimePriceRequest) Creates a one-time price for an app.default CompletableFuture<CreatePlanResponse> createPlan(Consumer<CreatePlanRequest.Builder> createPlanRequest) Creates a pricing plan for an app.default CompletableFuture<CreatePlanResponse> createPlan(CreatePlanRequest createPlanRequest) Creates a pricing plan for an app.createSubscriptionCheckoutSession(Consumer<CreateSubscriptionCheckoutSessionRequest.Builder> createSubscriptionCheckoutSessionRequest) Subscribes a user to a plan or changes the user's current plan.createSubscriptionCheckoutSession(CreateSubscriptionCheckoutSessionRequest createSubscriptionCheckoutSessionRequest) Subscribes a user to a plan or changes the user's current plan.default CompletableFuture<DeleteAppResponse> deleteApp(Consumer<DeleteAppRequest.Builder> deleteAppRequest) Deletes an app.default CompletableFuture<DeleteAppResponse> deleteApp(DeleteAppRequest deleteAppRequest) Deletes an app.deleteOneTimePrice(Consumer<DeleteOneTimePriceRequest.Builder> deleteOneTimePriceRequest) Deletes a one-time price from an app.deleteOneTimePrice(DeleteOneTimePriceRequest deleteOneTimePriceRequest) Deletes a one-time price from an app.deleteThirdPartyCost(Consumer<DeleteThirdPartyCostRequest.Builder> deleteThirdPartyCostRequest) Removes a third-party cost.deleteThirdPartyCost(DeleteThirdPartyCostRequest deleteThirdPartyCostRequest) Removes a third-party cost.default CompletableFuture<GetAppResponse> getApp(Consumer<GetAppRequest.Builder> getAppRequest) Returns the details of an app.default CompletableFuture<GetAppResponse> getApp(GetAppRequest getAppRequest) Returns the details of an app.getAppInfraCostSummary(Consumer<GetAppInfraCostSummaryRequest.Builder> getAppInfraCostSummaryRequest) Returns infrastructure cost for an app, grouped by service (the default), user, or time.getAppInfraCostSummary(GetAppInfraCostSummaryRequest getAppInfraCostSummaryRequest) Returns infrastructure cost for an app, grouped by service (the default), user, or time.getAppPaymentRegistration(Consumer<GetAppPaymentRegistrationRequest.Builder> getAppPaymentRegistrationRequest) Returns the current payment registration status and seller profile for an app.getAppPaymentRegistration(GetAppPaymentRegistrationRequest getAppPaymentRegistrationRequest) Returns the current payment registration status and seller profile for an app.getAppRevenueSummary(Consumer<GetAppRevenueSummaryRequest.Builder> getAppRevenueSummaryRequest) Returns billed revenue for an app for a billing period, grouped by plan.getAppRevenueSummary(GetAppRevenueSummaryRequest getAppRevenueSummaryRequest) Returns billed revenue for an app for a billing period, grouped by plan.getAppSubscriptionSummary(Consumer<GetAppSubscriptionSummaryRequest.Builder> getAppSubscriptionSummaryRequest) Returns subscription counts for an app, grouped by status (the default) or by plan.getAppSubscriptionSummary(GetAppSubscriptionSummaryRequest getAppSubscriptionSummaryRequest) Returns subscription counts for an app, grouped by status (the default) or by plan.getAppUsageSummary(Consumer<GetAppUsageSummaryRequest.Builder> getAppUsageSummaryRequest) Returns usage for an app, grouped by metric (the default), user, or time.getAppUsageSummary(GetAppUsageSummaryRequest getAppUsageSummaryRequest) Returns usage for an app, grouped by metric (the default), user, or time.getEntitlementDecision(Consumer<GetEntitlementDecisionRequest.Builder> getEntitlementDecisionRequest) Returns an entitlement decision for a user action, indicating whether the action is allowed and why.getEntitlementDecision(GetEntitlementDecisionRequest getEntitlementDecisionRequest) Returns an entitlement decision for a user action, indicating whether the action is allowed and why.default CompletableFuture<GetMetricResponse> getMetric(Consumer<GetMetricRequest.Builder> getMetricRequest) Returns the details of a metric.default CompletableFuture<GetMetricResponse> getMetric(GetMetricRequest getMetricRequest) Returns the details of a metric.default CompletableFuture<GetMetricUsageResponse> getMetricUsage(Consumer<GetMetricUsageRequest.Builder> getMetricUsageRequest) Returns a user's raw per-metric usage over a caller-supplied window.default CompletableFuture<GetMetricUsageResponse> getMetricUsage(GetMetricUsageRequest getMetricUsageRequest) Returns a user's raw per-metric usage over a caller-supplied window.default GetMetricUsagePublishergetMetricUsagePaginator(Consumer<GetMetricUsageRequest.Builder> getMetricUsageRequest) This is a variant ofgetMetricUsage(software.amazon.awssdk.services.appmonetization.model.GetMetricUsageRequest)operation.default GetMetricUsagePublishergetMetricUsagePaginator(GetMetricUsageRequest getMetricUsageRequest) This is a variant ofgetMetricUsage(software.amazon.awssdk.services.appmonetization.model.GetMetricUsageRequest)operation.default CompletableFuture<GetOneTimePriceResponse> getOneTimePrice(Consumer<GetOneTimePriceRequest.Builder> getOneTimePriceRequest) Returns the details of a one-time price.default CompletableFuture<GetOneTimePriceResponse> getOneTimePrice(GetOneTimePriceRequest getOneTimePriceRequest) Returns the details of a one-time price.default CompletableFuture<GetPlanResponse> getPlan(Consumer<GetPlanRequest.Builder> getPlanRequest) Returns the details of a plan.default CompletableFuture<GetPlanResponse> getPlan(GetPlanRequest getPlanRequest) Returns the details of a plan.getPlanRecommendation(Consumer<GetPlanRecommendationRequest.Builder> getPlanRecommendationRequest) Returns a recommended pricing model and plan set for an app, calculated from the billable actions, costs, customer types, alternatives and preferences in the request.getPlanRecommendation(GetPlanRecommendationRequest getPlanRecommendationRequest) Returns a recommended pricing model and plan set for an app, calculated from the billable actions, costs, customer types, alternatives and preferences in the request.default CompletableFuture<GetSubscriptionResponse> getSubscription(Consumer<GetSubscriptionRequest.Builder> getSubscriptionRequest) Returns a user's current subscription and any pending change.default CompletableFuture<GetSubscriptionResponse> getSubscription(GetSubscriptionRequest getSubscriptionRequest) Returns a user's current subscription and any pending change.getSubscriptionHistory(Consumer<GetSubscriptionHistoryRequest.Builder> getSubscriptionHistoryRequest) Returns the historical subscription records for a user.getSubscriptionHistory(GetSubscriptionHistoryRequest getSubscriptionHistoryRequest) Returns the historical subscription records for a user.default GetSubscriptionHistoryPublishergetSubscriptionHistoryPaginator(Consumer<GetSubscriptionHistoryRequest.Builder> getSubscriptionHistoryRequest) This is a variant ofgetSubscriptionHistory(software.amazon.awssdk.services.appmonetization.model.GetSubscriptionHistoryRequest)operation.default GetSubscriptionHistoryPublishergetSubscriptionHistoryPaginator(GetSubscriptionHistoryRequest getSubscriptionHistoryRequest) This is a variant ofgetSubscriptionHistory(software.amazon.awssdk.services.appmonetization.model.GetSubscriptionHistoryRequest)operation.getThirdPartyCost(Consumer<GetThirdPartyCostRequest.Builder> getThirdPartyCostRequest) Returns a single third-party cost by its identifier.getThirdPartyCost(GetThirdPartyCostRequest getThirdPartyCostRequest) Returns a single third-party cost by its identifier.default CompletableFuture<ListAppsResponse> listApps(Consumer<ListAppsRequest.Builder> listAppsRequest) Returns the apps owned by the caller.default CompletableFuture<ListAppsResponse> listApps(ListAppsRequest listAppsRequest) Returns the apps owned by the caller.default ListAppsPublisherlistAppsPaginator(Consumer<ListAppsRequest.Builder> listAppsRequest) This is a variant oflistApps(software.amazon.awssdk.services.appmonetization.model.ListAppsRequest)operation.default ListAppsPublisherlistAppsPaginator(ListAppsRequest listAppsRequest) This is a variant oflistApps(software.amazon.awssdk.services.appmonetization.model.ListAppsRequest)operation.default CompletableFuture<ListMetricsResponse> listMetrics(Consumer<ListMetricsRequest.Builder> listMetricsRequest) Returns the metrics for an app.default CompletableFuture<ListMetricsResponse> listMetrics(ListMetricsRequest listMetricsRequest) Returns the metrics for an app.default ListMetricsPublisherlistMetricsPaginator(Consumer<ListMetricsRequest.Builder> listMetricsRequest) This is a variant oflistMetrics(software.amazon.awssdk.services.appmonetization.model.ListMetricsRequest)operation.default ListMetricsPublisherlistMetricsPaginator(ListMetricsRequest listMetricsRequest) This is a variant oflistMetrics(software.amazon.awssdk.services.appmonetization.model.ListMetricsRequest)operation.listOneTimePrices(Consumer<ListOneTimePricesRequest.Builder> listOneTimePricesRequest) Lists the one-time prices for an app.listOneTimePrices(ListOneTimePricesRequest listOneTimePricesRequest) Lists the one-time prices for an app.default ListOneTimePricesPublisherlistOneTimePricesPaginator(Consumer<ListOneTimePricesRequest.Builder> listOneTimePricesRequest) This is a variant oflistOneTimePrices(software.amazon.awssdk.services.appmonetization.model.ListOneTimePricesRequest)operation.default ListOneTimePricesPublisherlistOneTimePricesPaginator(ListOneTimePricesRequest listOneTimePricesRequest) This is a variant oflistOneTimePrices(software.amazon.awssdk.services.appmonetization.model.ListOneTimePricesRequest)operation.default CompletableFuture<ListPlansResponse> listPlans(Consumer<ListPlansRequest.Builder> listPlansRequest) Returns the plans for an app.default CompletableFuture<ListPlansResponse> listPlans(ListPlansRequest listPlansRequest) Returns the plans for an app.default ListPlansPublisherlistPlansPaginator(Consumer<ListPlansRequest.Builder> listPlansRequest) This is a variant oflistPlans(software.amazon.awssdk.services.appmonetization.model.ListPlansRequest)operation.default ListPlansPublisherlistPlansPaginator(ListPlansRequest listPlansRequest) This is a variant oflistPlans(software.amazon.awssdk.services.appmonetization.model.ListPlansRequest)operation.listSubscriptions(Consumer<ListSubscriptionsRequest.Builder> listSubscriptionsRequest) Returns the subscriptions for an app.listSubscriptions(ListSubscriptionsRequest listSubscriptionsRequest) Returns the subscriptions for an app.default ListSubscriptionsPublisherlistSubscriptionsPaginator(Consumer<ListSubscriptionsRequest.Builder> listSubscriptionsRequest) This is a variant oflistSubscriptions(software.amazon.awssdk.services.appmonetization.model.ListSubscriptionsRequest)operation.default ListSubscriptionsPublisherlistSubscriptionsPaginator(ListSubscriptionsRequest listSubscriptionsRequest) This is a variant oflistSubscriptions(software.amazon.awssdk.services.appmonetization.model.ListSubscriptionsRequest)operation.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags on an app, pricing plan, billing metric or one-time price.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags on an app, pricing plan, billing metric or one-time price.listThirdPartyCosts(Consumer<ListThirdPartyCostsRequest.Builder> listThirdPartyCostsRequest) Returns the third-party costs for an app.listThirdPartyCosts(ListThirdPartyCostsRequest listThirdPartyCostsRequest) Returns the third-party costs for an app.default ListThirdPartyCostsPublisherlistThirdPartyCostsPaginator(Consumer<ListThirdPartyCostsRequest.Builder> listThirdPartyCostsRequest) This is a variant oflistThirdPartyCosts(software.amazon.awssdk.services.appmonetization.model.ListThirdPartyCostsRequest)operation.default ListThirdPartyCostsPublisherlistThirdPartyCostsPaginator(ListThirdPartyCostsRequest listThirdPartyCostsRequest) This is a variant oflistThirdPartyCosts(software.amazon.awssdk.services.appmonetization.model.ListThirdPartyCostsRequest)operation.default CompletableFuture<PublishDraftResponse> publishDraft(Consumer<PublishDraftRequest.Builder> publishDraftRequest) Publishes the app's current draft configuration to live in a single atomic operation.default CompletableFuture<PublishDraftResponse> publishDraft(PublishDraftRequest publishDraftRequest) Publishes the app's current draft configuration to live in a single atomic operation.putAwsServiceEvent(Consumer<PutAwsServiceEventRequest.Builder> putAwsServiceEventRequest) Records an AWS service usage event for cost attribution.putAwsServiceEvent(PutAwsServiceEventRequest putAwsServiceEventRequest) Records an AWS service usage event for cost attribution.putCustomCharges(Consumer<PutCustomChargesRequest.Builder> putCustomChargesRequest) Adds charges that you compute to the end user's next subscription invoice.putCustomCharges(PutCustomChargesRequest putCustomChargesRequest) Adds charges that you compute to the end user's next subscription invoice.default CompletableFuture<PutEventResponse> putEvent(Consumer<PutEventRequest.Builder> putEventRequest) Records a usage event for a user of an app.default CompletableFuture<PutEventResponse> putEvent(PutEventRequest putEventRequest) Records a usage event for a user of an app.putThirdPartyCost(Consumer<PutThirdPartyCostRequest.Builder> putThirdPartyCostRequest) Adds or updates a seller-declared third-party (non-AWS) monthly cost for an app.putThirdPartyCost(PutThirdPartyCostRequest putThirdPartyCostRequest) Adds or updates a seller-declared third-party (non-AWS) monthly cost for an app.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or overwrites tags on an app, pricing plan, billing metric or one-time price.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Adds or overwrites tags on an app, pricing plan, billing metric or one-time price.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from an app, pricing plan, billing metric or one-time price.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from an app, pricing plan, billing metric or one-time price.default CompletableFuture<UpdateAppResponse> updateApp(Consumer<UpdateAppRequest.Builder> updateAppRequest) Updates an existing app.default CompletableFuture<UpdateAppResponse> updateApp(UpdateAppRequest updateAppRequest) Updates an existing app.updateAppPaymentRegistration(Consumer<UpdateAppPaymentRegistrationRequest.Builder> updateAppPaymentRegistrationRequest) Updates the payment and tax details on an app's payment registration.updateAppPaymentRegistration(UpdateAppPaymentRegistrationRequest updateAppPaymentRegistrationRequest) Updates the payment and tax details on an app's payment registration.default CompletableFuture<UpdateMetricResponse> updateMetric(Consumer<UpdateMetricRequest.Builder> updateMetricRequest) Updates an existing metric.default CompletableFuture<UpdateMetricResponse> updateMetric(UpdateMetricRequest updateMetricRequest) Updates an existing metric.updateOneTimePrice(Consumer<UpdateOneTimePriceRequest.Builder> updateOneTimePriceRequest) Updates the definition of a one-time price.updateOneTimePrice(UpdateOneTimePriceRequest updateOneTimePriceRequest) Updates the definition of a one-time price.default CompletableFuture<UpdatePlanResponse> updatePlan(Consumer<UpdatePlanRequest.Builder> updatePlanRequest) Updates an existing plan.default CompletableFuture<UpdatePlanResponse> updatePlan(UpdatePlanRequest updatePlanRequest) Updates an existing plan.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
-
archiveMetric
default CompletableFuture<ArchiveMetricResponse> archiveMetric(ArchiveMetricRequest archiveMetricRequest) Archives a metric, removing its definition from the app's draft configuration. The removal takes effect on the next call to PublishDraft. Already-recorded usage events and usage history are retained; archiving only stops the metric from aggregating further usage. Any plan quota or usage pack keyed to the metric is removed with it. If the metric was published, its metric ID and display name are permanently retired and cannot be reused.
- Parameters:
archiveMetricRequest- Input for ArchiveMetric. This operation carries no scope selector: metric authoring always addresses the live app. Metrics in the sandbox are read-only through this API. Read them with GetMetric or ListMetrics using scope=sandbox or stage=DRAFT.- Returns:
- A Java Future containing the result of the ArchiveMetric 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
archiveMetric
default CompletableFuture<ArchiveMetricResponse> archiveMetric(Consumer<ArchiveMetricRequest.Builder> archiveMetricRequest) Archives a metric, removing its definition from the app's draft configuration. The removal takes effect on the next call to PublishDraft. Already-recorded usage events and usage history are retained; archiving only stops the metric from aggregating further usage. Any plan quota or usage pack keyed to the metric is removed with it. If the metric was published, its metric ID and display name are permanently retired and cannot be reused.
This is a convenience which creates an instance of the
ArchiveMetricRequest.Builderavoiding the need to create one manually viaArchiveMetricRequest.builder()- Parameters:
archiveMetricRequest- AConsumerthat will call methods onArchiveMetricRequest.Builderto create a request. Input for ArchiveMetric. This operation carries no scope selector: metric authoring always addresses the live app. Metrics in the sandbox are read-only through this API. Read them with GetMetric or ListMetrics using scope=sandbox or stage=DRAFT.- Returns:
- A Java Future containing the result of the ArchiveMetric 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
archivePlan
Archives a plan, removing it from the app's draft configuration so that it can no longer be subscribed to. The removal takes effect on the next call to PublishDraft. Existing subscriptions to the plan are unaffected, and the plan's display name is freed for reuse. The plan's included quotas are removed with it.
- Parameters:
archivePlanRequest- Input for ArchivePlan. This operation carries no scope selector: plan authoring always addresses the live app. Plans in the sandbox are read-only through this API. Read them with GetPlan or ListPlans using scope=sandbox or stage=DRAFT.- Returns:
- A Java Future containing the result of the ArchivePlan 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
archivePlan
default CompletableFuture<ArchivePlanResponse> archivePlan(Consumer<ArchivePlanRequest.Builder> archivePlanRequest) Archives a plan, removing it from the app's draft configuration so that it can no longer be subscribed to. The removal takes effect on the next call to PublishDraft. Existing subscriptions to the plan are unaffected, and the plan's display name is freed for reuse. The plan's included quotas are removed with it.
This is a convenience which creates an instance of the
ArchivePlanRequest.Builderavoiding the need to create one manually viaArchivePlanRequest.builder()- Parameters:
archivePlanRequest- AConsumerthat will call methods onArchivePlanRequest.Builderto create a request. Input for ArchivePlan. This operation carries no scope selector: plan authoring always addresses the live app. Plans in the sandbox are read-only through this API. Read them with GetPlan or ListPlans using scope=sandbox or stage=DRAFT.- Returns:
- A Java Future containing the result of the ArchivePlan 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
cancelSubscription
default CompletableFuture<CancelSubscriptionResponse> cancelSubscription(CancelSubscriptionRequest cancelSubscriptionRequest) Cancels a user's subscription at the end of the current billing period.
- Parameters:
cancelSubscriptionRequest- Input for CancelSubscription.- Returns:
- A Java Future containing the result of the CancelSubscription 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
cancelSubscription
default CompletableFuture<CancelSubscriptionResponse> cancelSubscription(Consumer<CancelSubscriptionRequest.Builder> cancelSubscriptionRequest) Cancels a user's subscription at the end of the current billing period.
This is a convenience which creates an instance of the
CancelSubscriptionRequest.Builderavoiding the need to create one manually viaCancelSubscriptionRequest.builder()- Parameters:
cancelSubscriptionRequest- AConsumerthat will call methods onCancelSubscriptionRequest.Builderto create a request. Input for CancelSubscription.- Returns:
- A Java Future containing the result of the CancelSubscription 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createApp
Creates an app. AWS App Monetization assigns a unique app identifier. This operation is idempotent: a repeated request with the same clientToken returns the app created by the original request.
- Parameters:
createAppRequest- Input for CreateApp.- Returns:
- A Java Future containing the result of the CreateApp 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- IdempotencyConflictException The clientToken was reused with a request that differs from the original request. Retry the operation with a new clientToken.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createApp
default CompletableFuture<CreateAppResponse> createApp(Consumer<CreateAppRequest.Builder> createAppRequest) Creates an app. AWS App Monetization assigns a unique app identifier. This operation is idempotent: a repeated request with the same clientToken returns the app created by the original request.
This is a convenience which creates an instance of the
CreateAppRequest.Builderavoiding the need to create one manually viaCreateAppRequest.builder()- Parameters:
createAppRequest- AConsumerthat will call methods onCreateAppRequest.Builderto create a request. Input for CreateApp.- Returns:
- A Java Future containing the result of the CreateApp 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- IdempotencyConflictException The clientToken was reused with a request that differs from the original request. Retry the operation with a new clientToken.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAppPaymentRegistration
default CompletableFuture<CreateAppPaymentRegistrationResponse> createAppPaymentRegistration(CreateAppPaymentRegistrationRequest createAppPaymentRegistrationRequest) Creates a hosted URL that an app owner uses to register payment and tax details.
- Parameters:
createAppPaymentRegistrationRequest- Input for CreateAppPaymentRegistration. Carries the seller's legal, tax, and contact details used to set up payment collection. Several fields are personally identifiable.- Returns:
- A Java Future containing the result of the CreateAppPaymentRegistration 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAppPaymentRegistration
default CompletableFuture<CreateAppPaymentRegistrationResponse> createAppPaymentRegistration(Consumer<CreateAppPaymentRegistrationRequest.Builder> createAppPaymentRegistrationRequest) Creates a hosted URL that an app owner uses to register payment and tax details.
This is a convenience which creates an instance of the
CreateAppPaymentRegistrationRequest.Builderavoiding the need to create one manually viaCreateAppPaymentRegistrationRequest.builder()- Parameters:
createAppPaymentRegistrationRequest- AConsumerthat will call methods onCreateAppPaymentRegistrationRequest.Builderto create a request. Input for CreateAppPaymentRegistration. Carries the seller's legal, tax, and contact details used to set up payment collection. Several fields are personally identifiable.- Returns:
- A Java Future containing the result of the CreateAppPaymentRegistration 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createBillingPortalSession
default CompletableFuture<CreateBillingPortalSessionResponse> createBillingPortalSession(CreateBillingPortalSessionRequest createBillingPortalSessionRequest) Opens the AWS App Monetization hosted customer billing portal for a user. This operation returns the billing portal URL that your application redirects the user's browser to. No state is persisted.
- Parameters:
createBillingPortalSessionRequest- Input for CreateBillingPortalSession.- Returns:
- A Java Future containing the result of the CreateBillingPortalSession 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createBillingPortalSession
default CompletableFuture<CreateBillingPortalSessionResponse> createBillingPortalSession(Consumer<CreateBillingPortalSessionRequest.Builder> createBillingPortalSessionRequest) Opens the AWS App Monetization hosted customer billing portal for a user. This operation returns the billing portal URL that your application redirects the user's browser to. No state is persisted.
This is a convenience which creates an instance of the
CreateBillingPortalSessionRequest.Builderavoiding the need to create one manually viaCreateBillingPortalSessionRequest.builder()- Parameters:
createBillingPortalSessionRequest- AConsumerthat will call methods onCreateBillingPortalSessionRequest.Builderto create a request. Input for CreateBillingPortalSession.- Returns:
- A Java Future containing the result of the CreateBillingPortalSession 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createMetric
default CompletableFuture<CreateMetricResponse> createMetric(CreateMetricRequest createMetricRequest) Creates a usage metric definition for an app. A metric beyond the Metrics per app quota is refused with ServiceQuotaExceededException.
- Parameters:
createMetricRequest- Input for CreateMetric. This operation carries no scope selector: metric authoring always addresses the live app. The sandbox always runs the live app's draft, so its metrics are read-only through this API. Read them with GetMetric or ListMetrics using scope=sandbox or stage=DRAFT.- Returns:
- A Java Future containing the result of the CreateMetric 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- IdempotencyConflictException The clientToken was reused with a request that differs from the original request. Retry the operation with a new clientToken.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createMetric
default CompletableFuture<CreateMetricResponse> createMetric(Consumer<CreateMetricRequest.Builder> createMetricRequest) Creates a usage metric definition for an app. A metric beyond the Metrics per app quota is refused with ServiceQuotaExceededException.
This is a convenience which creates an instance of the
CreateMetricRequest.Builderavoiding the need to create one manually viaCreateMetricRequest.builder()- Parameters:
createMetricRequest- AConsumerthat will call methods onCreateMetricRequest.Builderto create a request. Input for CreateMetric. This operation carries no scope selector: metric authoring always addresses the live app. The sandbox always runs the live app's draft, so its metrics are read-only through this API. Read them with GetMetric or ListMetrics using scope=sandbox or stage=DRAFT.- Returns:
- A Java Future containing the result of the CreateMetric 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- IdempotencyConflictException The clientToken was reused with a request that differs from the original request. Retry the operation with a new clientToken.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createOneTimeCheckoutSession
default CompletableFuture<CreateOneTimeCheckoutSessionResponse> createOneTimeCheckoutSession(CreateOneTimeCheckoutSessionRequest createOneTimeCheckoutSessionRequest) Creates a checkout session for a one-time purchase of usage packs or add-ons against the user's current subscription, or against the app when the user has no subscription. A one-time purchase always requires payment, so the response returns a checkout URL and a checkout session identifier. To subscribe a user to a plan or change the user's plan, use CreateSubscriptionCheckoutSession.
- Parameters:
createOneTimeCheckoutSessionRequest- Input for CreateOneTimeCheckoutSession.- Returns:
- A Java Future containing the result of the CreateOneTimeCheckoutSession 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceUnavailableException The service is temporarily unavailable. Retry the request after the time in retryAfterSeconds.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createOneTimeCheckoutSession
default CompletableFuture<CreateOneTimeCheckoutSessionResponse> createOneTimeCheckoutSession(Consumer<CreateOneTimeCheckoutSessionRequest.Builder> createOneTimeCheckoutSessionRequest) Creates a checkout session for a one-time purchase of usage packs or add-ons against the user's current subscription, or against the app when the user has no subscription. A one-time purchase always requires payment, so the response returns a checkout URL and a checkout session identifier. To subscribe a user to a plan or change the user's plan, use CreateSubscriptionCheckoutSession.
This is a convenience which creates an instance of the
CreateOneTimeCheckoutSessionRequest.Builderavoiding the need to create one manually viaCreateOneTimeCheckoutSessionRequest.builder()- Parameters:
createOneTimeCheckoutSessionRequest- AConsumerthat will call methods onCreateOneTimeCheckoutSessionRequest.Builderto create a request. Input for CreateOneTimeCheckoutSession.- Returns:
- A Java Future containing the result of the CreateOneTimeCheckoutSession 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceUnavailableException The service is temporarily unavailable. Retry the request after the time in retryAfterSeconds.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createOneTimePrice
default CompletableFuture<CreateOneTimePriceResponse> createOneTimePrice(CreateOneTimePriceRequest createOneTimePriceRequest) Creates a one-time price for an app. The one-time price exists on the draft (DRAFT) offering until published.
- Parameters:
createOneTimePriceRequest- Input for CreateOneTimePrice.- Returns:
- A Java Future containing the result of the CreateOneTimePrice 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- IdempotencyConflictException The clientToken was reused with a request that differs from the original request. Retry the operation with a new clientToken.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createOneTimePrice
default CompletableFuture<CreateOneTimePriceResponse> createOneTimePrice(Consumer<CreateOneTimePriceRequest.Builder> createOneTimePriceRequest) Creates a one-time price for an app. The one-time price exists on the draft (DRAFT) offering until published.
This is a convenience which creates an instance of the
CreateOneTimePriceRequest.Builderavoiding the need to create one manually viaCreateOneTimePriceRequest.builder()- Parameters:
createOneTimePriceRequest- AConsumerthat will call methods onCreateOneTimePriceRequest.Builderto create a request. Input for CreateOneTimePrice.- Returns:
- A Java Future containing the result of the CreateOneTimePrice 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- IdempotencyConflictException The clientToken was reused with a request that differs from the original request. Retry the operation with a new clientToken.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createPlan
Creates a pricing plan for an app. The plan's identifier is not supplied in the request; AWS App Monetization mints a server-generated planId and returns it on the created plan. The new plan exists on the draft (DRAFT) offering until it is published with PublishDraft.
- Parameters:
createPlanRequest- Input for CreatePlan. This operation carries no scope selector: plan authoring always addresses the live app. The sandbox always runs the live app's draft, so its plans are read-only through this API. Read them with GetPlan or ListPlans using scope=sandbox or stage=DRAFT.- Returns:
- A Java Future containing the result of the CreatePlan 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- IdempotencyConflictException The clientToken was reused with a request that differs from the original request. Retry the operation with a new clientToken.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createPlan
default CompletableFuture<CreatePlanResponse> createPlan(Consumer<CreatePlanRequest.Builder> createPlanRequest) Creates a pricing plan for an app. The plan's identifier is not supplied in the request; AWS App Monetization mints a server-generated planId and returns it on the created plan. The new plan exists on the draft (DRAFT) offering until it is published with PublishDraft.
This is a convenience which creates an instance of the
CreatePlanRequest.Builderavoiding the need to create one manually viaCreatePlanRequest.builder()- Parameters:
createPlanRequest- AConsumerthat will call methods onCreatePlanRequest.Builderto create a request. Input for CreatePlan. This operation carries no scope selector: plan authoring always addresses the live app. The sandbox always runs the live app's draft, so its plans are read-only through this API. Read them with GetPlan or ListPlans using scope=sandbox or stage=DRAFT.- Returns:
- A Java Future containing the result of the CreatePlan 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- IdempotencyConflictException The clientToken was reused with a request that differs from the original request. Retry the operation with a new clientToken.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSubscriptionCheckoutSession
default CompletableFuture<CreateSubscriptionCheckoutSessionResponse> createSubscriptionCheckoutSession(CreateSubscriptionCheckoutSessionRequest createSubscriptionCheckoutSessionRequest) Subscribes a user to a plan or changes the user's current plan. The response returns exactly one outcome: payment is required (a checkout URL is returned), payment is not required (an effective date is returned), or, when no plan identifier is provided, plan selection is required (the hosted pricing page URL is returned). To make a one-time purchase of usage packs or add-ons, use CreateOneTimeCheckoutSession.
- Parameters:
createSubscriptionCheckoutSessionRequest- Input for CreateSubscriptionCheckoutSession.- Returns:
- A Java Future containing the result of the CreateSubscriptionCheckoutSession 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceUnavailableException The service is temporarily unavailable. Retry the request after the time in retryAfterSeconds.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSubscriptionCheckoutSession
default CompletableFuture<CreateSubscriptionCheckoutSessionResponse> createSubscriptionCheckoutSession(Consumer<CreateSubscriptionCheckoutSessionRequest.Builder> createSubscriptionCheckoutSessionRequest) Subscribes a user to a plan or changes the user's current plan. The response returns exactly one outcome: payment is required (a checkout URL is returned), payment is not required (an effective date is returned), or, when no plan identifier is provided, plan selection is required (the hosted pricing page URL is returned). To make a one-time purchase of usage packs or add-ons, use CreateOneTimeCheckoutSession.
This is a convenience which creates an instance of the
CreateSubscriptionCheckoutSessionRequest.Builderavoiding the need to create one manually viaCreateSubscriptionCheckoutSessionRequest.builder()- Parameters:
createSubscriptionCheckoutSessionRequest- AConsumerthat will call methods onCreateSubscriptionCheckoutSessionRequest.Builderto create a request. Input for CreateSubscriptionCheckoutSession.- Returns:
- A Java Future containing the result of the CreateSubscriptionCheckoutSession 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceUnavailableException The service is temporarily unavailable. Retry the request after the time in retryAfterSeconds.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteApp
Deletes an app. If the app's published offering still has plans or metrics, the request fails with a
ConflictException. Deleting an app that no longer exists returns aResourceNotFoundException.- Parameters:
deleteAppRequest- Input for DeleteApp.- Returns:
- A Java Future containing the result of the DeleteApp 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteApp
default CompletableFuture<DeleteAppResponse> deleteApp(Consumer<DeleteAppRequest.Builder> deleteAppRequest) Deletes an app. If the app's published offering still has plans or metrics, the request fails with a
ConflictException. Deleting an app that no longer exists returns aResourceNotFoundException.
This is a convenience which creates an instance of the
DeleteAppRequest.Builderavoiding the need to create one manually viaDeleteAppRequest.builder()- Parameters:
deleteAppRequest- AConsumerthat will call methods onDeleteAppRequest.Builderto create a request. Input for DeleteApp.- Returns:
- A Java Future containing the result of the DeleteApp 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteOneTimePrice
default CompletableFuture<DeleteOneTimePriceResponse> deleteOneTimePrice(DeleteOneTimePriceRequest deleteOneTimePriceRequest) Deletes a one-time price from an app. This operation is idempotent.
- Parameters:
deleteOneTimePriceRequest- Input for DeleteOneTimePrice.- Returns:
- A Java Future containing the result of the DeleteOneTimePrice 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteOneTimePrice
default CompletableFuture<DeleteOneTimePriceResponse> deleteOneTimePrice(Consumer<DeleteOneTimePriceRequest.Builder> deleteOneTimePriceRequest) Deletes a one-time price from an app. This operation is idempotent.
This is a convenience which creates an instance of the
DeleteOneTimePriceRequest.Builderavoiding the need to create one manually viaDeleteOneTimePriceRequest.builder()- Parameters:
deleteOneTimePriceRequest- AConsumerthat will call methods onDeleteOneTimePriceRequest.Builderto create a request. Input for DeleteOneTimePrice.- Returns:
- A Java Future containing the result of the DeleteOneTimePrice 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteThirdPartyCost
default CompletableFuture<DeleteThirdPartyCostResponse> deleteThirdPartyCost(DeleteThirdPartyCostRequest deleteThirdPartyCostRequest) Removes a third-party cost. This operation is idempotent: removing a cost that is already absent still succeeds. A missing or unauthorized parent app returns a ResourceNotFoundException.
- Parameters:
deleteThirdPartyCostRequest- Input for DeleteThirdPartyCost. This operation carries no scope selector: it always addresses the live app. Third-party cost is app-level configuration and is not scoped to the sandbox.- Returns:
- A Java Future containing the result of the DeleteThirdPartyCost 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteThirdPartyCost
default CompletableFuture<DeleteThirdPartyCostResponse> deleteThirdPartyCost(Consumer<DeleteThirdPartyCostRequest.Builder> deleteThirdPartyCostRequest) Removes a third-party cost. This operation is idempotent: removing a cost that is already absent still succeeds. A missing or unauthorized parent app returns a ResourceNotFoundException.
This is a convenience which creates an instance of the
DeleteThirdPartyCostRequest.Builderavoiding the need to create one manually viaDeleteThirdPartyCostRequest.builder()- Parameters:
deleteThirdPartyCostRequest- AConsumerthat will call methods onDeleteThirdPartyCostRequest.Builderto create a request. Input for DeleteThirdPartyCost. This operation carries no scope selector: it always addresses the live app. Third-party cost is app-level configuration and is not scoped to the sandbox.- Returns:
- A Java Future containing the result of the DeleteThirdPartyCost 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getApp
Returns the details of an app.
- Parameters:
getAppRequest- Input for GetApp.- Returns:
- A Java Future containing the result of the GetApp 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getApp
Returns the details of an app.
This is a convenience which creates an instance of the
GetAppRequest.Builderavoiding the need to create one manually viaGetAppRequest.builder()- Parameters:
getAppRequest- AConsumerthat will call methods onGetAppRequest.Builderto create a request. Input for GetApp.- Returns:
- A Java Future containing the result of the GetApp 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAppInfraCostSummary
default CompletableFuture<GetAppInfraCostSummaryResponse> getAppInfraCostSummary(GetAppInfraCostSummaryRequest getAppInfraCostSummaryRequest) Returns infrastructure cost for an app, grouped by service (the default), user, or time. To use this operation, you must also have permission for ce:GetCostAndUsage on your primary billing view.
- Parameters:
getAppInfraCostSummaryRequest- Input for GetAppInfraCostSummary.- Returns:
- A Java Future containing the result of the GetAppInfraCostSummary 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAppInfraCostSummary
default CompletableFuture<GetAppInfraCostSummaryResponse> getAppInfraCostSummary(Consumer<GetAppInfraCostSummaryRequest.Builder> getAppInfraCostSummaryRequest) Returns infrastructure cost for an app, grouped by service (the default), user, or time. To use this operation, you must also have permission for ce:GetCostAndUsage on your primary billing view.
This is a convenience which creates an instance of the
GetAppInfraCostSummaryRequest.Builderavoiding the need to create one manually viaGetAppInfraCostSummaryRequest.builder()- Parameters:
getAppInfraCostSummaryRequest- AConsumerthat will call methods onGetAppInfraCostSummaryRequest.Builderto create a request. Input for GetAppInfraCostSummary.- Returns:
- A Java Future containing the result of the GetAppInfraCostSummary 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAppPaymentRegistration
default CompletableFuture<GetAppPaymentRegistrationResponse> getAppPaymentRegistration(GetAppPaymentRegistrationRequest getAppPaymentRegistrationRequest) Returns the current payment registration status and seller profile for an app.
- Parameters:
getAppPaymentRegistrationRequest- Input for GetAppPaymentRegistration.- Returns:
- A Java Future containing the result of the GetAppPaymentRegistration 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAppPaymentRegistration
default CompletableFuture<GetAppPaymentRegistrationResponse> getAppPaymentRegistration(Consumer<GetAppPaymentRegistrationRequest.Builder> getAppPaymentRegistrationRequest) Returns the current payment registration status and seller profile for an app.
This is a convenience which creates an instance of the
GetAppPaymentRegistrationRequest.Builderavoiding the need to create one manually viaGetAppPaymentRegistrationRequest.builder()- Parameters:
getAppPaymentRegistrationRequest- AConsumerthat will call methods onGetAppPaymentRegistrationRequest.Builderto create a request. Input for GetAppPaymentRegistration.- Returns:
- A Java Future containing the result of the GetAppPaymentRegistration 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAppRevenueSummary
default CompletableFuture<GetAppRevenueSummaryResponse> getAppRevenueSummary(GetAppRevenueSummaryRequest getAppRevenueSummaryRequest) Returns billed revenue for an app for a billing period, grouped by plan.
- Parameters:
getAppRevenueSummaryRequest- Input for GetAppRevenueSummary.- Returns:
- A Java Future containing the result of the GetAppRevenueSummary 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAppRevenueSummary
default CompletableFuture<GetAppRevenueSummaryResponse> getAppRevenueSummary(Consumer<GetAppRevenueSummaryRequest.Builder> getAppRevenueSummaryRequest) Returns billed revenue for an app for a billing period, grouped by plan.
This is a convenience which creates an instance of the
GetAppRevenueSummaryRequest.Builderavoiding the need to create one manually viaGetAppRevenueSummaryRequest.builder()- Parameters:
getAppRevenueSummaryRequest- AConsumerthat will call methods onGetAppRevenueSummaryRequest.Builderto create a request. Input for GetAppRevenueSummary.- Returns:
- A Java Future containing the result of the GetAppRevenueSummary 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAppSubscriptionSummary
default CompletableFuture<GetAppSubscriptionSummaryResponse> getAppSubscriptionSummary(GetAppSubscriptionSummaryRequest getAppSubscriptionSummaryRequest) Returns subscription counts for an app, grouped by status (the default) or by plan. The summary contains no subscriber personally identifiable information.
- Parameters:
getAppSubscriptionSummaryRequest- Input for GetAppSubscriptionSummary.- Returns:
- A Java Future containing the result of the GetAppSubscriptionSummary 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAppSubscriptionSummary
default CompletableFuture<GetAppSubscriptionSummaryResponse> getAppSubscriptionSummary(Consumer<GetAppSubscriptionSummaryRequest.Builder> getAppSubscriptionSummaryRequest) Returns subscription counts for an app, grouped by status (the default) or by plan. The summary contains no subscriber personally identifiable information.
This is a convenience which creates an instance of the
GetAppSubscriptionSummaryRequest.Builderavoiding the need to create one manually viaGetAppSubscriptionSummaryRequest.builder()- Parameters:
getAppSubscriptionSummaryRequest- AConsumerthat will call methods onGetAppSubscriptionSummaryRequest.Builderto create a request. Input for GetAppSubscriptionSummary.- Returns:
- A Java Future containing the result of the GetAppSubscriptionSummary 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAppUsageSummary
default CompletableFuture<GetAppUsageSummaryResponse> getAppUsageSummary(GetAppUsageSummaryRequest getAppUsageSummaryRequest) Returns usage for an app, grouped by metric (the default), user, or time.
- Parameters:
getAppUsageSummaryRequest- Input for GetAppUsageSummary.- Returns:
- A Java Future containing the result of the GetAppUsageSummary 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAppUsageSummary
default CompletableFuture<GetAppUsageSummaryResponse> getAppUsageSummary(Consumer<GetAppUsageSummaryRequest.Builder> getAppUsageSummaryRequest) Returns usage for an app, grouped by metric (the default), user, or time.
This is a convenience which creates an instance of the
GetAppUsageSummaryRequest.Builderavoiding the need to create one manually viaGetAppUsageSummaryRequest.builder()- Parameters:
getAppUsageSummaryRequest- AConsumerthat will call methods onGetAppUsageSummaryRequest.Builderto create a request. Input for GetAppUsageSummary.- Returns:
- A Java Future containing the result of the GetAppUsageSummary 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getEntitlementDecision
default CompletableFuture<GetEntitlementDecisionResponse> getEntitlementDecision(GetEntitlementDecisionRequest getEntitlementDecisionRequest) Returns an entitlement decision for a user action, indicating whether the action is allowed and why. It takes the pending event's quantity and properties so the check sizes the decision per metric the way PutEvent counts the event: it applies each metric's filter to the properties, counts 1 for a COUNT metric, and reads the summed or maxed field value for a SUM or MAX metric. The decision is DENY when usage already reached the limit, or when folding this event in would push it past (a SUM or COUNT metric adds the increment to current usage, a MAX metric takes the larger of the two). Send the same eventType, quantity and properties you will send on the event: the check applies the rules PutEvent applies to that event. A SUM or MAX metric that reads a property rejects the check with a ValidationException when the property is missing or not a plain decimal, including when properties are omitted or sent as {}; a metric filter matches only properties that are present, so a filtered metric is skipped for an event with no properties, as PutEvent skips it. It is idempotent, and it may create the user's default-plan subscription on first use.
- Parameters:
getEntitlementDecisionRequest- Input for GetEntitlementDecision.- Returns:
- A Java Future containing the result of the GetEntitlementDecision 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getEntitlementDecision
default CompletableFuture<GetEntitlementDecisionResponse> getEntitlementDecision(Consumer<GetEntitlementDecisionRequest.Builder> getEntitlementDecisionRequest) Returns an entitlement decision for a user action, indicating whether the action is allowed and why. It takes the pending event's quantity and properties so the check sizes the decision per metric the way PutEvent counts the event: it applies each metric's filter to the properties, counts 1 for a COUNT metric, and reads the summed or maxed field value for a SUM or MAX metric. The decision is DENY when usage already reached the limit, or when folding this event in would push it past (a SUM or COUNT metric adds the increment to current usage, a MAX metric takes the larger of the two). Send the same eventType, quantity and properties you will send on the event: the check applies the rules PutEvent applies to that event. A SUM or MAX metric that reads a property rejects the check with a ValidationException when the property is missing or not a plain decimal, including when properties are omitted or sent as {}; a metric filter matches only properties that are present, so a filtered metric is skipped for an event with no properties, as PutEvent skips it. It is idempotent, and it may create the user's default-plan subscription on first use.
This is a convenience which creates an instance of the
GetEntitlementDecisionRequest.Builderavoiding the need to create one manually viaGetEntitlementDecisionRequest.builder()- Parameters:
getEntitlementDecisionRequest- AConsumerthat will call methods onGetEntitlementDecisionRequest.Builderto create a request. Input for GetEntitlementDecision.- Returns:
- A Java Future containing the result of the GetEntitlementDecision 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMetric
Returns the details of a metric.
- Parameters:
getMetricRequest- Input for GetMetric.- Returns:
- A Java Future containing the result of the GetMetric 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMetric
default CompletableFuture<GetMetricResponse> getMetric(Consumer<GetMetricRequest.Builder> getMetricRequest) Returns the details of a metric.
This is a convenience which creates an instance of the
GetMetricRequest.Builderavoiding the need to create one manually viaGetMetricRequest.builder()- Parameters:
getMetricRequest- AConsumerthat will call methods onGetMetricRequest.Builderto create a request. Input for GetMetric.- Returns:
- A Java Future containing the result of the GetMetric 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMetricUsage
default CompletableFuture<GetMetricUsageResponse> getMetricUsage(GetMetricUsageRequest getMetricUsageRequest) Returns a user's raw per-metric usage over a caller-supplied window. Usage is aggregated by event time with each metric's aggregation function: summed or counted, or the largest value for a MAX metric, in the environment the scope selects (the live app or its sandbox). It returns usage only: it does not resolve the user's plan, apply quota, or attribute usage to a plan. Combine it with GetSubscriptionHistory to compute charges for each plan the user was on, or compare it against a plan's allowance to make an entitlement decision.
Usage is read at hour resolution: startedAt is floored to its hour and endedAt is rounded up to the next hour boundary, so the window read can be wider than the requested one.
Paginated over the app's metric set: one page of per-metric usage per call, continued with nextToken. The window is fixed across a pagination sequence.
- Parameters:
getMetricUsageRequest- Input for GetMetricUsage.- Returns:
- A Java Future containing the result of the GetMetricUsage 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMetricUsage
default CompletableFuture<GetMetricUsageResponse> getMetricUsage(Consumer<GetMetricUsageRequest.Builder> getMetricUsageRequest) Returns a user's raw per-metric usage over a caller-supplied window. Usage is aggregated by event time with each metric's aggregation function: summed or counted, or the largest value for a MAX metric, in the environment the scope selects (the live app or its sandbox). It returns usage only: it does not resolve the user's plan, apply quota, or attribute usage to a plan. Combine it with GetSubscriptionHistory to compute charges for each plan the user was on, or compare it against a plan's allowance to make an entitlement decision.
Usage is read at hour resolution: startedAt is floored to its hour and endedAt is rounded up to the next hour boundary, so the window read can be wider than the requested one.
Paginated over the app's metric set: one page of per-metric usage per call, continued with nextToken. The window is fixed across a pagination sequence.
This is a convenience which creates an instance of the
GetMetricUsageRequest.Builderavoiding the need to create one manually viaGetMetricUsageRequest.builder()- Parameters:
getMetricUsageRequest- AConsumerthat will call methods onGetMetricUsageRequest.Builderto create a request. Input for GetMetricUsage.- Returns:
- A Java Future containing the result of the GetMetricUsage 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMetricUsagePaginator
default GetMetricUsagePublisher getMetricUsagePaginator(GetMetricUsageRequest getMetricUsageRequest) This is a variant of
getMetricUsage(software.amazon.awssdk.services.appmonetization.model.GetMetricUsageRequest)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.appmonetization.paginators.GetMetricUsagePublisher publisher = client.getMetricUsagePaginator(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.appmonetization.paginators.GetMetricUsagePublisher publisher = client.getMetricUsagePaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.GetMetricUsageResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.GetMetricUsageResponse 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
getMetricUsage(software.amazon.awssdk.services.appmonetization.model.GetMetricUsageRequest)operation.- Parameters:
getMetricUsageRequest- Input for GetMetricUsage.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMetricUsagePaginator
default GetMetricUsagePublisher getMetricUsagePaginator(Consumer<GetMetricUsageRequest.Builder> getMetricUsageRequest) This is a variant of
getMetricUsage(software.amazon.awssdk.services.appmonetization.model.GetMetricUsageRequest)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.appmonetization.paginators.GetMetricUsagePublisher publisher = client.getMetricUsagePaginator(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.appmonetization.paginators.GetMetricUsagePublisher publisher = client.getMetricUsagePaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.GetMetricUsageResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.GetMetricUsageResponse 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
getMetricUsage(software.amazon.awssdk.services.appmonetization.model.GetMetricUsageRequest)operation.
This is a convenience which creates an instance of the
GetMetricUsageRequest.Builderavoiding the need to create one manually viaGetMetricUsageRequest.builder()- Parameters:
getMetricUsageRequest- AConsumerthat will call methods onGetMetricUsageRequest.Builderto create a request. Input for GetMetricUsage.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOneTimePrice
default CompletableFuture<GetOneTimePriceResponse> getOneTimePrice(GetOneTimePriceRequest getOneTimePriceRequest) Returns the details of a one-time price.
- Parameters:
getOneTimePriceRequest- Input for GetOneTimePrice.- Returns:
- A Java Future containing the result of the GetOneTimePrice 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOneTimePrice
default CompletableFuture<GetOneTimePriceResponse> getOneTimePrice(Consumer<GetOneTimePriceRequest.Builder> getOneTimePriceRequest) Returns the details of a one-time price.
This is a convenience which creates an instance of the
GetOneTimePriceRequest.Builderavoiding the need to create one manually viaGetOneTimePriceRequest.builder()- Parameters:
getOneTimePriceRequest- AConsumerthat will call methods onGetOneTimePriceRequest.Builderto create a request. Input for GetOneTimePrice.- Returns:
- A Java Future containing the result of the GetOneTimePrice 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPlan
Returns the details of a plan.
- Parameters:
getPlanRequest- Input for GetPlan.- Returns:
- A Java Future containing the result of the GetPlan 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPlan
Returns the details of a plan.
This is a convenience which creates an instance of the
GetPlanRequest.Builderavoiding the need to create one manually viaGetPlanRequest.builder()- Parameters:
getPlanRequest- AConsumerthat will call methods onGetPlanRequest.Builderto create a request. Input for GetPlan.- Returns:
- A Java Future containing the result of the GetPlan 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPlanRecommendation
default CompletableFuture<GetPlanRecommendationResponse> getPlanRecommendation(GetPlanRecommendationRequest getPlanRecommendationRequest) Returns a recommended pricing model and plan set for an app, calculated from the billable actions, costs, customer types, alternatives and preferences in the request. Built to be called by an agent working with the developer: most inputs are estimates the agent gathers from the app's code and from the developer (who the users are, what an action saves them, what it costs to serve), and each optional member's documentation says what its absence means, so send only the inputs you have a basis for. Stateless: nothing is stored, no app is required, and repeating a request returns the same recommendation unless the service has been updated in between. Every response carries the rendered texts summary and details. Smallest call (MEDIUM confidence): {"segment":invalid input: '&' quot;CONSUMER","appType":"DAILY_WORKFLOW","actions":[{invalid input: '"' ;unitCost":0.02,"typicalMonthlyUsage":30,"valuePerUse":0.40}]}.
- Parameters:
getPlanRecommendationRequest- Input for GetPlanRecommendation. Onlysegment,appTypeandactionsare required. The optional inputs are grouped by what they describe:costs,alternatives,marketandplanOptions. Each optional member's doc says what its absence means. The service checks the inputs against each other itself and rejects, with a ValidationException naming the member, the combinations stated onvalueKind,hourlyRate,valueShare,features, a customer type'sfeatureWeightsand theplanOptionsinclusion members, each an input the rest of the request leaves unused or contradicts. Members this structure does not define are ignored. Smallest call that returns MEDIUM confidence:{"segment":"CONSUMER","appType":"DAILY_WORKFLOW","actions":[{"unitCost":0.02,"typicalMonthlyUsage":30,"valuePerUse":0.40}]}.- Returns:
- A Java Future containing the result of the GetPlanRecommendation 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPlanRecommendation
default CompletableFuture<GetPlanRecommendationResponse> getPlanRecommendation(Consumer<GetPlanRecommendationRequest.Builder> getPlanRecommendationRequest) Returns a recommended pricing model and plan set for an app, calculated from the billable actions, costs, customer types, alternatives and preferences in the request. Built to be called by an agent working with the developer: most inputs are estimates the agent gathers from the app's code and from the developer (who the users are, what an action saves them, what it costs to serve), and each optional member's documentation says what its absence means, so send only the inputs you have a basis for. Stateless: nothing is stored, no app is required, and repeating a request returns the same recommendation unless the service has been updated in between. Every response carries the rendered texts summary and details. Smallest call (MEDIUM confidence): {"segment":invalid input: '&' quot;CONSUMER","appType":"DAILY_WORKFLOW","actions":[{invalid input: '"' ;unitCost":0.02,"typicalMonthlyUsage":30,"valuePerUse":0.40}]}.
This is a convenience which creates an instance of the
GetPlanRecommendationRequest.Builderavoiding the need to create one manually viaGetPlanRecommendationRequest.builder()- Parameters:
getPlanRecommendationRequest- AConsumerthat will call methods onGetPlanRecommendationRequest.Builderto create a request. Input for GetPlanRecommendation. Onlysegment,appTypeandactionsare required. The optional inputs are grouped by what they describe:costs,alternatives,marketandplanOptions. Each optional member's doc says what its absence means. The service checks the inputs against each other itself and rejects, with a ValidationException naming the member, the combinations stated onvalueKind,hourlyRate,valueShare,features, a customer type'sfeatureWeightsand theplanOptionsinclusion members, each an input the rest of the request leaves unused or contradicts. Members this structure does not define are ignored. Smallest call that returns MEDIUM confidence:{"segment":"CONSUMER","appType":"DAILY_WORKFLOW","actions":[{"unitCost":0.02,"typicalMonthlyUsage":30,"valuePerUse":0.40}]}.- Returns:
- A Java Future containing the result of the GetPlanRecommendation 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSubscription
default CompletableFuture<GetSubscriptionResponse> getSubscription(GetSubscriptionRequest getSubscriptionRequest) Returns a user's current subscription and any pending change.
- Parameters:
getSubscriptionRequest- Input for GetSubscription.- Returns:
- A Java Future containing the result of the GetSubscription 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSubscription
default CompletableFuture<GetSubscriptionResponse> getSubscription(Consumer<GetSubscriptionRequest.Builder> getSubscriptionRequest) Returns a user's current subscription and any pending change.
This is a convenience which creates an instance of the
GetSubscriptionRequest.Builderavoiding the need to create one manually viaGetSubscriptionRequest.builder()- Parameters:
getSubscriptionRequest- AConsumerthat will call methods onGetSubscriptionRequest.Builderto create a request. Input for GetSubscription.- Returns:
- A Java Future containing the result of the GetSubscription 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSubscriptionHistory
default CompletableFuture<GetSubscriptionHistoryResponse> getSubscriptionHistory(GetSubscriptionHistoryRequest getSubscriptionHistoryRequest) Returns the historical subscription records for a user. We recommend using pagination to ensure that the operation returns quickly and successfully.
- Parameters:
getSubscriptionHistoryRequest- Input for GetSubscriptionHistory.- Returns:
- A Java Future containing the result of the GetSubscriptionHistory 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSubscriptionHistory
default CompletableFuture<GetSubscriptionHistoryResponse> getSubscriptionHistory(Consumer<GetSubscriptionHistoryRequest.Builder> getSubscriptionHistoryRequest) Returns the historical subscription records for a user. We recommend using pagination to ensure that the operation returns quickly and successfully.
This is a convenience which creates an instance of the
GetSubscriptionHistoryRequest.Builderavoiding the need to create one manually viaGetSubscriptionHistoryRequest.builder()- Parameters:
getSubscriptionHistoryRequest- AConsumerthat will call methods onGetSubscriptionHistoryRequest.Builderto create a request. Input for GetSubscriptionHistory.- Returns:
- A Java Future containing the result of the GetSubscriptionHistory 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSubscriptionHistoryPaginator
default GetSubscriptionHistoryPublisher getSubscriptionHistoryPaginator(GetSubscriptionHistoryRequest getSubscriptionHistoryRequest) This is a variant of
getSubscriptionHistory(software.amazon.awssdk.services.appmonetization.model.GetSubscriptionHistoryRequest)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.appmonetization.paginators.GetSubscriptionHistoryPublisher publisher = client.getSubscriptionHistoryPaginator(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.appmonetization.paginators.GetSubscriptionHistoryPublisher publisher = client.getSubscriptionHistoryPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.GetSubscriptionHistoryResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.GetSubscriptionHistoryResponse 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
getSubscriptionHistory(software.amazon.awssdk.services.appmonetization.model.GetSubscriptionHistoryRequest)operation.- Parameters:
getSubscriptionHistoryRequest- Input for GetSubscriptionHistory.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSubscriptionHistoryPaginator
default GetSubscriptionHistoryPublisher getSubscriptionHistoryPaginator(Consumer<GetSubscriptionHistoryRequest.Builder> getSubscriptionHistoryRequest) This is a variant of
getSubscriptionHistory(software.amazon.awssdk.services.appmonetization.model.GetSubscriptionHistoryRequest)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.appmonetization.paginators.GetSubscriptionHistoryPublisher publisher = client.getSubscriptionHistoryPaginator(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.appmonetization.paginators.GetSubscriptionHistoryPublisher publisher = client.getSubscriptionHistoryPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.GetSubscriptionHistoryResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.GetSubscriptionHistoryResponse 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
getSubscriptionHistory(software.amazon.awssdk.services.appmonetization.model.GetSubscriptionHistoryRequest)operation.
This is a convenience which creates an instance of the
GetSubscriptionHistoryRequest.Builderavoiding the need to create one manually viaGetSubscriptionHistoryRequest.builder()- Parameters:
getSubscriptionHistoryRequest- AConsumerthat will call methods onGetSubscriptionHistoryRequest.Builderto create a request. Input for GetSubscriptionHistory.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getThirdPartyCost
default CompletableFuture<GetThirdPartyCostResponse> getThirdPartyCost(GetThirdPartyCostRequest getThirdPartyCostRequest) Returns a single third-party cost by its identifier. An unknown cost identifier returns a ResourceNotFoundException.
- Parameters:
getThirdPartyCostRequest- Input for GetThirdPartyCost.- Returns:
- A Java Future containing the result of the GetThirdPartyCost 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getThirdPartyCost
default CompletableFuture<GetThirdPartyCostResponse> getThirdPartyCost(Consumer<GetThirdPartyCostRequest.Builder> getThirdPartyCostRequest) Returns a single third-party cost by its identifier. An unknown cost identifier returns a ResourceNotFoundException.
This is a convenience which creates an instance of the
GetThirdPartyCostRequest.Builderavoiding the need to create one manually viaGetThirdPartyCostRequest.builder()- Parameters:
getThirdPartyCostRequest- AConsumerthat will call methods onGetThirdPartyCostRequest.Builderto create a request. Input for GetThirdPartyCost.- Returns:
- A Java Future containing the result of the GetThirdPartyCost 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listApps
Returns the apps owned by the caller. We recommend using pagination to ensure that the operation returns quickly and successfully.
- Parameters:
listAppsRequest- Input for ListApps.- Returns:
- A Java Future containing the result of the ListApps 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listApps
default CompletableFuture<ListAppsResponse> listApps(Consumer<ListAppsRequest.Builder> listAppsRequest) Returns the apps owned by the caller. We recommend using pagination to ensure that the operation returns quickly and successfully.
This is a convenience which creates an instance of the
ListAppsRequest.Builderavoiding the need to create one manually viaListAppsRequest.builder()- Parameters:
listAppsRequest- AConsumerthat will call methods onListAppsRequest.Builderto create a request. Input for ListApps.- Returns:
- A Java Future containing the result of the ListApps 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAppsPaginator
This is a variant of
listApps(software.amazon.awssdk.services.appmonetization.model.ListAppsRequest)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.appmonetization.paginators.ListAppsPublisher publisher = client.listAppsPaginator(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.appmonetization.paginators.ListAppsPublisher publisher = client.listAppsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.ListAppsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.ListAppsResponse 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
listApps(software.amazon.awssdk.services.appmonetization.model.ListAppsRequest)operation.- Parameters:
listAppsRequest- Input for ListApps.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAppsPaginator
This is a variant of
listApps(software.amazon.awssdk.services.appmonetization.model.ListAppsRequest)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.appmonetization.paginators.ListAppsPublisher publisher = client.listAppsPaginator(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.appmonetization.paginators.ListAppsPublisher publisher = client.listAppsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.ListAppsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.ListAppsResponse 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
listApps(software.amazon.awssdk.services.appmonetization.model.ListAppsRequest)operation.
This is a convenience which creates an instance of the
ListAppsRequest.Builderavoiding the need to create one manually viaListAppsRequest.builder()- Parameters:
listAppsRequest- AConsumerthat will call methods onListAppsRequest.Builderto create a request. Input for ListApps.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMetrics
Returns the metrics for an app. Returns a paginated list; we recommend using pagination to ensure that the operation returns quickly and successfully.
- Parameters:
listMetricsRequest- Input for ListMetrics.- Returns:
- A Java Future containing the result of the ListMetrics 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMetrics
default CompletableFuture<ListMetricsResponse> listMetrics(Consumer<ListMetricsRequest.Builder> listMetricsRequest) Returns the metrics for an app. Returns a paginated list; we recommend using pagination to ensure that the operation returns quickly and successfully.
This is a convenience which creates an instance of the
ListMetricsRequest.Builderavoiding the need to create one manually viaListMetricsRequest.builder()- Parameters:
listMetricsRequest- AConsumerthat will call methods onListMetricsRequest.Builderto create a request. Input for ListMetrics.- Returns:
- A Java Future containing the result of the ListMetrics 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMetricsPaginator
This is a variant of
listMetrics(software.amazon.awssdk.services.appmonetization.model.ListMetricsRequest)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.appmonetization.paginators.ListMetricsPublisher publisher = client.listMetricsPaginator(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.appmonetization.paginators.ListMetricsPublisher publisher = client.listMetricsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.ListMetricsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.ListMetricsResponse 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
listMetrics(software.amazon.awssdk.services.appmonetization.model.ListMetricsRequest)operation.- Parameters:
listMetricsRequest- Input for ListMetrics.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMetricsPaginator
default ListMetricsPublisher listMetricsPaginator(Consumer<ListMetricsRequest.Builder> listMetricsRequest) This is a variant of
listMetrics(software.amazon.awssdk.services.appmonetization.model.ListMetricsRequest)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.appmonetization.paginators.ListMetricsPublisher publisher = client.listMetricsPaginator(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.appmonetization.paginators.ListMetricsPublisher publisher = client.listMetricsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.ListMetricsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.ListMetricsResponse 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
listMetrics(software.amazon.awssdk.services.appmonetization.model.ListMetricsRequest)operation.
This is a convenience which creates an instance of the
ListMetricsRequest.Builderavoiding the need to create one manually viaListMetricsRequest.builder()- Parameters:
listMetricsRequest- AConsumerthat will call methods onListMetricsRequest.Builderto create a request. Input for ListMetrics.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOneTimePrices
default CompletableFuture<ListOneTimePricesResponse> listOneTimePrices(ListOneTimePricesRequest listOneTimePricesRequest) Lists the one-time prices for an app. Returns a paginated list; use the nextToken value to retrieve additional pages.
- Parameters:
listOneTimePricesRequest- Input for ListOneTimePrices.- Returns:
- A Java Future containing the result of the ListOneTimePrices 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOneTimePrices
default CompletableFuture<ListOneTimePricesResponse> listOneTimePrices(Consumer<ListOneTimePricesRequest.Builder> listOneTimePricesRequest) Lists the one-time prices for an app. Returns a paginated list; use the nextToken value to retrieve additional pages.
This is a convenience which creates an instance of the
ListOneTimePricesRequest.Builderavoiding the need to create one manually viaListOneTimePricesRequest.builder()- Parameters:
listOneTimePricesRequest- AConsumerthat will call methods onListOneTimePricesRequest.Builderto create a request. Input for ListOneTimePrices.- Returns:
- A Java Future containing the result of the ListOneTimePrices 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOneTimePricesPaginator
default ListOneTimePricesPublisher listOneTimePricesPaginator(ListOneTimePricesRequest listOneTimePricesRequest) This is a variant of
listOneTimePrices(software.amazon.awssdk.services.appmonetization.model.ListOneTimePricesRequest)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.appmonetization.paginators.ListOneTimePricesPublisher publisher = client.listOneTimePricesPaginator(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.appmonetization.paginators.ListOneTimePricesPublisher publisher = client.listOneTimePricesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.ListOneTimePricesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.ListOneTimePricesResponse 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
listOneTimePrices(software.amazon.awssdk.services.appmonetization.model.ListOneTimePricesRequest)operation.- Parameters:
listOneTimePricesRequest- Input for ListOneTimePrices.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOneTimePricesPaginator
default ListOneTimePricesPublisher listOneTimePricesPaginator(Consumer<ListOneTimePricesRequest.Builder> listOneTimePricesRequest) This is a variant of
listOneTimePrices(software.amazon.awssdk.services.appmonetization.model.ListOneTimePricesRequest)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.appmonetization.paginators.ListOneTimePricesPublisher publisher = client.listOneTimePricesPaginator(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.appmonetization.paginators.ListOneTimePricesPublisher publisher = client.listOneTimePricesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.ListOneTimePricesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.ListOneTimePricesResponse 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
listOneTimePrices(software.amazon.awssdk.services.appmonetization.model.ListOneTimePricesRequest)operation.
This is a convenience which creates an instance of the
ListOneTimePricesRequest.Builderavoiding the need to create one manually viaListOneTimePricesRequest.builder()- Parameters:
listOneTimePricesRequest- AConsumerthat will call methods onListOneTimePricesRequest.Builderto create a request. Input for ListOneTimePrices.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPlans
Returns the plans for an app. We recommend using pagination to ensure that the operation returns quickly and successfully.
- Parameters:
listPlansRequest- Input for ListPlans.- Returns:
- A Java Future containing the result of the ListPlans 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPlans
default CompletableFuture<ListPlansResponse> listPlans(Consumer<ListPlansRequest.Builder> listPlansRequest) Returns the plans for an app. We recommend using pagination to ensure that the operation returns quickly and successfully.
This is a convenience which creates an instance of the
ListPlansRequest.Builderavoiding the need to create one manually viaListPlansRequest.builder()- Parameters:
listPlansRequest- AConsumerthat will call methods onListPlansRequest.Builderto create a request. Input for ListPlans.- Returns:
- A Java Future containing the result of the ListPlans 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPlansPaginator
This is a variant of
listPlans(software.amazon.awssdk.services.appmonetization.model.ListPlansRequest)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.appmonetization.paginators.ListPlansPublisher publisher = client.listPlansPaginator(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.appmonetization.paginators.ListPlansPublisher publisher = client.listPlansPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.ListPlansResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.ListPlansResponse 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
listPlans(software.amazon.awssdk.services.appmonetization.model.ListPlansRequest)operation.- Parameters:
listPlansRequest- Input for ListPlans.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPlansPaginator
This is a variant of
listPlans(software.amazon.awssdk.services.appmonetization.model.ListPlansRequest)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.appmonetization.paginators.ListPlansPublisher publisher = client.listPlansPaginator(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.appmonetization.paginators.ListPlansPublisher publisher = client.listPlansPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.ListPlansResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.ListPlansResponse 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
listPlans(software.amazon.awssdk.services.appmonetization.model.ListPlansRequest)operation.
This is a convenience which creates an instance of the
ListPlansRequest.Builderavoiding the need to create one manually viaListPlansRequest.builder()- Parameters:
listPlansRequest- AConsumerthat will call methods onListPlansRequest.Builderto create a request. Input for ListPlans.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSubscriptions
default CompletableFuture<ListSubscriptionsResponse> listSubscriptions(ListSubscriptionsRequest listSubscriptionsRequest) Returns the subscriptions for an app. We recommend using pagination to ensure that the operation returns quickly and successfully.
- Parameters:
listSubscriptionsRequest- Input for ListSubscriptions.- Returns:
- A Java Future containing the result of the ListSubscriptions 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSubscriptions
default CompletableFuture<ListSubscriptionsResponse> listSubscriptions(Consumer<ListSubscriptionsRequest.Builder> listSubscriptionsRequest) Returns the subscriptions for an app. We recommend using pagination to ensure that the operation returns quickly and successfully.
This is a convenience which creates an instance of the
ListSubscriptionsRequest.Builderavoiding the need to create one manually viaListSubscriptionsRequest.builder()- Parameters:
listSubscriptionsRequest- AConsumerthat will call methods onListSubscriptionsRequest.Builderto create a request. Input for ListSubscriptions.- Returns:
- A Java Future containing the result of the ListSubscriptions 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSubscriptionsPaginator
default ListSubscriptionsPublisher listSubscriptionsPaginator(ListSubscriptionsRequest listSubscriptionsRequest) This is a variant of
listSubscriptions(software.amazon.awssdk.services.appmonetization.model.ListSubscriptionsRequest)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.appmonetization.paginators.ListSubscriptionsPublisher publisher = client.listSubscriptionsPaginator(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.appmonetization.paginators.ListSubscriptionsPublisher publisher = client.listSubscriptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.ListSubscriptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.ListSubscriptionsResponse 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
listSubscriptions(software.amazon.awssdk.services.appmonetization.model.ListSubscriptionsRequest)operation.- Parameters:
listSubscriptionsRequest- Input for ListSubscriptions.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSubscriptionsPaginator
default ListSubscriptionsPublisher listSubscriptionsPaginator(Consumer<ListSubscriptionsRequest.Builder> listSubscriptionsRequest) This is a variant of
listSubscriptions(software.amazon.awssdk.services.appmonetization.model.ListSubscriptionsRequest)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.appmonetization.paginators.ListSubscriptionsPublisher publisher = client.listSubscriptionsPaginator(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.appmonetization.paginators.ListSubscriptionsPublisher publisher = client.listSubscriptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.ListSubscriptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.ListSubscriptionsResponse 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
listSubscriptions(software.amazon.awssdk.services.appmonetization.model.ListSubscriptionsRequest)operation.
This is a convenience which creates an instance of the
ListSubscriptionsRequest.Builderavoiding the need to create one manually viaListSubscriptionsRequest.builder()- Parameters:
listSubscriptionsRequest- AConsumerthat will call methods onListSubscriptionsRequest.Builderto create a request. Input for ListSubscriptions.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException 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) Lists the tags on an app, pricing plan, billing metric or one-time price.
- Parameters:
listTagsForResourceRequest- Input for ListTagsForResource.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException 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) Lists the tags on an app, pricing plan, billing metric or one-time price.
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. Input for ListTagsForResource.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listThirdPartyCosts
default CompletableFuture<ListThirdPartyCostsResponse> listThirdPartyCosts(ListThirdPartyCostsRequest listThirdPartyCostsRequest) Returns the third-party costs for an app. To calculate a total, sum the amount of the returned items; the costs are not prorated. Returns a paginated list; we recommend using pagination to ensure that the operation returns quickly and successfully.
- Parameters:
listThirdPartyCostsRequest- Input for ListThirdPartyCosts.- Returns:
- A Java Future containing the result of the ListThirdPartyCosts 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listThirdPartyCosts
default CompletableFuture<ListThirdPartyCostsResponse> listThirdPartyCosts(Consumer<ListThirdPartyCostsRequest.Builder> listThirdPartyCostsRequest) Returns the third-party costs for an app. To calculate a total, sum the amount of the returned items; the costs are not prorated. Returns a paginated list; we recommend using pagination to ensure that the operation returns quickly and successfully.
This is a convenience which creates an instance of the
ListThirdPartyCostsRequest.Builderavoiding the need to create one manually viaListThirdPartyCostsRequest.builder()- Parameters:
listThirdPartyCostsRequest- AConsumerthat will call methods onListThirdPartyCostsRequest.Builderto create a request. Input for ListThirdPartyCosts.- Returns:
- A Java Future containing the result of the ListThirdPartyCosts 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listThirdPartyCostsPaginator
default ListThirdPartyCostsPublisher listThirdPartyCostsPaginator(ListThirdPartyCostsRequest listThirdPartyCostsRequest) This is a variant of
listThirdPartyCosts(software.amazon.awssdk.services.appmonetization.model.ListThirdPartyCostsRequest)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.appmonetization.paginators.ListThirdPartyCostsPublisher publisher = client.listThirdPartyCostsPaginator(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.appmonetization.paginators.ListThirdPartyCostsPublisher publisher = client.listThirdPartyCostsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.ListThirdPartyCostsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.ListThirdPartyCostsResponse 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
listThirdPartyCosts(software.amazon.awssdk.services.appmonetization.model.ListThirdPartyCostsRequest)operation.- Parameters:
listThirdPartyCostsRequest- Input for ListThirdPartyCosts.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listThirdPartyCostsPaginator
default ListThirdPartyCostsPublisher listThirdPartyCostsPaginator(Consumer<ListThirdPartyCostsRequest.Builder> listThirdPartyCostsRequest) This is a variant of
listThirdPartyCosts(software.amazon.awssdk.services.appmonetization.model.ListThirdPartyCostsRequest)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.appmonetization.paginators.ListThirdPartyCostsPublisher publisher = client.listThirdPartyCostsPaginator(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.appmonetization.paginators.ListThirdPartyCostsPublisher publisher = client.listThirdPartyCostsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.appmonetization.model.ListThirdPartyCostsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.appmonetization.model.ListThirdPartyCostsResponse 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
listThirdPartyCosts(software.amazon.awssdk.services.appmonetization.model.ListThirdPartyCostsRequest)operation.
This is a convenience which creates an instance of the
ListThirdPartyCostsRequest.Builderavoiding the need to create one manually viaListThirdPartyCostsRequest.builder()- Parameters:
listThirdPartyCostsRequest- AConsumerthat will call methods onListThirdPartyCostsRequest.Builderto create a request. Input for ListThirdPartyCosts.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
publishDraft
default CompletableFuture<PublishDraftResponse> publishDraft(PublishDraftRequest publishDraftRequest) Publishes the app's current draft configuration to live in a single atomic operation. The published configuration includes all plans, metrics, capabilities, usage packs, add-ons, and free trials. A draft with more plans than the Published plans per app quota allows is refused with ServiceQuotaExceededException.
- Parameters:
publishDraftRequest- Input for PublishDraft. This operation carries no scope selector: publishing is a lifecycle transition on the live app. The sandbox always runs the app's draft and is never published to directly, so publish always addresses the live app.- Returns:
- A Java Future containing the result of the PublishDraft 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
publishDraft
default CompletableFuture<PublishDraftResponse> publishDraft(Consumer<PublishDraftRequest.Builder> publishDraftRequest) Publishes the app's current draft configuration to live in a single atomic operation. The published configuration includes all plans, metrics, capabilities, usage packs, add-ons, and free trials. A draft with more plans than the Published plans per app quota allows is refused with ServiceQuotaExceededException.
This is a convenience which creates an instance of the
PublishDraftRequest.Builderavoiding the need to create one manually viaPublishDraftRequest.builder()- Parameters:
publishDraftRequest- AConsumerthat will call methods onPublishDraftRequest.Builderto create a request. Input for PublishDraft. This operation carries no scope selector: publishing is a lifecycle transition on the live app. The sandbox always runs the app's draft and is never published to directly, so publish always addresses the live app.- Returns:
- A Java Future containing the result of the PublishDraft 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putAwsServiceEvent
default CompletableFuture<PutAwsServiceEventResponse> putAwsServiceEvent(PutAwsServiceEventRequest putAwsServiceEventRequest) Records an AWS service usage event for cost attribution. The event is accepted and processed asynchronously.
- Parameters:
putAwsServiceEventRequest- Input for PutAwsServiceEvent.- Returns:
- A Java Future containing the result of the PutAwsServiceEvent 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putAwsServiceEvent
default CompletableFuture<PutAwsServiceEventResponse> putAwsServiceEvent(Consumer<PutAwsServiceEventRequest.Builder> putAwsServiceEventRequest) Records an AWS service usage event for cost attribution. The event is accepted and processed asynchronously.
This is a convenience which creates an instance of the
PutAwsServiceEventRequest.Builderavoiding the need to create one manually viaPutAwsServiceEventRequest.builder()- Parameters:
putAwsServiceEventRequest- AConsumerthat will call methods onPutAwsServiceEventRequest.Builderto create a request. Input for PutAwsServiceEvent.- Returns:
- A Java Future containing the result of the PutAwsServiceEvent 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putCustomCharges
default CompletableFuture<PutCustomChargesResponse> putCustomCharges(PutCustomChargesRequest putCustomChargesRequest) Adds charges that you compute to the end user's next subscription invoice. The charges go to the billing period of the user's current subscription that contains the current time. You don't specify a period.
Each charge has a
chargeIdthat you choose. If you submit achargeIdagain in the same billing period, the existing charge is replaced instead of added again. AchargeIdbelongs to the first billing period that accepts it, so use a value that is unique for this user across all billing periods, such as a UUID or your own invoice line ID.The request succeeds or fails as a whole: either every charge is accepted or none is. A successful response means that every charge was accepted.
If you submit a
chargeIdafter its billing period has ended, the request fails with aConflictException. The charge is already recorded. Don't submit it again under a newchargeId, because that bills it twice.A billing period holds at most 100
chargeIdvalues for each user. If a request would exceed 100, it fails with aServiceQuotaExceededException. Submitting achargeIdthat is already in the period doesn't count toward the limit.- Parameters:
putCustomChargesRequest-- Returns:
- A Java Future containing the result of the PutCustomCharges 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putCustomCharges
default CompletableFuture<PutCustomChargesResponse> putCustomCharges(Consumer<PutCustomChargesRequest.Builder> putCustomChargesRequest) Adds charges that you compute to the end user's next subscription invoice. The charges go to the billing period of the user's current subscription that contains the current time. You don't specify a period.
Each charge has a
chargeIdthat you choose. If you submit achargeIdagain in the same billing period, the existing charge is replaced instead of added again. AchargeIdbelongs to the first billing period that accepts it, so use a value that is unique for this user across all billing periods, such as a UUID or your own invoice line ID.The request succeeds or fails as a whole: either every charge is accepted or none is. A successful response means that every charge was accepted.
If you submit a
chargeIdafter its billing period has ended, the request fails with aConflictException. The charge is already recorded. Don't submit it again under a newchargeId, because that bills it twice.A billing period holds at most 100
chargeIdvalues for each user. If a request would exceed 100, it fails with aServiceQuotaExceededException. Submitting achargeIdthat is already in the period doesn't count toward the limit.
This is a convenience which creates an instance of the
PutCustomChargesRequest.Builderavoiding the need to create one manually viaPutCustomChargesRequest.builder()- Parameters:
putCustomChargesRequest- AConsumerthat will call methods onPutCustomChargesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutCustomCharges 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putEvent
Records a usage event for a user of an app. Usage events are the raw input that metrics aggregate.
- Parameters:
putEventRequest- Input for PutEvent.- Returns:
- A Java Future containing the result of the PutEvent 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putEvent
default CompletableFuture<PutEventResponse> putEvent(Consumer<PutEventRequest.Builder> putEventRequest) Records a usage event for a user of an app. Usage events are the raw input that metrics aggregate.
This is a convenience which creates an instance of the
PutEventRequest.Builderavoiding the need to create one manually viaPutEventRequest.builder()- Parameters:
putEventRequest- AConsumerthat will call methods onPutEventRequest.Builderto create a request. Input for PutEvent.- Returns:
- A Java Future containing the result of the PutEvent 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putThirdPartyCost
default CompletableFuture<PutThirdPartyCostResponse> putThirdPartyCost(PutThirdPartyCostRequest putThirdPartyCostRequest) Adds or updates a seller-declared third-party (non-AWS) monthly cost for an app. Omit the cost identifier to create a new cost, or supply an existing cost identifier to update it in place. The amount is a flat monthly value, and currency defaults to USD when omitted.
- Parameters:
putThirdPartyCostRequest- Input for PutThirdPartyCost. This operation carries no scope selector: it always addresses the live app. Third-party cost is app-level configuration and is not scoped to the sandbox.- Returns:
- A Java Future containing the result of the PutThirdPartyCost 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putThirdPartyCost
default CompletableFuture<PutThirdPartyCostResponse> putThirdPartyCost(Consumer<PutThirdPartyCostRequest.Builder> putThirdPartyCostRequest) Adds or updates a seller-declared third-party (non-AWS) monthly cost for an app. Omit the cost identifier to create a new cost, or supply an existing cost identifier to update it in place. The amount is a flat monthly value, and currency defaults to USD when omitted.
This is a convenience which creates an instance of the
PutThirdPartyCostRequest.Builderavoiding the need to create one manually viaPutThirdPartyCostRequest.builder()- Parameters:
putThirdPartyCostRequest- AConsumerthat will call methods onPutThirdPartyCostRequest.Builderto create a request. Input for PutThirdPartyCost. This operation carries no scope selector: it always addresses the live app. Third-party cost is app-level configuration and is not scoped to the sandbox.- Returns:
- A Java Future containing the result of the PutThirdPartyCost 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Adds or overwrites tags on an app, pricing plan, billing metric or one-time price.
- Parameters:
tagResourceRequest- Input for TagResource.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException 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 tags on an app, pricing plan, billing metric or one-time price.
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. Input for TagResource.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException 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 tags from an app, pricing plan, billing metric or one-time price.
- Parameters:
untagResourceRequest- Input for UntagResource.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException 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 tags from an app, pricing plan, billing metric or one-time price.
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. Input for UntagResource.- 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateApp
Updates an existing app. This operation is idempotent.
- Parameters:
updateAppRequest- Input for UpdateApp.- Returns:
- A Java Future containing the result of the UpdateApp 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateApp
default CompletableFuture<UpdateAppResponse> updateApp(Consumer<UpdateAppRequest.Builder> updateAppRequest) Updates an existing app. This operation is idempotent.
This is a convenience which creates an instance of the
UpdateAppRequest.Builderavoiding the need to create one manually viaUpdateAppRequest.builder()- Parameters:
updateAppRequest- AConsumerthat will call methods onUpdateAppRequest.Builderto create a request. Input for UpdateApp.- Returns:
- A Java Future containing the result of the UpdateApp 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAppPaymentRegistration
default CompletableFuture<UpdateAppPaymentRegistrationResponse> updateAppPaymentRegistration(UpdateAppPaymentRegistrationRequest updateAppPaymentRegistrationRequest) Updates the payment and tax details on an app's payment registration.
- Parameters:
updateAppPaymentRegistrationRequest- Updates mutable fields on a payment registration. All top-level fields are optional — omitting a field leaves the existing value unchanged. Supplying a sub-structure (for example, developerAddress) replaces it entirely. Status is immutable via this operation. For an app bound to a payment registration the edit applies to that registration and therefore to every app bound to it. With paymentRegistrationId the call instead binds the app to that registration, or rebinds it from another one, and carries no legal details.- Returns:
- A Java Future containing the result of the UpdateAppPaymentRegistration 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAppPaymentRegistration
default CompletableFuture<UpdateAppPaymentRegistrationResponse> updateAppPaymentRegistration(Consumer<UpdateAppPaymentRegistrationRequest.Builder> updateAppPaymentRegistrationRequest) Updates the payment and tax details on an app's payment registration.
This is a convenience which creates an instance of the
UpdateAppPaymentRegistrationRequest.Builderavoiding the need to create one manually viaUpdateAppPaymentRegistrationRequest.builder()- Parameters:
updateAppPaymentRegistrationRequest- AConsumerthat will call methods onUpdateAppPaymentRegistrationRequest.Builderto create a request. Updates mutable fields on a payment registration. All top-level fields are optional — omitting a field leaves the existing value unchanged. Supplying a sub-structure (for example, developerAddress) replaces it entirely. Status is immutable via this operation. For an app bound to a payment registration the edit applies to that registration and therefore to every app bound to it. With paymentRegistrationId the call instead binds the app to that registration, or rebinds it from another one, and carries no legal details.- Returns:
- A Java Future containing the result of the UpdateAppPaymentRegistration 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InternalServerException An unexpected error occurred while processing the request.
- ResourceNotFoundException The referenced resource does not exist.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateMetric
default CompletableFuture<UpdateMetricResponse> updateMetric(UpdateMetricRequest updateMetricRequest) Updates an existing metric. Only a draft metric, one that has never been published, can be modified. After a metric is published, every field is frozen and any update is rejected with a ConflictException. To change a published metric, archive it and create a new metric.
- Parameters:
updateMetricRequest- Input for UpdateMetric. This operation carries no scope selector: metric authoring always addresses the live app. The sandbox always runs the live app's draft, so its metrics are read-only through this API. Read them with GetMetric or ListMetrics using scope=sandbox or stage=DRAFT.- Returns:
- A Java Future containing the result of the UpdateMetric 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateMetric
default CompletableFuture<UpdateMetricResponse> updateMetric(Consumer<UpdateMetricRequest.Builder> updateMetricRequest) Updates an existing metric. Only a draft metric, one that has never been published, can be modified. After a metric is published, every field is frozen and any update is rejected with a ConflictException. To change a published metric, archive it and create a new metric.
This is a convenience which creates an instance of the
UpdateMetricRequest.Builderavoiding the need to create one manually viaUpdateMetricRequest.builder()- Parameters:
updateMetricRequest- AConsumerthat will call methods onUpdateMetricRequest.Builderto create a request. Input for UpdateMetric. This operation carries no scope selector: metric authoring always addresses the live app. The sandbox always runs the live app's draft, so its metrics are read-only through this API. Read them with GetMetric or ListMetrics using scope=sandbox or stage=DRAFT.- Returns:
- A Java Future containing the result of the UpdateMetric 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateOneTimePrice
default CompletableFuture<UpdateOneTimePriceResponse> updateOneTimePrice(UpdateOneTimePriceRequest updateOneTimePriceRequest) Updates the definition of a one-time price. This operation is idempotent.
- Parameters:
updateOneTimePriceRequest- Input for UpdateOneTimePrice.- Returns:
- A Java Future containing the result of the UpdateOneTimePrice 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- IdempotencyConflictException The clientToken was reused with a request that differs from the original request. Retry the operation with a new clientToken.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateOneTimePrice
default CompletableFuture<UpdateOneTimePriceResponse> updateOneTimePrice(Consumer<UpdateOneTimePriceRequest.Builder> updateOneTimePriceRequest) Updates the definition of a one-time price. This operation is idempotent.
This is a convenience which creates an instance of the
UpdateOneTimePriceRequest.Builderavoiding the need to create one manually viaUpdateOneTimePriceRequest.builder()- Parameters:
updateOneTimePriceRequest- AConsumerthat will call methods onUpdateOneTimePriceRequest.Builderto create a request. Input for UpdateOneTimePrice.- Returns:
- A Java Future containing the result of the UpdateOneTimePrice 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- IdempotencyConflictException The clientToken was reused with a request that differs from the original request. Retry the operation with a new clientToken.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updatePlan
Updates an existing plan. Only a draft plan, one that has never been published, can be modified. After a plan is published, all of its fields are frozen and any update is rejected with a ConflictException. To change the terms of a published plan, archive it and create a new plan.
- Parameters:
updatePlanRequest- Input for UpdatePlan. This operation carries no scope selector: plan authoring always addresses the live app. The sandbox always runs the live app's draft, so its plans are read-only through this API. Read them with GetPlan or ListPlans using scope=sandbox or stage=DRAFT.- Returns:
- A Java Future containing the result of the UpdatePlan 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updatePlan
default CompletableFuture<UpdatePlanResponse> updatePlan(Consumer<UpdatePlanRequest.Builder> updatePlanRequest) Updates an existing plan. Only a draft plan, one that has never been published, can be modified. After a plan is published, all of its fields are frozen and any update is rejected with a ConflictException. To change the terms of a published plan, archive it and create a new plan.
This is a convenience which creates an instance of the
UpdatePlanRequest.Builderavoiding the need to create one manually viaUpdatePlanRequest.builder()- Parameters:
updatePlanRequest- AConsumerthat will call methods onUpdatePlanRequest.Builderto create a request. Input for UpdatePlan. This operation carries no scope selector: plan authoring always addresses the live app. The sandbox always runs the live app's draft, so its plans are read-only through this API. Read them with GetPlan or ListPlans using scope=sandbox or stage=DRAFT.- Returns:
- A Java Future containing the result of the UpdatePlan 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.- AccessDeniedException The caller does not have sufficient permission to perform this action.
- ValidationException The request failed input validation.
- ConflictException The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
- InvalidConfigurationException The requested configuration is not valid.
- InternalServerException An unexpected error occurred while processing the request.
- ServiceQuotaExceededException The request would cause a service quota to be exceeded.
- ResourceNotFoundException The referenced resource does not exist.
- RevisionConflictException The request's revision does not match the resource's current revision. Retry with the current revision.
- ThrottlingException The request was denied due to request throttling.
- 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.
- AppMonetizationException 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 aAppMonetizationAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aAppMonetizationAsyncClient.
-