Interface AppMonetizationAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface AppMonetizationAsyncClient extends AwsClient
Service client for accessing AWS App Monetization asynchronously. This can be created using the static 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 Details

  • 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 invoke Throwable.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.Builder avoiding the need to create one manually via ArchiveMetricRequest.builder()

      Parameters:
      archiveMetricRequest - A Consumer that will call methods on ArchiveMetricRequest.Builder to 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 invoke Throwable.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(ArchivePlanRequest 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.

      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 invoke Throwable.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.Builder avoiding the need to create one manually via ArchivePlanRequest.builder()

      Parameters:
      archivePlanRequest - A Consumer that will call methods on ArchivePlanRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via CancelSubscriptionRequest.builder()

      Parameters:
      cancelSubscriptionRequest - A Consumer that will call methods on CancelSubscriptionRequest.Builder to 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 invoke Throwable.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

      default CompletableFuture<CreateAppResponse> createApp(CreateAppRequest 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.

      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 invoke Throwable.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.Builder avoiding the need to create one manually via CreateAppRequest.builder()

      Parameters:
      createAppRequest - A Consumer that will call methods on CreateAppRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via CreateAppPaymentRegistrationRequest.builder()

      Parameters:
      createAppPaymentRegistrationRequest - A Consumer that will call methods on CreateAppPaymentRegistrationRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via CreateBillingPortalSessionRequest.builder()

      Parameters:
      createBillingPortalSessionRequest - A Consumer that will call methods on CreateBillingPortalSessionRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via CreateMetricRequest.builder()

      Parameters:
      createMetricRequest - A Consumer that will call methods on CreateMetricRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via CreateOneTimeCheckoutSessionRequest.builder()

      Parameters:
      createOneTimeCheckoutSessionRequest - A Consumer that will call methods on CreateOneTimeCheckoutSessionRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via CreateOneTimePriceRequest.builder()

      Parameters:
      createOneTimePriceRequest - A Consumer that will call methods on CreateOneTimePriceRequest.Builder to 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 invoke Throwable.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(CreatePlanRequest 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.

      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 invoke Throwable.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.Builder avoiding the need to create one manually via CreatePlanRequest.builder()

      Parameters:
      createPlanRequest - A Consumer that will call methods on CreatePlanRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via CreateSubscriptionCheckoutSessionRequest.builder()

      Parameters:
      createSubscriptionCheckoutSessionRequest - A Consumer that will call methods on CreateSubscriptionCheckoutSessionRequest.Builder to 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 invoke Throwable.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

      default CompletableFuture<DeleteAppResponse> deleteApp(DeleteAppRequest 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 a ResourceNotFoundException.

      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 invoke Throwable.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 a ResourceNotFoundException.


      This is a convenience which creates an instance of the DeleteAppRequest.Builder avoiding the need to create one manually via DeleteAppRequest.builder()

      Parameters:
      deleteAppRequest - A Consumer that will call methods on DeleteAppRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via DeleteOneTimePriceRequest.builder()

      Parameters:
      deleteOneTimePriceRequest - A Consumer that will call methods on DeleteOneTimePriceRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via DeleteThirdPartyCostRequest.builder()

      Parameters:
      deleteThirdPartyCostRequest - A Consumer that will call methods on DeleteThirdPartyCostRequest.Builder to 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 invoke Throwable.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

      default CompletableFuture<GetAppResponse> getApp(GetAppRequest getAppRequest)

      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 invoke Throwable.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.Builder avoiding the need to create one manually via GetAppRequest.builder()

      Parameters:
      getAppRequest - A Consumer that will call methods on GetAppRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via GetAppInfraCostSummaryRequest.builder()

      Parameters:
      getAppInfraCostSummaryRequest - A Consumer that will call methods on GetAppInfraCostSummaryRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via GetAppPaymentRegistrationRequest.builder()

      Parameters:
      getAppPaymentRegistrationRequest - A Consumer that will call methods on GetAppPaymentRegistrationRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via GetAppRevenueSummaryRequest.builder()

      Parameters:
      getAppRevenueSummaryRequest - A Consumer that will call methods on GetAppRevenueSummaryRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via GetAppSubscriptionSummaryRequest.builder()

      Parameters:
      getAppSubscriptionSummaryRequest - A Consumer that will call methods on GetAppSubscriptionSummaryRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via GetAppUsageSummaryRequest.builder()

      Parameters:
      getAppUsageSummaryRequest - A Consumer that will call methods on GetAppUsageSummaryRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via GetEntitlementDecisionRequest.builder()

      Parameters:
      getEntitlementDecisionRequest - A Consumer that will call methods on GetEntitlementDecisionRequest.Builder to 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 invoke Throwable.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(GetMetricRequest getMetricRequest)

      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 invoke Throwable.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.Builder avoiding the need to create one manually via GetMetricRequest.builder()

      Parameters:
      getMetricRequest - A Consumer that will call methods on GetMetricRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via GetMetricUsageRequest.builder()

      Parameters:
      getMetricUsageRequest - A Consumer that will call methods on GetMetricUsageRequest.Builder to 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 invoke Throwable.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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.GetMetricUsagePublisher publisher = client.getMetricUsagePaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.GetMetricUsagePublisher publisher = client.getMetricUsagePaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via GetMetricUsageRequest.builder()

      Parameters:
      getMetricUsageRequest - A Consumer that will call methods on GetMetricUsageRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via GetOneTimePriceRequest.builder()

      Parameters:
      getOneTimePriceRequest - A Consumer that will call methods on GetOneTimePriceRequest.Builder to 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 invoke Throwable.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

      default CompletableFuture<GetPlanResponse> getPlan(GetPlanRequest getPlanRequest)

      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 invoke Throwable.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.Builder avoiding the need to create one manually via GetPlanRequest.builder()

      Parameters:
      getPlanRequest - A Consumer that will call methods on GetPlanRequest.Builder to 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 invoke Throwable.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: '&quot' ;unitCost":0.02,"typicalMonthlyUsage":30,"valuePerUse":0.40}]}.

      Parameters:
      getPlanRecommendationRequest - Input for GetPlanRecommendation. Only segment, appType and actions are required. The optional inputs are grouped by what they describe: costs, alternatives, market and planOptions. 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 on valueKind, hourlyRate, valueShare, features, a customer type's featureWeights and the planOptions inclusion 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 invoke Throwable.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: '&quot' ;unitCost":0.02,"typicalMonthlyUsage":30,"valuePerUse":0.40}]}.


      This is a convenience which creates an instance of the GetPlanRecommendationRequest.Builder avoiding the need to create one manually via GetPlanRecommendationRequest.builder()

      Parameters:
      getPlanRecommendationRequest - A Consumer that will call methods on GetPlanRecommendationRequest.Builder to create a request. Input for GetPlanRecommendation. Only segment, appType and actions are required. The optional inputs are grouped by what they describe: costs, alternatives, market and planOptions. 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 on valueKind, hourlyRate, valueShare, features, a customer type's featureWeights and the planOptions inclusion 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via GetSubscriptionRequest.builder()

      Parameters:
      getSubscriptionRequest - A Consumer that will call methods on GetSubscriptionRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via GetSubscriptionHistoryRequest.builder()

      Parameters:
      getSubscriptionHistoryRequest - A Consumer that will call methods on GetSubscriptionHistoryRequest.Builder to 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 invoke Throwable.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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.GetSubscriptionHistoryPublisher publisher = client.getSubscriptionHistoryPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.GetSubscriptionHistoryPublisher publisher = client.getSubscriptionHistoryPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via GetSubscriptionHistoryRequest.builder()

      Parameters:
      getSubscriptionHistoryRequest - A Consumer that will call methods on GetSubscriptionHistoryRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via GetThirdPartyCostRequest.builder()

      Parameters:
      getThirdPartyCostRequest - A Consumer that will call methods on GetThirdPartyCostRequest.Builder to 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 invoke Throwable.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

      default CompletableFuture<ListAppsResponse> listApps(ListAppsRequest listAppsRequest)

      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 invoke Throwable.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

      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.Builder avoiding the need to create one manually via ListAppsRequest.builder()

      Parameters:
      listAppsRequest - A Consumer that will call methods on ListAppsRequest.Builder to 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 invoke Throwable.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

      default ListAppsPublisher listAppsPaginator(ListAppsRequest listAppsRequest)

      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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.ListAppsPublisher publisher = client.listAppsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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

      default ListAppsPublisher listAppsPaginator(Consumer<ListAppsRequest.Builder> listAppsRequest)

      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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.ListAppsPublisher publisher = client.listAppsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListAppsRequest.builder()

      Parameters:
      listAppsRequest - A Consumer that will call methods on ListAppsRequest.Builder to 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 invoke Throwable.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

      default CompletableFuture<ListMetricsResponse> listMetrics(ListMetricsRequest listMetricsRequest)

      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 invoke Throwable.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.Builder avoiding the need to create one manually via ListMetricsRequest.builder()

      Parameters:
      listMetricsRequest - A Consumer that will call methods on ListMetricsRequest.Builder to 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 invoke Throwable.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(ListMetricsRequest 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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.ListMetricsPublisher publisher = client.listMetricsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.ListMetricsPublisher publisher = client.listMetricsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListMetricsRequest.builder()

      Parameters:
      listMetricsRequest - A Consumer that will call methods on ListMetricsRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via ListOneTimePricesRequest.builder()

      Parameters:
      listOneTimePricesRequest - A Consumer that will call methods on ListOneTimePricesRequest.Builder to 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 invoke Throwable.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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.ListOneTimePricesPublisher publisher = client.listOneTimePricesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.ListOneTimePricesPublisher publisher = client.listOneTimePricesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListOneTimePricesRequest.builder()

      Parameters:
      listOneTimePricesRequest - A Consumer that will call methods on ListOneTimePricesRequest.Builder to 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 invoke Throwable.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(ListPlansRequest listPlansRequest)

      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 invoke Throwable.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.Builder avoiding the need to create one manually via ListPlansRequest.builder()

      Parameters:
      listPlansRequest - A Consumer that will call methods on ListPlansRequest.Builder to 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 invoke Throwable.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

      default ListPlansPublisher listPlansPaginator(ListPlansRequest listPlansRequest)

      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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.ListPlansPublisher publisher = client.listPlansPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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

      default ListPlansPublisher listPlansPaginator(Consumer<ListPlansRequest.Builder> listPlansRequest)

      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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.ListPlansPublisher publisher = client.listPlansPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListPlansRequest.builder()

      Parameters:
      listPlansRequest - A Consumer that will call methods on ListPlansRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via ListSubscriptionsRequest.builder()

      Parameters:
      listSubscriptionsRequest - A Consumer that will call methods on ListSubscriptionsRequest.Builder to 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 invoke Throwable.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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.ListSubscriptionsPublisher publisher = client.listSubscriptionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.ListSubscriptionsPublisher publisher = client.listSubscriptionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListSubscriptionsRequest.builder()

      Parameters:
      listSubscriptionsRequest - A Consumer that will call methods on ListSubscriptionsRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via ListTagsForResourceRequest.builder()

      Parameters:
      listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via ListThirdPartyCostsRequest.builder()

      Parameters:
      listThirdPartyCostsRequest - A Consumer that will call methods on ListThirdPartyCostsRequest.Builder to 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 invoke Throwable.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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.ListThirdPartyCostsPublisher publisher = client.listThirdPartyCostsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.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
       
       software.amazon.awssdk.services.appmonetization.paginators.ListThirdPartyCostsPublisher publisher = client.listThirdPartyCostsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListThirdPartyCostsRequest.builder()

      Parameters:
      listThirdPartyCostsRequest - A Consumer that will call methods on ListThirdPartyCostsRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via PublishDraftRequest.builder()

      Parameters:
      publishDraftRequest - A Consumer that will call methods on PublishDraftRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via PutAwsServiceEventRequest.builder()

      Parameters:
      putAwsServiceEventRequest - A Consumer that will call methods on PutAwsServiceEventRequest.Builder to 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 invoke Throwable.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 chargeId that you choose. If you submit a chargeId again in the same billing period, the existing charge is replaced instead of added again. A chargeId belongs 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 chargeId after its billing period has ended, the request fails with a ConflictException. The charge is already recorded. Don't submit it again under a new chargeId, because that bills it twice.

      A billing period holds at most 100 chargeId values for each user. If a request would exceed 100, it fails with a ServiceQuotaExceededException. Submitting a chargeId that 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 invoke Throwable.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 chargeId that you choose. If you submit a chargeId again in the same billing period, the existing charge is replaced instead of added again. A chargeId belongs 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 chargeId after its billing period has ended, the request fails with a ConflictException. The charge is already recorded. Don't submit it again under a new chargeId, because that bills it twice.

      A billing period holds at most 100 chargeId values for each user. If a request would exceed 100, it fails with a ServiceQuotaExceededException. Submitting a chargeId that is already in the period doesn't count toward the limit.


      This is a convenience which creates an instance of the PutCustomChargesRequest.Builder avoiding the need to create one manually via PutCustomChargesRequest.builder()

      Parameters:
      putCustomChargesRequest - A Consumer that will call methods on PutCustomChargesRequest.Builder to 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 invoke Throwable.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

      default CompletableFuture<PutEventResponse> putEvent(PutEventRequest putEventRequest)

      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 invoke Throwable.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

      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.Builder avoiding the need to create one manually via PutEventRequest.builder()

      Parameters:
      putEventRequest - A Consumer that will call methods on PutEventRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via PutThirdPartyCostRequest.builder()

      Parameters:
      putThirdPartyCostRequest - A Consumer that will call methods on PutThirdPartyCostRequest.Builder to 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 invoke Throwable.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(TagResourceRequest tagResourceRequest)

      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 invoke Throwable.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.Builder avoiding the need to create one manually via TagResourceRequest.builder()

      Parameters:
      tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via UntagResourceRequest.builder()

      Parameters:
      untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to 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 invoke Throwable.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(UpdateAppRequest updateAppRequest)

      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 invoke Throwable.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.Builder avoiding the need to create one manually via UpdateAppRequest.builder()

      Parameters:
      updateAppRequest - A Consumer that will call methods on UpdateAppRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via UpdateAppPaymentRegistrationRequest.builder()

      Parameters:
      updateAppPaymentRegistrationRequest - A Consumer that will call methods on UpdateAppPaymentRegistrationRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via UpdateMetricRequest.builder()

      Parameters:
      updateMetricRequest - A Consumer that will call methods on UpdateMetricRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via UpdateOneTimePriceRequest.builder()

      Parameters:
      updateOneTimePriceRequest - A Consumer that will call methods on UpdateOneTimePriceRequest.Builder to 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 invoke Throwable.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

      default CompletableFuture<UpdatePlanResponse> updatePlan(UpdatePlanRequest 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.

      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 invoke Throwable.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.Builder avoiding the need to create one manually via UpdatePlanRequest.builder()

      Parameters:
      updatePlanRequest - A Consumer that will call methods on UpdatePlanRequest.Builder to 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 invoke Throwable.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

      default AppMonetizationServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      static AppMonetizationAsyncClient create()
      Create a AppMonetizationAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      Create a builder that can be used to configure and create a AppMonetizationAsyncClient.