Skip to main content

aws_sdk_appmonetization/client/
get_plan_recommendation.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetPlanRecommendation`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`app_name(impl Into<String>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::app_name) / [`set_app_name(Option<String>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::set_app_name):<br>required: **false**<br>Display name of the app, used in the rendered text. Absent: `your app`.<br>
7    ///   - [`segment(CustomerSegment)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::segment) / [`set_segment(Option<CustomerSegment>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::set_segment):<br>required: **true**<br>Who buys the app.<br>
8    ///   - [`app_type(PlanRecommendationAppType)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::app_type) / [`set_app_type(Option<PlanRecommendationAppType>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::set_app_type):<br>required: **true**<br>Kind of app. It sets the service's usage and value benchmarks for this kind of app.<br>
9    ///   - [`value_kind(ValueKind)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::value_kind) / [`set_value_kind(Option<ValueKind>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::set_value_kind):<br>required: **false**<br>What kind of value the app gives its users. Absent: PRODUCTIVITY. An experiential app has no time or money value, so with EXPERIENTIAL each of `actions\[\].minutesSaved`, `actions\[\].moneySaved`, `actions\[\].valuePerUse`, `hourlyRate` and `valueShare` that is sent is rejected. With EXPERIENTIAL, no `planOptions.publishedPrice` and no comparables used, a CONSUMER app is valued at the typical monthly price of public apps of its `appType` (there is none for API_WRAPPER), shown as an estimate. That estimate is not used when it is too close to a typical user's usage cost, so the estimate alone never makes the verdict NOT_MONETIZABLE. The estimate exists only for CONSUMER: a PROSUMER or ENTERPRISE experiential app with no `planOptions.publishedPrice` and no usable comparables is priced from cost (verdict COST_ONLY, or COST_NOT_CHECKED when costs are not checked: no `unitCost`, or `costs.source` NONE; confidence LOW).<br>
10    ///   - [`actions(BillableAction)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::actions) / [`set_actions(Option<Vec::<BillableAction>>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::set_actions):<br>required: **true**<br>The things that your app charges for, each with its cost to serve, typical usage, and value to a customer. Names must be unique. Give a value basis (`minutesSaved`, `moneySaved` or `valuePerUse`, one per action) on every action or on none: when no action has a value basis and there is no experiential estimate (see `valueKind`), the price is based on cost (and comparables, if opted in, or `planOptions.publishedPrice`) and the confidence is LOW. Give `unitCost` on every action or on none.<br>
11    ///   - [`hourly_rate(f64)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::hourly_rate) / [`set_hourly_rate(Option<f64>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::set_hourly_rate):<br>required: **false**<br>What one hour of a customer's time is worth, in USD: the hourly rate of the person whose time the app saves. Required when any action has `minutesSaved`. There is no default. It is used only with `actions\[\].minutesSaved`: sent when no action has `minutesSaved`, or with `valueKind` EXPERIENTIAL, it is rejected.<br>
12    ///   - [`value_share(f64)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::value_share) / [`set_value_share(Option<f64>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::set_value_share):<br>required: **false**<br>The most a typical customer would pay for the app, as a share of the time value it saves them (`minutesSaved` / 60 times `hourlyRate`). Above 1 when the minutes understate the value. The value of one use of an action with `minutesSaved` is `minutesSaved` / 60 times `hourlyRate` times the share; the share does not apply to `moneySaved` or `valuePerUse`. When an action's value is above 0, each outside option's `monthlyCost` is also weighed at this share (see `OutsideOption`). Absent: the service's benchmark share. For PROSUMER this value scales the service's benchmark share instead of replacing it. With usable comparables the recommended price uses the service's benchmark share for comparables instead, but this value still sets the price from the app's value alone, which the confidence and the texts compare with. Rejected unless an action's `minutesSaved`, `moneySaved` or `valuePerUse` is above 0 and, besides, an action has `minutesSaved` (0 counts) or an outside option's `monthlyCost` is above 0: otherwise it changes nothing (with no value above 0 there is no value estimate, and an outside option counts in full). Rejected with `valueKind` EXPERIENTIAL.<br>
13    ///   - [`features(FeatureScores)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::features) / [`set_features(Option<FeatureScores>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::set_features):<br>required: **false**<br>How this app scores on the characteristics customers decide on, and how much each one matters. Required when a comparable or an outside option in `alternatives` is scored by `features`, and used only then: sent when no comparable and no outside option is scored by `features`, it is rejected. A comparable with `alternatives.comparablesOptIn` OPTED_OUT is validated but not used, so `features` scored only against such comparables is validated with them and changes nothing. Absent: every comparable and outside option is scored by its `quality`.<br>
14    ///   - [`costs(CostInputs)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::costs) / [`set_costs(Option<CostInputs>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::set_costs):<br>required: **false**<br>Cost inputs beyond each action's `unitCost`: where the costs came from, any costs that could not be priced, fixed monthly cost and target margins. Absent: `costs.source` is inferred from `actions\[\].unitCost`, and the costs count as complete but unconfirmed (see `costs.unknown`).<br>
15    ///   - [`alternatives(AlternativeInputs)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::alternatives) / [`set_alternatives(Option<AlternativeInputs>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::set_alternatives):<br>required: **false**<br>What customers could use instead of the app: comparable apps and what they do without any product. Absent: no comparables (`comparablesOptIn` OPTED_OUT) and no outside options.<br>
16    ///   - [`market(MarketInputs)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::market) / [`set_market(Option<MarketInputs>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::set_market):<br>required: **false**<br>Who the customers are, how many there are and, for a deployed app, how many pay today; and any checkout drop-off rates to use instead of the benchmarks. Absent: each member's default (see `MarketInputs`).<br>
17    ///   - [`plan_options(PlanOptions)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::plan_options) / [`set_plan_options(Option<PlanOptions>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::set_plan_options):<br>required: **false**<br>The pricing model and optional plans to consider, prices to evaluate, and the developer's own price (`publishedPrice`). Absent: each member's default (see `PlanOptions`); the service chooses the pricing model and plans.<br>
18    ///   - [`context(RequestContext)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::context) / [`set_context(Option<RequestContext>)`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::set_context):<br>required: **false**<br>Where the inputs came from, and notes on them. Changes no price, plan, verdict or confidence label: only how `summary` and `details` label and word the inputs. Absent: the rendered text uses default labels.<br>
19    /// - On success, responds with [`GetPlanRecommendationOutput`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput) with field(s):
20    ///   - [`pricing_model(PricingModel)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::pricing_model): The recommended pricing model. Equals the request's `planOptions.pricingModelPreference` when `planOptions.preferenceOutcome` is HONORED.
21    ///   - [`recommended_price(Option<Price>)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::recommended_price): Recommended monthly price of the main paid plan, for FLAT and TIERED. When an annual plan is recommended, it is in `plans` with `billingCycle` ANNUAL; this is still the monthly price.
22    ///   - [`recommended_price_range(Option<PriceRange>)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::recommended_price_range): Prices whose modeled profit is within a few percent of the best, when the profit curve is flat near its top. `recommendedPrice` is the middle of this range.
23    ///   - [`unit_prices(Option<Vec::<UnitPrice>>)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::unit_prices): Price per use of each action, for PER_USE and PER_USE_SPLIT.
24    ///   - [`plans(Vec::<RecommendedPlan>)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::plans): The recommended plans. To create them, map each `actionName` to the app's metric ID.
25    ///   - [`credit_packs(Vec::<RecommendedCreditPack>)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::credit_packs): One-time credit packs sold alongside the plans. Empty unless the request's `planOptions.creditPackInclusion` was INCLUDE.
26    ///   - [`verdict(RecommendationVerdict)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::verdict): Viability verdict.
27    ///   - [`confidence(RecommendationConfidence)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::confidence): Confidence in the recommendation.
28    ///   - [`confidence_reason(String)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::confidence_reason): Why the confidence is what it is.
29    ///   - [`basis(String)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::basis): What the price is based on: modeled demand, or, without a value estimate, cost or comparables.
30    ///   - [`costs(Option<CostOutcome>)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::costs): How the recommended price relates to cost to serve.
31    ///   - [`alternatives(Option<AlternativesOutcome>)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::alternatives): Which comparable apps were used and which were not.
32    ///   - [`plan_options(Option<PlanOptionsOutcome>)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::plan_options): What became of the request's `planOptions`: the pricing-model preference, the Free and Max plans and the evaluated plan prices.
33    ///   - [`analysis(Option<PricingAnalysis>)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::analysis): How the recommendation compares with other pricing models.
34    ///   - [`recommendation_version(String)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::recommendation_version): Identifies the recommendation model and benchmark data behind this answer, for support. It changes when either changes.
35    ///   - [`summary(String)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::summary): The recommendation as text for the developer: the price, the plans, the reasons and the assumptions behind them.
36    ///   - [`details(String)`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput::details): The same text as `summary` with a Details section on how the recommendation was worked out, for a developer who asks for details. Some figures appear only in `summary` and `details`.
37    /// - On failure, responds with [`SdkError<GetPlanRecommendationError>`](crate::operation::get_plan_recommendation::GetPlanRecommendationError)
38    pub fn get_plan_recommendation(&self) -> crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder {
39        crate::operation::get_plan_recommendation::builders::GetPlanRecommendationFluentBuilder::new(self.handle.clone())
40    }
41}