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